API v2 is in alpha and may change at any time. Use v1 for production.
GMJ Roaming API

Your account profile and balance.


Get account

GET
https://api.gmjroaming.com/api/v1
/user

Returns your profile and current balance (USD).

Get account › Responses

Account

Every v1 response uses this wrapper.
status
​string · enum
Enum values:
success
error
code
​integer
message
​string
​User

Update account

POST
https://api.gmjroaming.com/api/v1
/update-user

Replaces your profile. Send every field you want to keep: if you leave out phone, it is cleared. If you leave out password, it stays the same.

Update account › Request Body

name
​string · maxLength: 255 · required
email
​string · email · maxLength: 255 · required

Must not be used by another account.

phone
​string | null · pattern: ^[0-9]{10,15}$

10 to 15 digits. Omitting it clears it.

password
​string | null · minLength: 6

Omit it to keep the current password.

Update account › Responses

Updated

Every v1 response uses this wrapper.
status
​string · enum
Enum values:
success
error
code
​integer
message
​string
​User