cURL
curl --request GET \ --url https://api.example.com/customers/{customerId}/payment-methods
{ "data": [ { "metadata": [ { "key": "<string>", "value": "<string>" } ], "type": "<string>", "id": "<string>", "status": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "paymentMethodType": "card", "isPreferred": true, "mandateDocumentId": "<string>", "last4": "<string>", "expirationMonth": 123, "expirationYear": 123, "billingDetails": { "name": "<string>", "email": "<string>", "phone": "<string>", "address": { "city": "<string>", "country": "<string>", "line1": "<string>", "line2": "<string>", "postalCode": "<string>", "state": "<string>" } } } ], "total": 123, "offset": 123, "limit": 123 }
The customer id
Optional: the whenAt datetime
Optional: the simulatedAt datetime
Optional: the branchId
Array of payment methods
Show child attributes
Optional: Total number of payment methods
Optional: Number of payment methods the array has to star after
Optional: Number of payment methods in the array
Was this page helpful?