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"
}
}
}Deletes a payment method by id.
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"
}
}
}Organization API key using Authorization: Bearer sk_....
Identifier of the payment method.
Payment method deleted
Response after deleting a payment method.
Saved payment method associated with a customer.
Show child attributes
Was this page helpful?