Customers

Retrieve payment method

Retrieves available payment methods for a customer.

get/customers/public/{customerId}/payment-methods

Request

Path parameters

customerIdstring nullable required

The unique identifier of the customer.

Headers

versionstring nullable required

The API version with format yyyy-mm-dd. The current version is 2026-02-27.

authorizationstring nullable required

Basic HTTP authentication to grant access to customer-owned resources.

  • The required customer secret key is short-lived and will expire after a pre-configured set of time.
  • The customer secret can be generated by calling POST /customers/{customerId}/create-secret

Response

OK

customerIdstring nullable

The unique identifier of the customer.

merchantIdstring nullable

A unique identifier for the merchant. A single merchant can be associated with multiple terminals, point-of-sale machines, and waiters.

Example response

{
  "customerId": "cust_qNkU6yob0vOMxUlb2oy123",
  "merchantId": "123456789",
  "savedPaymentMethods": [
    {
      "id": "pm_12345",
      "cardDetails": {
        "pan": "52000000****0056",
        "expiryDate": "2024-12-31",
        "scheme": "MASTERCARD"
      }
    }
  ],
  "supportedPaymentMethods": {
    "cardSchemes": [
      "VISA",
      "MASTERCARD",
      "MAESTRO",
      "DISCOVER",
      "DCI",
      "AMEX"
    ],
    "wallets": [
      "APPLE_PAY",
      "GOOGLE_PAY"
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.