---
title: "Retrieve primary payment method"
method: GET
path: "/billing/customers/{customerId}/paymentmethods/primary"
---

# Retrieve primary payment method

`GET /billing/customers/{customerId}/paymentmethods/primary`

## Request

- Base URL: `https://api-sandbox.ezypay.com/v2`
- URL: `https://api-sandbox.ezypay.com/v2/billing/customers/{customerId}/paymentmethods/primary`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://identity-sandbox.ezypay.com/token`

Retrieve the payment method details of the customer's primary payment method.

## Path parameters

- `customerId` string, required

## Headers

- `merchant` string

## Response `200`

200

- object
  - `paymentMethodToken` string
  - `customerId` string
  - `type` string
  - `bank` unknown
  - `card` object
    - `first6` string
    - `last4` string
    - `accountHolderName` string
    - `type` string
    - `expiryMonth` string
    - `expiryYear` string
  - `invalidReason` unknown
  - `lastUsedOn` unknown
  - `valid` boolean
  - `primary` boolean

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `924be4030f56`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ezypay/apis/vault/changes/billing/customers/:customerId/paymentmethods/primary/get.md)

---

[API](https://skmtc.dev/ezypay/apis/vault.md) - [All operations](https://skmtc.dev/ezypay/apis/vault/llms.txt) - [OpenAPI document](https://skmtc.dev/ezypay/apis/vault/revisions/924be4030f56?raw)
