---
title: "Retrieve payment method"
method: GET
path: "/customers/public/{customerId}/payment-methods"
tags: ["Customers"]
---

# Retrieve payment method

`GET /customers/public/{customerId}/payment-methods`

## Request

- Base URL: `https://api.dojo.tech`
- URL: `https://api.dojo.tech/customers/public/{customerId}/payment-methods`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/dojo/apis/dojo-api/docs/customers/public/:customerId/payment-methods/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves available payment methods for a customer.

## Path parameters

- `customerId` string, nullable, required

## Headers

- `version` string, nullable, required
- `authorization` string, nullable, required

## Response `200`

OK

- CustomerPaymentMethods
  - `customerId` string, nullable: The unique identifier of the customer.
  - `merchantId` string, nullable: A unique identifier for the merchant. A single merchant can be associated with multiple terminals, point-of-sale machines, and waiters.
  - `savedPaymentMethods` CustomerPaymentMethod[], nullable: List of the customer saved payment methods.
    - `id` string, nullable: The unique identifier of the customer's saved payment method.
    - `cardDetails` CardDetails
      - `pan` string: The masked primary account number (PAN) of the customer's saved card.
      - `expiryDate` string: The expiry date of the card saved by the customer.
      - `scheme` string: Supported card schemes (VISA, MASTERCARD, MAESTRO, DISCOVER, DCI, AMEX)
  - `supportedPaymentMethods` SupportedPaymentMethods
    - `cardSchemes` CardScheme[], nullable: Supported card schemes.
    - `wallets` WalletPaymentOption[], nullable: List of supported payment wallets.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Not found

---

[API](https://skmtc.dev/dojo/apis/dojo-api.md) - [All operations](https://skmtc.dev/dojo/apis/dojo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dojo/apis/dojo-api/revisions/29fc8900ba37?raw)
