REST API | Visa Platform Connect

Delete a Customer Payment Instrument

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

Endpoint

Test:
DELETE
https://apitest.cybersource.com
/tms/v2/customers/
{customerTokenId}
/payment-instruments/
{paymentInstrumentTokenId}
Production:
DELETE
https://api.cybersource.com
/tms/v2/customers/
{customerTokenId}
/payment-instruments/
{paymentInstrumentTokenId}
Production in India:
DELETE
https://api.in.cybersource.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.