校验 UID 是否存在
HTTP request 校验指定 UID 与手机号 / 邮箱是否属于同一 WEEX 账号。
- POST
/api/v3/rebate/affiliate/checkUidExistence
请求参数
| 参数名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| uid | Long | 是 | 待校验的 WEEX 用户 UID,必须为正整数 |
| contactType | String | 是 | 联系方式类型:phone / email |
| areaCode | Integer | 否 | 国家 / 地区区号。contactType=phone 时必填 |
| contactValue | String | 是 | phone 时为不含区号的手机号主体;email 时为完整邮箱地址 |
请求示例
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"
}'
返回参数
| 字段名 | 类型 | 说明 |
|---|---|---|
| verified | Boolean | true 表示 UID 与提交的手机号 / 邮箱属于同一 WEEX 账号;false 表示未通过 |
返回示例
{
"verified": true
}