Delete a Payment Method
Delete a stored payment method.
Authorization
bearerAuth Access token from POST /accesstoken, sent as Authorization: Bearer <token>.
In: header
Path Parameters
Unique Global Payments generated id used to reference a stored payment method on the Global Payments system. Often referred to as the payment method token. This value can be used instead of payment method details such as a card number and expiry date.
Header Parameters
The version of the API to execute the request.
1 <= length <= 50"2021-03-22"Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/payment-methods/PMT_3367f648-558a-4979-8b1f-7002961d5d37" \ -H "X-GP-Version: 2021-03-22"{ "id": "PMT_f5bbdfde-3010-4802-8f5d-1cdb2a2381c2", "status": "ACTIVE", "action": { "id": "ACT_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d", "type": "PAYMENT_METHOD_CREATE", "time_created": "2021-05-03T21:23:39.718Z", "result_code": "SUCCESS", "app_id": "uzFr7t4VOqxdLDI44hHmXIjHtOOE8d", "app_name": "my_lovely_app" }}Edit a Payment Method PATCH
Change information about a stored payment method such as update the card expiry date or the funding type of card or the bank identifier of the account number.
Detokenize a Payment Method POST
Detokenize the stored payment method to get a full payment method information.(Availability in production depends on your live configuration.)