8. Account unbinding
POST /{Merchant’s tag}/api/merchant/accountUnbinding
Sample: https://hk-api.merchant.com/api/merchant/accountUnbinding
Merchants need to provide this interface for AlipayHK to unbind an account in your system. If the user's auto-debit is activated through AlipayHK's Bills & Utilities, then the merchant must stop the agreement(call cancelByAuthInfo API) when unbinding the account.
Request
Header
Name | Description | Type | Required | Max Length | Sample |
version | API version | String | Y | 8 | 1.0.0 |
function | API Interface | String | Y | 128 | alipay.intl.merchant.account.unbind |
clientId | Client ID | String | Y | 8 | 2110200000000044 |
reqTime | Request time | String | Y | 2001-07-04T12:08:56+05:30 | |
reqMsgId | Request message ID | String | Y | 64 | UUID for every request |
reserve | Reserved for future implementation | String | N | 256 | {} |
Body
Name | Description | Type | Required | Sample |
merchantAccountId | merchant id | String | Y | 2160400000002012 |
subMerchantId | sub-merchant id | String | Y | 2160400000002012 |
accountId | account id in merchant side | String | Y | 7345224176 |
openId | ID of AlipayHK user.
| String | Y | |
authSiteUserId | ID of AlipayHK user.
| String | Y | 2160xxxxx |
timestamp | timestamp | String | Y | |
extendInfo | Json string for extend | String | N |
Response
Header
Name | Description | Type | Required | Max Length | Sample |
version | API version | String | M | 8 | 1.0.0 |
function | API Interface | String | M | 128 | alipay.intl.merchant.account.unbind |
clientId | Client ID | String | M | 8 | 2110200000000044 |
respTime | Request time | String | M | 2001-07-04T12:08:56+05:30 | |
reqMsgId | Request message ID | String | M | 64 | UUID for every request |
reserve | Reserved for future implementation | String | O | 256 | {} |
Body
Name | Description | Type | Required | Sample |
result | Result | Object | M | "resultInfo": { |
ResultInfo
Name | Description | Type | Sample |
resultCode | result code | String | SUCCESS |
resultCodeId | String | 00000000 | |
resultStatus | result status | String | S- Success F - Fail |
resultMessage | result description | String | SUCCESS |
Example
Request
{
"accountId": "96100869527",
"authSiteUserId": "2160210100869527",
"extendInfo": "null",
"merchantAccountId": "2088721100869527",
"openId": "e31d78ac629c2b68d57dc4c100869527",
"subMerchantId": "8100869527",
"timestamp": "1755487059699"
}Response
"resultInfo": {
"resultStatus": "S",
"resultCode": "SUCCESS",
"resultCodeId": "00000000",
"resultMsg": ""
}