Remove Token
Remove a previously tokenized card from the system.
IMPORTANT: Once a payment method token is removed, it cannot be used for any future transactions, including:
- New sales or authorizations
- Referenced captures of existing authorizations
- Referenced refunds of completed transactions
- Any other transaction operations
Before removing a token, ensure that:
- All pending authorizations have been captured or voided
- No future captures or refunds will be needed for transactions using this token
- All business processes dependent on this token are complete
Post-removal effects:
- The
dateDeleted
timestamp will be immediately reflected in all future List Transactions responses for transactions that used this token - Sensitive card details (
maskedCardNumber
,cardExpDate
) will be removed for security purposes - Historical transaction data (amounts, authorization codes, reference IDs) remains intact for reconciliation
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.
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",
"dateDeleted": "2025-05-11T17:40:33.7688544Z"
}
}
Response examples (400)
{
"code": 2000,
"status": "Rejected",
"message": "Payment method not found",
"traceId": "1-6838bcce-5c0074e82ac7170d4f990d87",
"timestamp": "2025-05-29T20:00:15.5752808Z",
"errorDetails": [
{
"code": 2000,
"field": "PaymentMethod",
"message": "Payment method not found"
}
]
}
Response examples (401)
{
"code": 1000,
"status": "Rejected",
"message": "API key cannot be empty",
"traceId": "1-6838be96-74c62f8e2804352739e63476",
"timestamp": "2025-05-29T20:07:50.4723483Z",
"errorDetails": []
}