Onerway
POST

Delete card token

Use this endpoint to remove a saved payment method. Pass the binding record ID from data.tokenInfos[].id in List saved tokens as id. This value is different from tokenId, which Create direct transaction uses for later token payments. After the deletion succeeds, the associated token can no longer be used for token payments.

Request

merchantNo
Merchant number assigned by Onerway. See Setup for how to obtain it.
Example:
id
Binding record ID to delete. Get this value from data.tokenInfos[].id in List saved tokens. It is different from data.tokenInfos[].tokenId: tokenId identifies the saved payment token used for later token payments through Create direct transaction and must not be submitted as this id. After deletion succeeds, the associated token can no longer be used for token payments.
Example:
sign
Request signature string. See Request signing for how to generate it.

Request example

curl -X POST 'https://sandbox-acq.onerway.com/v1/txn/unbindCard' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "id": "example_card_binding_id",
  "merchantNo": "replace_with_merchant_no",
  "sign": "{{SIGN}}"
}'

Response

respCode
Response code; 20000 means the request was processed successfully, other values are error codes. See Response codes.
respMsg
Human-readable message for the response code.
Business data object carrying the result of this card-token deletion request and the response signature.

Response example

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": {
    "success": true,
    "sign": "{{SIGN}}"
  }
}
No error responses are documented for this endpoint.