Register Member
1. Register Member
Interface Path
- POST
- /api/member/create
Request Parameters
Parameter | Name | Type | Required | Description |
---|---|---|---|---|
agent_id | Merchant ID | string | Required | Merchant ID |
user_id | User ID on Merchant Side | string | Required | User ID on Merchant Side, string length minimum 3, maximum 20, Only English, numbers, and _ |
user_name | Username on Merchant Side | string | Required | Username on Merchant Side, Only English, numbers, and _ |
desc | Description | string | Optional | User description information, string length maximum 20, Only English, numbers, spaces, and _ |
timestamp | Current Timestamp | int | Required | Timestamp when calling the interface (unit: milliseconds, valid for ten minutes) |
sign | Signature | string | Required | See interface description for signature algorithm |
Response Parameters
Parameter | Name | Type | Description |
---|---|---|---|
code | Response Code | int | Error Code |
message | Response Message | string | Error 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