Create a subscription

Subscribes a customer to a plan. The behavior depends on your billing mode and plan timing:

Tanso mode (no Stripe): Returns the new subscription with its initial invoice. For in-advance plans, the subscription stays inactive until the invoice is marked paid. For in-arrears plans, the subscription activates immediately.

Stripe Integration + in-advance plans: Returns a checkoutUrl instead of a subscription. Redirect your customer to this URL to collect payment via Stripe Checkout. Once payment completes, Tanso receives a webhook and automatically creates the subscription, invoice, entitlements, and credits. Free plans ($0) skip checkout and activate immediately.

Stripe Integration + in-arrears plans: The subscription activates immediately and is synced to Stripe. Stripe invoices at the end of the billing period.

The customer is identified by your customerReferenceId. Retrieve available plan IDs from the Plans endpoint.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The ID of the plan to subscribe to. Retrieve available plan IDs from the Plans endpoint.

string
required

Your external reference ID for the customer.

integer

Number of days after the invoice due date before the subscription is suspended for non-payment. Gives customers time to resolve payment issues without immediate access loss.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json