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
ApiKeyAPI key for the merchant account. Send it in the
ApiKey request header. See Authentication.Example:
replace_with_api_keymerchantNoMerchant number assigned by Onerway. See Setup for how to obtain it.
Example:
replace_with_merchant_noidBinding 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:
example_card_binding_idcurl -X POST 'https://sandbox-payment-api.onerway.com/v1/txn/unbindCard' \
-H 'ApiKey: replace_with_api_key' \
-H 'Content-Type: application/json' \
--data-raw '{
"id": "example_card_binding_id",
"merchantNo": "replace_with_merchant_no"
}'Response
respCodeResponse code;
20000 means the request was processed successfully, other values are error codes. See Response codes.respMsgHuman-readable message for the response code.
data{ success, sign }Business data object carrying the result of this card-token deletion request and the response signature.
{
"respCode": "20000",
"respMsg": "Success",
"data": {
"success": true,
"sign": "{{SIGN}}"
}
}No error responses are documented for this endpoint.