Sign Up
Create a new customer account
SignUp is the most important method of the SDK because that is how you can seemssly onboard new users into your product. If you are used to used Stripe, the flow is pretty much the same.
Request
The name of the customer
The email of the customer
The timezone of the customer. If not provided, the system will use the project timezone
The default currency of the customer. If not provided, the system will use the project currency. Must be one of: “USD” or “EUR”
The billing interval for the customer’s subscription. If plan version is provided, this will match the plan version. If plan slug is provided, this will be the default billing interval of the plan. Must be one of: “month”, “year”, “day”, “minute”, or “onetime”
The plan slug to sign up for. If provided, the system will intelligently pick the latest plan for that slug. Required if planVersionId is not provided
The specific plan version ID to sign up for. Required if planSlug is not provided
Configuration for subscription items. Required for quantity-based features when customer needs to set them. Leave empty to use plan defaults
The feature plan ID of the item
The feature slug of the item
Whether the item is a usage-based feature
The number of units the customer is subscribed to
The minimum number of units for the feature
The maximum number of units for the feature
An external ID to associate with the customer (e.g., user ID from your database)
The URL to redirect to after successful signup (typically your dashboard)
The URL to redirect to if the customer cancels signup (typically your login page)
Response
Whether the signup was successful
The URL to redirect the customer to (either success or cancel URL)
The Unprice customer ID generated for this customer