POST
/
v1
/
customer
/
createPaymentMethod
curl --request POST \
  --url https://api.unprice.dev/v1/customer/createPaymentMethod \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "paymentProvider": "stripe",
  "customerId": "cus_1234567890",
  "successUrl": "https://example.com/dashboard",
  "cancelUrl": "https://example.com/login"
}'
{
  "success": true,
  "url": "https://example.com/dashboard"
}

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 customer create payment method request

Response

200
application/json

The result of the customer create payment method

The response is of type object.