Check UID Existence
HTTP request Verify whether the specified UID and phone/email belong to the same WEEX account.
- POST
/api/v3/rebate/affiliate/checkUidExistence
Request parameters
| Parameter | Type | Required? | Description |
|---|---|---|---|
| uid | Long | Yes | WEEX user UID to verify. Must be a positive integer. |
| contactType | String | Yes | Contact type: phone / email. |
| areaCode | Integer | No | Country/region calling code. Required when contactType=phone. |
| contactValue | String | Yes | For phone, the mobile number without area code; for email, the full email address. |
Request example
curl -X POST "https://api-spot.weex.com/api/v3/rebate/affiliate/checkUidExistence" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "Content-Type: application/json" \
-d '{
"uid": 12345678,
"contactType": "phone",
"areaCode": 86,
"contactValue": "13800138000"
}'
Response parameters
| Field Name | Type | Description |
|---|---|---|
| verified | Boolean | true if the UID and the submitted phone/email belong to the same WEEX account; false otherwise. |
Response example
{
"verified": true
}