POST
/
v1
/
customer
/
getPaymentMethods
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>"
  }
]

Authorizations

Authorization
string
header
required

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

Body

application/json

Body of the request

The body is of type object.

Response

200
application/json

The result of the get payment methods

The response is of type object[].