Create a new checkout page with an attached product and pricing.
Use this tool whenever a merchant wants to start accepting payments. The page is always created published and is immediately available at its hosted URL.
When the request is vague, create a minimal checkout page. Do not overcomplicate the setup with extra fields, redirects, discounts, variants, images, tracking, or copy unless the user asked for them or they are clearly required.
Prefer plain text for titles, descriptions, confirmation copy, and email copy. Only use HTML when it is genuinely needed to accomplish the task, such as when the user explicitly asks for formatting that plain text cannot express.
For the page's design and customer-facing labels (including translations), set `themeOverrides` and `hostedLayoutType`; `list_theme_properties` lists what can be set (for a website the user is building or editing, call it with group `tokens` before creating and follow its `note`). Set `themeId` (from list_themes) to use a theme.
**Fields:**
- Omit `fields` to get the defaults: Name, Email address, and a required billing Address.
- If you pass `fields`, include at least one `email` element with `type: "email"` and `required: true`, or the request fails.
- When tax is off and nothing is shipped, pass `fields` with just a name and a required email field so customers are not asked for an address.
- To collect an address, prefer a single `element: "address"` field with `collect: "billing"` (or `"billing_and_shipping"` when you also need a shipping address). It renders a grouped address with country selector. The flat-field types (`address-line1`, `shipping-address-line1`, etc.) still work for niche cases but should not be the default.
- Set `disabled: true` on a field to keep its settings but leave it off the page entirely. It is not rendered, cannot be revealed with `show_fields`, is not prefilled and is never submitted. The customer email field cannot be disabled.
**Tax settings:**
- Tax is enabled by default with `mode: "stripe"`. Omit `tax` entirely unless the merchant explicitly asks to change tax behaviour.
- Three modes are available via `tax.mode`:
- `"stripe"` - Stripe Tax calculates tax automatically based on the customer's address. Requires an address field on the page (use `element: "address"`) and Stripe Tax configured in the merchant's account.
- `"fixed"` - A fixed tax rate is applied. Call `list_tax_rates` first to find an existing rate. Pass its `id` as `productData.fixedTaxRateIds`, or omit it to use the account's default rate. If no suitable rate exists, use `create_tax_rate` to create one first.
- `"none"` - No tax is collected. Set `tax.enabled: false` and `tax.mode: "none"` (or just `tax.enabled: false`).
- If the merchant sells B2B, add a Tax ID field such as a VAT number.
**Payment options:**
- Only these enabled combinations are supported: `full`, `invoice`, `partial`, `cash_on_delivery`, `full + invoice`, `full + partial`, or `full + cash_on_delivery`.
Example uses:
- "Create a checkout page for my $49 online course" - set name, productData.title, price.amount: 4900, price.currency: "usd"
- "Create a monthly subscription at $29/month" - set price.amount: 2900, price.currency: "usd", price.recurring: { interval: "month", intervalCount: 1 }
- "Create a 3-payment plan of $100 each" - set price.amount: 10000, price.currency: "usd", price.paymentPlan: { interval: "month", intervalCount: 1, planIterations: 3 }
- "Create a pay-what-you-want page with a $5 minimum" - set price.amount: 500, price.payWhatYouWant: true
- "Create a checkout page with a one-time price and a monthly subscription option" - set productData.prices: [{ billingType: "one_time", amount: 4900, currency: "usd", label: "One-time" }, { billingType: "recurring", amount: 1000, currency: "usd", label: "Monthly", recurring: { interval: "month", intervalCount: 1 } }]
- "Create a checkout page with annual and monthly plans" - set productData.prices: [{ billingType: "recurring", amount: 9900, currency: "usd", label: "Annual", recurring: { interval: "year", intervalCount: 1 } }, { billingType: "recurring", amount: 1000, currency: "usd", label: "Monthly", recurring: { interval: "month", intervalCount: 1 } }]
After creation, return:
- `data.id`: the checkout page ID
- `data.name`: the internal page name
- `data.hostedUrl`: the live checkout page URL
- `data.dashboardUrl`: the dashboard edit URL
If the user is building or editing a website, call `add_to_website` next with `pageId` set to `data.id` and `pageType: "checkout"`, and put the returned code in the site. Do not wait for the user to ask for this step.