Appearance
Account Unbinding
Information
Merchant use this API to Unbinding or unlink account, after unbinded the access token b2b2c can not valid again and can not payment with that access token.
| Path | /v1.0/registration-account-unbinding |
|---|---|
| HTTP Method | POST |
| Service Code | 09 |
| Type Format | JSON |
Request Body
Details
| Parameter | Data Type | Mandatory | Length | Description |
|---|---|---|---|---|
| partnerReferenceNo | String | M | 64 | Transaction identifier on service consumer system |
| additionalInfo | Object | M | Additional information for custom use that are not provided by SNAP | |
| additionalInfo.referenceNo | String | M | 64 | Transaction identifier on service provider system |
| additionalInfo.accessToken | String | M | 2048 | Access token customer |
Example Request
Details
sh
POST …/v1.0/registration-account-unbinding HTTP/1.2
Content-type: application/json
Authorization: Bearer gp9HjjEj813Y9JGoqwOeOPWbnt4CupvIJbU1Mmu4a11MNDZ7Sg5u9a”
X-TIMESTAMP: 2020-12-18T14:48:11+07:00
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-ID: 82150823919040624621823174737537
X-EXTERNAL-ID: 41807553358950093184162180797837
CHANNEL-ID: 95221
{
"partnerReferenceNo": "2020102900000000000001",
"additionalInfo": {
"referenceNo": "63201029000000431721",
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIyMTFlZThiMi1hN2FlLTRhZGUtYmJlYS1mNzI3MDk3ZmQ0NmEiLCJjbGllbnRJZCI6IjZhZTk1N2M0LTI4NjMtNDcxMy1hY2NlLWJhMTJkZTYzNmNmYyIsIm5iZiI6MTYxMTQ2ODk3OCwiZXhwIjoxNjExNDY5ODc4LCJpYXQiOjE2MTE0Njg5Nzh9.KM7yz9GvuUaDR1bXwei4iO0h4e3g4o1Hct5Ie9VoBdo"
}
}Response Body
Details
| Parameter | Data Type | Mandatory | Length | Description |
|---|---|---|---|---|
| responseCode | String | M | 7 | Response code |
| responseMessage | String | M | 150 | Response description |
| referenceNo | String | O | 64 | Transaction identifier on service provider system |
| partnerReferenceNo | String | O | 64 | Transaction identifier on service consumer system |
| unlinkResult | String | O | 64 | Result of unlinking process |
| additionalInfo | Object | O | Additional information for custom use that are not provided by SNAP |
Example Response
Details
sh
Content-type: application/json
X-TIMESTAMP: 2020-12-18T14:48:30+07:00
{
"responseCode":"2000900",
"responseMessage":"Request has been processed successfully",
"referenceNo":"2020102977770000000009",
"partnerReferenceNo":"2020102900000000000001",
"unlinkResult":"success",
"additionalInfo":{}
}