Body
Items included in the checkout session
Existing Stripe subscription ID. If provided, the items and quantities from the subscription will be added to the checkout session
"sub_12345"
Existing Stripe Customer ID. If provided, the new invoice or subscription will be created for this customer
"cus_12345"
Existing Stripe Invoice ID that is not connected to a subscription. If provided, the items and quantities from the invoice will be added to the checkout session
"in_12345"
Existing Stripe Invoice Number that is not connected to a subscription. If provided, the items and quantities from the invoice will be added to the checkout session
"A1234-001"
Number of free trial days. If provided, the Stripe subscription will be created with this trial period
7
Stripe coupon code
"SUMMER2025"
Customer email. If provided, the customer will not be able to change this email. If a Stripe customer does not exist, it will be created with this email.
"info@loopcrypto.xyz"
External reference ID. This will be included in all webhooks
"ref_12345"
Requires payment of any finalized or draft invoice immediately during checkout. Does not apply to upcoming invoices (e.g. preview).
true
Enable or disable cart on the checkout page
false
Metadata info that will be included on the Agreement Created webhook
Creates a template checkout session. This session is an ever green session that can be used to create new subscriptions when the link is clicked. Default is false.
false
Authorization amount in cents that will be suggested to the customer. Example: $49.99 = 4999 cents
1001
Minimum authorization amount in cents that the customer must agree to. Example: $49.99 = 4999 cents
1001
Minimum required balance amount in cents that the customer must have in their wallet. Example: $49.99 = 4999 cents
1001
Upgrade flag to upgrade the subscription with a new item
true
Success URL. If provided, the customer will be redirected to this URL after a successful checkout. If the URL does not start with http/https, it will be prefixed with https://.
"https://www.loopcrypto.xyz/success"
Accepted payment tokens for the checkout session. If provided, the customer will be able to pay with these tokens. If not provided, the checkout session will accept all tokens defined at the merchant or organization level
Reset billing cycle reset the subscription billing cycle to the current time.
true
Response
Ok
Checkout session ID This is used in the URL to retrieve the checkout session
"cs_12345"
The checkout session is an active session
"true"
Items and fees included in the checkout session
External subscription ID
"sub_12345"
External customer ID
"cus_12345"
External invoice ID
"in_12345"
External reference ID
"ref_12345"
Customer email address
"info@loopcrypto.xyz"
Number of free trial days
7
Coupon code ID
"12345"
Pay invoice immediately. Do not wait for the bill date to process the invoice
true
Enable or disable cart on checkout page
false
The date the subscription will be started, expressed as a UNIX date in seconds
1746869711
Metadata info that will be included on the Agreement Created webhook Construct a type with a set of properties K of type T
Date the checkout session will expire in seconds as a UNIX date in seconds
"1746869711"
Indicates if this session was generated from a template
true
Suggested allowance amount in cents
1001
Minimum required allowance amount in cents
1001
Minimum required balance amount in cents
1001
Upgrade flag to upgrade the subscription with a new item
true
Session is a template session that is ever green and can be used to create new sessions when the link is clicked
false
URL to redirect the customer after a successful checkout.
"https://www.loopcrypto.xyz/success"
A list of the tokens and the networks they're on that are accepted as payment for this checkout session
Reset billing cycle reset the subscription billing cycle to the current time.
true