Skip to main content

Register Member

1. Register Member

Interface Path

  • POST
  • /api/member/create

Request Parameters

ParameterNameTypeRequiredDescription
agent_idMerchant IDstringRequiredMerchant ID
user_idUser ID on Merchant SidestringRequiredUser ID on Merchant Side, string length minimum 3, maximum 20, Only English, numbers, and _
user_nameUsername on Merchant SidestringRequiredUsername on Merchant Side, Only English, numbers, and _
descDescriptionstringOptionalUser description information, string length maximum 20, Only English, numbers, spaces, and _
timestampCurrent TimestampintRequiredTimestamp when calling the interface (unit: milliseconds, valid for ten minutes)
signSignaturestringRequiredSee interface description for signature algorithm

Response Parameters

ParameterNameTypeDescription
codeResponse CodeintError Code
messageResponse MessagestringError Message

Request Example

curl --location 'https://staging.aig1234.com/api/member/create' \
--header 'Content-Type: application/json' \
--data '{
"agent_id": "agent001",
"user_id": "testUid03",
"user_name": "testUser",
"desc": "a test user",
"timestamp": 1732589849000,
"sign": "b7297489e3d6f1f9761c63c7dcdbce38"
}'

Response Example

{
"code": 200,
"message": "success",
"data": {}
}

Error Codes

200 Success
408000 Request Parameter Error
408003 Whitelist Restriction
408004 API Rate Limit
600100 Invalid Signature
700101 Merchant Not Found
700102 Member Already Exists