Skip to main content
GET
/
api
/
canary
/
payment-methods
/
{id}
Gets the non-sensitive details of a saved card (e.g., brand, last 4).

Path Parameters

id
string
required
The unique identifier of the payment method

Response

Success
id
string
Unique identifier for the payment method
customerId
string
The customer’s unique identifier
type
string
Payment method type (e.g., “card”)
brand
string
Card brand (e.g., “visa”, “mastercard”)
last4
string
Last 4 digits of the card
expiryMonth
number
Card expiry month
expiryYear
number
Card expiry year
isDefault
boolean
Whether this is the default payment method
createdAt
string
ISO 8601 timestamp when the payment method was created

Example Response

{
  "id": "pm_001",
  "customerId": "customer_789",
  "type": "card",
  "brand": "visa",
  "last4": "4242",
  "expiryMonth": 12,
  "expiryYear": 2025,
  "isDefault": true,
  "createdAt": "2025-01-15T10:30:00.000Z"
}

Error Responses

Unauthorized
Invalid or missing authentication token
Not Found
Payment method not found
Internal Server Error
An unexpected error occurred on the server

Authentication

This endpoint requires Bearer token authentication.