Returns a list of payment methods saved to a customer record.
Successful operation. Returns information about a customer's saved payment methods.
The customer record does not exist.
Internal server error.
curl -i -X GET \ 'https://toast-api-server/v1/customers/{id}/payment-methods' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Toast-Restaurant-External-ID: string' \ -H 'Toast-Session-Secret: string'
{- "results": 2,
- "paymentMethods": [
- {
- "card": {
- "lastFour": "1111",
- "expiry": {
- "month": "12",
- "year": "27"
}, - "type": "VISA"
}
}, - {
- "card": {
- "lastFour": "1111",
- "expiry": {
- "month": "12",
- "year": "27"
}, - "type": "VISA"
}
}
]
}