Delete a Customer Payment Instrument

This section shows you how to delete a customer payment instrument token.

Endpoint

Test:
DELETE
https://apitest.visaacceptance.com
/tms/v2/customers/
{customerTokenId}
/payment-instruments/
{paymentInstrumentTokenId}
Production:
DELETE
https://api.visaacceptance.com
/tms/v2/customers/
{customerTokenId}
/payment-instruments/
{paymentInstrumentTokenId}
The
{customerTokenId}
is the customer token ID returned in the
id
field when you created the customer token. The
{paymentInstrumentTokenId}
is the payment instrument token ID you want to retrieve. For more information, see Create a Customer and Create a Customer Payment Instrument.
IMPORTANT
If you have more than one payment Instrument, then the default payment Instrument cannot be deleted without first selecting a new default payment instrument.

REST Example: Deleting a Customer Payment Instrument

Request
DELETE
https://apitest.visaacceptance.com
/tms/v2/customers/F2F3ADA770102B51E053A2598D0A9078/payment-instruments/F39732BE4BDA9A1EE053AF598E0A4081
Response to a Successful Request
A successful delete response returns an empty
HTTP 204 No Content
status. For more information, see HTTP Status Codes.
Delete a Customer Payment Instrument