v1

latestOpenAPI 3.0.12026-07-24128351404.9 KB
Accounts

Register an account

Account registration interface, used to register a new user account with required information.

post/open-api/v3/accounts/register

Request body

phoneCountryCodestring

The international dialing code of the user's mobile number, numbers only, no "+", length ≤ 3. Example: 86

phoneNumberstring

User's phone number with the country code. Example: 14155552671

emailstring required

User's email address. Example: user@gmail.com

namestring required

Name of the account holder. Example: John Smith

parentAccountIdstring

This field is required for Distributor mode.<br> If the downstream merchant operates in Gateway mode, this field must be the master-merchant account ID.<br> Sub-merchant account IDs are not supported.

Example request

{
  "phoneCountryCode": "86",
  "phoneNumber": "14155552671",
  "email": "user@gmail.com",
  "name": "John Smith"
}

Response

OK

codestring

Error code

messagestring

Error message

Example response

{
  "code": "400001",
  "message": "Invalid parameter"
}