cURL
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" }
Gets the non-sensitive details of a saved card
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The unique identifier of the payment method
Successfully retrieved payment method details