Copy the checkout URL
- Open Product Catalog → Products.
- Select a published product.
- Click Get link or Copy checkout link.
- Choose the plans and default billing period.
- Copy the generated URL.
/sandbox/:
Available query parameters
The dashboard adds the plan, billing-period, and discount options you select. You can addcustomer_id and success_url when your integration needs them.
Use these values for
charge_period:
The selected plan must support the selected period. If you use
enabled, include the value from plan_identifier in that list.
Build a link safely
Use? before the first query parameter and & before each additional parameter:
URL and URLSearchParams is safer than joining strings by hand. It handles characters that must be encoded:
Common configurations
Select a plan and billing period
Show the Starter and Pro plans, with Pro monthly selected when checkout opens:Hide discount-code entry
discounts_enabled defaults to true.
Apply a discount code
Link checkout to a customer
Redirect after successful checkout
URLSearchParams does this for you. In other environments, use the standard URL-encoding function provided by the language or framework.
Static URL names and API names
Static checkout links use snake_case query parameters. The Checkout API and backend SDKs use camelCase request fields.
Do not put camelCase names into the URL. For example,
successUrl belongs in an API request; success_url belongs in a static checkout URL.
When to use the Checkout API
Use the Checkout API or a backend SDK when you need per-session options that are not part of the static URL contract, including:- a cancellation URL;
- feature quantities;
- location-based pricing through the customer’s IP address;
- custom amounts, currency, or tax behavior;
- a locked email or default billing country; or
- checkout metadata for webhook correlation.
checkoutUrl and checkoutSessionId. Keep the server API key on your backend.
Create a checkout session with the API →
Test the link
- Enter sandbox mode and copy a sandbox checkout link.
- Add one customization at a time.
- Open the link and confirm the visible plans, selected period, discount behavior, and customer details.
- Complete a sandbox checkout.
- Confirm the success redirect and the
checkout.completedwebhook.