post https://api.sandbox.midtrans.com/v2/pay/account//unbind
Remove linked GoPay account in GoPay Tokenizations.
Unbind Pay Account is triggered to remove the linked customer account.
Sample Request - Unbind Pay Charge
HTTP Method | Endpoint | Definition |
---|---|---|
POST | BASE_URL/v2/pay/account/{account_id} /unbind | Unbind a linked customer account. |
Unbind Pay Account Response
{
"status_code": "204",
"payment_type": "gopay",
"account_id": "00000269-7836-49e5-bc65-e592afafec14",
"account_status": "DISABLED",
"channel_response_code": "0",
"channel_response_message": "Process service request successfully."
}
{
"status_code": "202",
"payment_type": "gopay",
"account_id": "00000269-7836-49e5-bc65-e592afafec14",
"channel_response_code": "1001",
"channel_response_message": "Caller authentication error."
}
JSON Attribute | Description | Type |
---|---|---|
status_code | Status code of the API result. | String |
payment_type | Payment channel associated with the account. | String |
account_id | Customer account id to be used for payment. | String |
account_status | Status of the account. Possible values are PENDING , EXPIRED , ENABLED , DISABLED . | String |
channel_response_code | Response code from payment channel provider. | String |
channel_response_message | Response message from payment channel provider. | String |
Pay Account Unbind Notification
{
"account_id": "00000269-7836-49e5-bc65-e592afafec14",
"merchant_id": "M099098",
"payment_type": "gopay",
"signature_key": "ad7ccda03d8ec6f2f415661fb511d47fcd17dcc7d7e1ade96a305dd5d3bc2bea5438a8bdfe1aeedabdefb226000338ac169fc18d5ae73788fd5e78dbac945ce4",
"status_code": "204",
"account_status": "DISABLED",
"status_message": "Midtrans account_unlinked notification"
}
Pay Account unbind notification will be sent to merchant when user unlinked the account from merchant services/payment provider service (ex: Gojek App). This notification sample can be seen on the side, and you can see [Handle notifications)(/reference/notifications-handling) section to know how to handle the notifications.