Skip to main content
GET
/
api
/
canary
/
payment-methods
/
{id}
Retrieve Payment Method
curl --request GET \
  --url http://localhost:3000/api/canary/payment-methods/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique identifier of the payment method

Response

Successfully retrieved payment method details

id
string
required
customerId
string
required
type
string
required
isDefault
boolean
required
createdAt
string<date-time>
required
brand
string
last4
string
expiryMonth
number
expiryYear
number