Skip to main content
DELETE
/
v1
/
payment-methods
/
{id}
Delete payment method
curl --request DELETE \
  --url https://api.quentli.com/v1/payment-methods/{id} \
  --header 'Authorization: Bearer <token>'
{
  "paymentMethod": {
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "customerId": "<string>",
    "type": "CARD",
    "confirmed": true,
    "default": true,
    "expired": true,
    "cardDetail": {
      "id": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "expiryMonth": 123,
      "expiryYear": 123,
      "bin": "<string>",
      "last4": "<string>",
      "cardholder": "<string>",
      "brand": "<string>",
      "issuer": "<string>",
      "isCorporate": true,
      "country": "<string>",
      "funding": "<string>"
    },
    "bankAccount": {
      "id": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "bankCode": "<string>",
      "bankName": "<string>",
      "country": "<string>",
      "verified": true,
      "clabeLast": "<string>",
      "clabeFirst": "<string>",
      "customerId": "<string>",
      "deletedAt": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Organization API key using Authorization: Bearer sk_....

Path Parameters

id
string
required

Identifier of the payment method.

Response

Payment method deleted

Response after deleting a payment method.

paymentMethod
object
required

Saved payment method associated with a customer.