Customer registration

Customer registration

post
Email registration example: *Login password (pwd) MD5 encryption* 
{ 
"email": "[email protected]", 
"emailArea": "+86", 
"pwd": "dc483e80a7a0bd9ef71d8cf973673924", 
"country": "CN", 
"customerGroupId": 1, 
"registerSource": 1 
} 
Mobile phone registration example: *Login password (pwd) MD5 encryption* 
{ 
"phone": "15167651757", 
"country": "CN", 
"customerGroupId": 1, 
"registerSource": 1 
"phoneArea": "+86", 
"pwd": "dc483e80a7a0bd9ef71d8cf973673924" 
} 
Header parameters
companyIdstringRequired

Company ID

Example: {{company}}
tracestringRequired

Global link unique identifier

Example: {{mock_trace}}
apiKeystringRequired

apiKey

Example: {{apikey}}
recvWindowstringOptional

time window

Example: 5000
signaturestringRequired

sign

Example: {{sign}}
langstringOptional

language

Example: zh-CN
versionstringRequired

Interface version

Example: 0.0.1
Body
phonestringOptional

Account: Mobile phone number. Mobile phone number and email address are required.

emailstringOptional

Account: Email, mobile phone number and email are required.

phoneAreastringOptional

Mobile phone area code, the default area code is +86

emailAreastringOptional

Email area code, the default area code is +86

pwdstringRequired

Login password, MD5 encryption, a123456

countrystringRequired

Country:CN=China

registerSourceintegerRequired

Registration source: 1=Mobile web: H5, 2=pcweb: PC_Web, 3=System & background closing: System, 4=Android native app: Android, 5=Apple native app: iOS, 6=Hongmeng OS: HOS, 7=pc windows client: PC_Win, 8=pc mac client: PC_Mac, 9=not among the above: other

customerGroupIdnumberRequired

Customer group ID: 1=default customer group;

remarkstringOptional

Remark

Responses
200Success
application/json
post
POST /global/customer.admin.WhiteCustomerAdminApiService.addCustomer HTTP/1.1
Host: 
companyId: text
trace: text
apiKey: text
signature: text
version: text
Content-Type: application/json
Accept: */*
Content-Length: 136

{
  "phone": "13200000092",
  "pwd": "dc483e80a7a0bd9ef71d8cf973673924",
  "country": "CN",
  "registerSource": 1,
  "customerGroupId": 1,
  "phoneArea": "+86"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "t-h2jv9x-4to64-9mp4wd7-793nv-1661227305",
  "code": "0",
  "data": "86021976",
  "bizCode": "",
  "tm": 236026513,
  "msgParams": null,
  "ok": true
}

Last updated