3rdPartyUnbind
Function
Unbind 3rdParty Members
Endpoint
- /v1/thirdparty/unbind
HTTP Method
- POST
Request Headers
- Authorization: Bearer {token}
- X-App-Key: {appKey}
Request Payload
- app unbind kdp member number
{
"memberId": "memberId",
"thirdPartyType": "kdp",
"thirdPartyId": "kdp member number",
"thirdPartyConfirmed": "0",
"reasonType": "OTHER",
"reasonDescription": "description"
}
- kdp callback unbind
{
"memberId": "memberId",
"thirdPartyType": "kdp",
"thirdPartyId": "kdp member number",
"thirdPartyConfirmed": "1",
"reasonType": "OTHER",
"reasonDescription": ""
}
Request Parameters
| Field | Required | Type | Remark | Sample |
|---|---|---|---|---|
| memberId | Yes | string | memberId | |
| thirdPartyType | Yes | string | 3rd party type: kdp | kdp |
| thirdPartyId | Yes | string | 3rd party id | |
| thirdPartyConfirmed | No | string | The 3rd party has confirmed? 1:Yes , 0:No | 1 |
| reasonType | No | string | reasonType: UPDATE_MOBILE、MERGE_ACCOUNT、TERMINATE_MEMBERSHIP、OTHER | |
| reasonDescription | No | string | description |
Response Payload
{
"status": 1,
"errorCode": 0,
"message": "success",
"memberId": "memberId",
"thirdPartyType": "kdp",
"thirdPartyId": "00000000001"
}
Error Codes
| Status Code | Status Description |
|---|---|
| 1 | Internal Error |
| 3 | Missing Parameter |
| 4 | Invalid Input |
| 4100 | Member Not Found |
| TBC | 3rdParty Id Not Found |