Sign up a customer for a project
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body of the request
The customer sign up request
The name of the customer
1"John Doe"
The success url if the customer signs up. This is the url after the signup process, normally your dashboard
"https://example.com/dashboard"
The cancel url if the customer cancels the signup. This is the url after the signup process, normally your login page
"https://example.com/login"
The timezone of the customer, if passed null the system will use the project timezone
"UTC"
The default currency of the customer, if passed null the system will use the project currency
USD, EUR "USD"
The billing interval of the customer to be used for the subscription. If plan version is provided, the billing interval will be the same as the plan version. If plan slug is provided, the billing interval will be the default billing interval of the plan.
month, year, day, minute, onetime "month"
If the plan id is not provided, you can pass a plan slug and the system will intelligently pick the lastest plan for that slug and sign up the customer for it
"PRO"
The plan version the customer is signing up for
"pv_1234567890"
The configuration of the subscription items. This is required if your features are quantity based when the customer needs to set them. Pass as empty if you want the system to automatically set the units from the plan defaults.
[
{
"featurePlanId": "feature_plan_123",
"featureSlug": "feature_slug_123",
"isUsage": true,
"units": 100
}
]The external id you want to associate with the customer. Could be the id of the user in your database
"1234567890"
The result of the customer sign up
Whether the signup was successful
true
The url to redirect the customer to, either to the success or cancel url
"https://example.com/dashboard"
The unprice customer id generated by the system for this customer
"cus_1234567890"