cURL
curl --request POST \ --url https://api.unprice.dev/v1/customer/getPaymentMethods \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "customerId": "cus_1H7KQFLr7RepUyQBKdnvY", "provider": "stripe" } '
[ { "id": "<string>", "name": "<string>", "last4": "<string>", "expMonth": 123, "expYear": 123, "brand": "<string>" } ]
Get payment methods for a customer
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Body of the request
The customer ID
"cus_1H7KQFLr7RepUyQBKdnvY"
The payment provider
stripe
square
"stripe"
The result of the get payment methods