Remove Token
Remove a previously tokenized card from the system.
Webhook Events
The following webhook events will be triggered during the tokenized card removal process:
token.removed
- when a previously tokenized card is removed from the system.
Path parameters
-
id
string Required The ID of the tokenized card to remove.
Query parameters
-
referenceId
string A reference ID to tag and track this transaction for reconciliation.
DELETE
/payment-methods/token/{id}
curl \
--request DELETE 'https://api.omni.integratedcommerce.io/v1/payment-methods/token/pmt_tkn_01JRZPRGFF4J2SZC3HMDBYEN2J' \
--header "x-api-key: $API_KEY"
Response examples (200)
A successful response for a tokenized card removal transaction.
{
"id": "trx_01J2F0ZJ2JW5B63CJFPXRGAB1S",
"resultCode": 0,
"resultText": "Card successfully removed",
"referenceId": "ref_remove_card_12345",
"paymentMethod": {
"id": "pmt_tkn_01JRZPRGFF4J2SZC3HMDBYEN2J",
"type": "Token",
"cardType": "VISA",
"currency": "USD",
"cardExpDate": "1225",
"description": "Token for John Doe's Visa",
"maskedCardNumber": "************0011"
}
}
Response examples (400)
{
"code": 2000,
"status": "Rejected",
"message": "One or more validation errors occurred.",
"traceId": "1-6838bcce-5c0074e82ac7170d4f990d87",
"timestamp": "2025-05-29T20:00:15.5752808Z",
"errorDetails": [
{
"code": 2000,
"field": "id",
"details": "'Id' must not be empty.",
"message": "Request validation failed"
}
]
}
Response examples (401)
{
"code": 1000,
"status": "Rejected",
"message": "Invalid or missing API key",
"traceId": "1-6838be96-74c62f8e2804352739e63476",
"timestamp": "2025-05-29T20:07:50.4723483Z",
"errorDetails": []
}