https://your-domain.com/api
GET /registration/get-default-country-short-name
Returns the platform’s default country short code. Useful for pre-selecting the country flag in registration forms.Response fields
GET /check-merchant-user-role-existence
Checks whether default merchant and user roles exist. Use this before showing the user-type selector in the registration form.Response fields
200 on success.Object with
id if a default merchant role exists; null otherwise.Object with
id if a default user role exists; null otherwise.POST /registration/duplicate-email-check
Verifies whether an email address is already registered.Request parameters
The email address to check.
Response fields
true if the email is already taken, false if available.Error message returned when
status is true.Success message returned when
status is false.POST /registration/duplicate-phone-number-check
Verifies whether a phone number is already registered.Request parameters
The phone number to check. Spaces and hyphens are stripped automatically.
When provided, excludes this user ID from the uniqueness check (useful when editing an existing profile).
Response fields
true if the phone is already taken, false if available.Error message when
status is true.Success message when
status is false.POST /registration
Creates a new user account. On success, creates a default wallet, assigns a role, generates a QR code, and — if email verification is enabled — sends a verification email.Request parameters
User’s first name.
User’s last name.
A unique, valid email address.
The desired password.
Firebase Cloud Messaging device token. Stored on the user record for push notification delivery. Optional — omit if not using the mobile app.
User role type:
user or merchant. Determines which default role is assigned. If omitted, the platform assigns the default user role.Phone number in international format. Must be unique across all users.
Full international phone number including country code prefix (e.g.
+11234567890). Used alongside carrierCode.Country dial code without the
+ prefix (e.g. 1 for US). Used to format the phone number.ISO country code for the user’s default country (e.g.
us).Response fields
Error responses
| Status | Reason |
|---|---|
401 | Validation failed (e.g. duplicate email) |
200 with reason: email_verification | Account created but email must be verified |