curl --request GET \
--url https://api.quentli.com/v1/customers/{customerId}/payment_methods \
--header 'Authorization: Bearer <token>'[
{
"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"
}
}
]Returns confirmed, non-deleted payment methods for a customer.
curl --request GET \
--url https://api.quentli.com/v1/customers/{customerId}/payment_methods \
--header 'Authorization: Bearer <token>'[
{
"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 customer.
Confirmed payment methods
Payment method identifier.
Date and time when payment method was created.
Date and time when payment method was last updated.
Identifier of the customer that owns this payment method.
Type of payment method (card or Mexican bank account).
CARD, MEXICAN_BANK_ACCOUNT Whether this payment method can be used to collect payments.
Whether this is the default method used for automatic collections.
Whether this payment method is no longer valid.
Card details when type is CARD.
Show child attributes
Bank account details when type is MEXICAN_BANK_ACCOUNT.
Show child attributes
Was this page helpful?