Skip to main content
GET
/
v1
/
customers
/
{customerId}
/
payment_methods
Get customer payment methods
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"
    }
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

customerId
string
required

Identifier of the customer.

Response

Confirmed payment methods

id
string
required

Payment method identifier.

createdAt
required

Date and time when payment method was created.

updatedAt
required

Date and time when payment method was last updated.

customerId
string
required

Identifier of the customer that owns this payment method.

type
enum<string>
required

Type of payment method (card or Mexican bank account).

Available options:
CARD,
MEXICAN_BANK_ACCOUNT
confirmed
boolean
required

Whether this payment method can be used to collect payments.

default
boolean
required

Whether this is the default method used for automatic collections.

expired
boolean
required

Whether this payment method is no longer valid.

cardDetail
object

Card details when type is CARD.

bankAccount
object

Bank account details when type is MEXICAN_BANK_ACCOUNT.