DELETE
/
payment-instruments
/
{paymentMethodToken}
Delete a saved payment method
curl --request DELETE \
  --url https://api.sandbox.primer.io/payment-instruments/{paymentMethodToken} \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-VERSION: <x-api-version>'
{
  "createdAt": "2021-03-01T12:00:00.123456",
  "token": "_xlXlmBcTnuFxc2N3HAI73wxNjE1NTU5ODY5",
  "tokenType": "MULTI_USE",
  "analyticsId": "vuXhpZouWxaZpRZ-x_brZmtT",
  "paymentMethodType": "PAYMENT_CARD",
  "payment_method_data": {
    "last4Digits": "1111",
    "expirationMonth": "12",
    "expirationYear": "2030",
    "cardholderName": "John Biggins",
    "network": "Visa",
    "networkTransactionId": 20210628190752,
    "accountFundingType": "DEBIT"
  },
  "customerId": "customer-123",
  "description": "My first card",
  "deleted": false,
  "default": true
}

Authorizations

X-API-KEY
string
header
required

Headers

X-API-VERSION
string
required

Specifies the version of the API to use. This must be set to 2.4.

Example:

"2.4"

Path Parameters

paymentMethodToken
string
required

Saved payment method token to delete.

Response

Successful Response

The response is of type object.