Create Subscription
Create a subscription for a customer.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Request payload for creating a new subscription
This struct represents the data required to create a new subscription in the system. It includes details about the product, quantity, customer information, and billing details.
Unique identifier of the product to subscribe to
Number of units to subscribe for. Must be at least 1.
x > 0
If true, generates a payment link. Defaults to false if not specified.
Optional URL to redirect after successful subscription creation
Optional trial period in days If specified, this value overrides the trial period set in the product's price Must be between 0 and 10000 days
Response
Tax will be added to the amount and charged to the customer on each billing cycle
x > 0
Unique identifier for the subscription
Client secret used to load Dodo checkout SDK NOTE : Dodo checkout SDK will be coming soon
URL to checkout page