Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
The idempotency key that will be used to ensure the request is only performed once
Path Parameters
The company ID with the prefix 'cmp_'.
Body
The customer attached to the checkout session
The type of the checkout session
CHECKOUT_SESSION
Whether the subscription is automatically charged to the payment method after the checkout session
Whether this subscription auto renews at the end of the term. This is to be used without end date or renewal date
The bundle pricing that forms the checkout session
The proration type of the existing subscription, if provided. This is one of NEXT, IMMEDIATE or NONE based on whether the proration is charged on the next invoice, immediately or no proration is applied respectively
NEXT
, IMMEDIATE
, NONE
Whether to reset the billing anchor of the existing subscription, if provided
The change timing of the existing subscription, if provided. This is one of IMMEDIATE, PERIOD_END or RENEWAL based on whether the change timing needs to be immediate, at the end of the current period, on renewal respectively
IMMEDIATE
, PERIOD_END
, RENEWAL
The discounts attached to the checkout session
Any additional as key-value pairs that needs to be attached to the subscription after the checkout session
Any one time charges to be attached to the checkout session
The detailed options for the checkout session such as confirmation messages, redirect urls etc.
The ID of an existing subscription whose plan will change with the checkout session
The list of product pricings that form the checkout session
The term for the subscription created by the checkout session
Whether the checkout session creates a subscription in a trial
The trial term for the subscription after the checkout session