The checkout page object

Sell a product, subscription or payment plan

A checkout page has one product, which holds the prices. One-time purchases create a payment. Recurring ones create a subscription.

Endpoints

Webhooks

  • checkout_page.created

    Triggered when a checkout page is created

  • checkout_page.updated

    Triggered when a checkout page is updated and when it is archived or restored. Changes to the checkout page's product trigger product.updated instead. Check status for the current state.

Fields

  • idstring

    Unique identifier. Must be in BSON ObjectId format.

  • sellerIdstring

    Unique identifier. Must be in BSON ObjectId format.

  • typestring

    Type of page.

    checkout
  • name?string, nullable

    Internal name of the page.

  • slug?string, nullable

    URL slug for the page.

  • statusstring

    Publication status of the page.

    publisheddraftarchived
  • testmodeboolean

    Whether the page is in test mode. While it is on, every purchase on this page is a test purchase and its records are created with livemode: false.

  • testmodeEnabledAtstring, nullable

    When test mode was switched on. null while the page is not in test mode.

    date-time

  • Images displayed on the page.

  • locale?string, nullable

    Locale the page formats prices and numbers with, for example en-US or de-DE.

  • hostedLayoutType?string, nullable

    Layout of the hosted page. center shows the content and the checkout form in one centered card on a page background, double shows them side by side in two columns, and split divides the whole page into two halves, the content on one and the checkout form on the other. double_banner is a legacy layout that can't be set through the API.

    centerdoublesplitdouble_banner
  • embedLayoutTypestring

    Layout of the page when it is embedded in a website. center shows the content and the form in one column, double side by side in two columns (one column when there is too little room). Existing embed codes and pop-up buttons pick it up on their next load.

    centerdouble
  • popupLayoutTypestring

    Layout of the page when it opens as a pop-up over a website. center shows the content and the form in one column, double side by side in two columns (one column when there is too little room). Existing embed codes and pop-up buttons pick it up on their next load.

    centerdouble
  • themeIdstring, nullable

    The theme the page uses.

  • themeOverrides?ThemeOverrides, nullable

    The design and labels the page sets on top of its theme. Properties the page doesn't override are left out and follow the theme. Uses the same shape as the themeOverrides input.

    See all theme settings
  • Custom form fields on the page.

  • How the page's form is arranged, top to bottom: fields, headings, dividers, groups of fields shown side by side in columns, and where the discount code box sits. Always returned, even for a page that was never arranged: every field on the page is listed, and fieldId matches the id of an entry in fields. A discount-code item only places the box, which shows while showCouponCodeField is on. A placement you saved is returned whether the box is on or off; when none was saved and the box is on, the item is at the end, where the box shows. Forms never have one. Each item is one of: field (fieldId), heading (id, text, level heading or subheading), divider (id), discount-code (no other properties) and group (id, optional name, columns 1 to 4, and items holding fields, headings, dividers or the discount code; groups never nest). You choose the id of each heading, divider and group: 1 to 64 characters, unique in the layout. formLayout on the page decides the form's order. Each field's order is its position among the page's fields and follows the layout: saving a layout (in the dashboard or through the API) rewrites every field's order. On a page that has never saved a layout, setting order moves the field; once a layout is saved, move fields with formLayout instead. More item types may be added later. When reading a layout, skip any item type you do not recognise. When updating, send every item back as you received it, including those.

  • url?string, nullable

    Full URL to the hosted page.

  • customizeCheckoutConfirmation?boolean, nullable

    If set to true confirmationCheckoutMessage and confirmationCheckoutTitle will be displayed on the confirmation page. Defaults to false.

  • closePopupOnClickOutside?boolean, nullable

    Whether a popup embed closes when clicking outside the container.

  • Ordered funnel steps for this page. The response uses the same public structure as the input schema, including pageId and redirectPageId field names.

  • visitCount?number, nullable

    Number of page visits.

  • createdAtstring

    When the page was created.

    date-time

  • updatedAtstring

    When the page was last updated.

    date-time

  • If enabled, redirects the customer to the specified URL before the page loads.

  • afterPaymentAction?string, nullable

    Behavior after checkout.

    confirmationcheckoutredirect
  • redirectPageId?string, nullable

    ID of the page to redirect to after payment when afterPaymentAction is checkout.

  • redirectUrl?string, nullable

    URL to redirect to after submission.

  • Additional path parameters appended to the redirect URL.

  • Query parameters for the redirect URL.

  • redirectUrlInsideEmbed?boolean, nullable

    Redirect within the embed instead of the main browser window.

  • confirmationCheckoutTitle?string, nullable

    Confirmation page title.

  • confirmationCheckoutMessage?string, nullable

    Confirmation page message.

  • showFilesList?boolean, nullable

    Whether the confirmation page lists the purchased files.

  • showViewDownloadsButton?boolean, nullable

    Whether the confirmation page shows a "View downloads" button.

  • sendPaymentNotification?boolean, nullable

    Send notification emails to the store owner.

  • notifyEmail?string, nullable

    Email addresses to send notifications to.

  • sendEmailConfirmation?boolean, nullable

    Send an email confirmation to the customer.

  • customizeEmailConfirmation?boolean, nullable

    Use a custom email confirmation template.

  • confirmationEmailSubject?string, nullable

    Custom confirmation email subject.

  • confirmationEmailMessage?string, nullable

    Custom confirmation email message.

  • confirmationEmailShowLogo?boolean, nullable

    Show store logo in confirmation email.

  • confirmationEmailShowStoreName?boolean, nullable

    Show store name in confirmation email.

  • googleIndex?boolean, nullable

    Allow Google to index this page.

  • trackingCodes?string, nullable

    Custom tracking scripts for the page.

  • showCouponCodeField?boolean, nullable

    Whether to show the coupon code field.

  • showCouponCodeFieldType?string, nullable

    Display type for coupon code field.

    linkfield
  • allowDynamicPrice?boolean, nullable

    Whether the price can be set dynamically via URL parameters.

  • allowDynamicDiscountedFromPrice?boolean, nullable

    Whether the discounted from price can be set dynamically via URL parameters.

  • allowDynamicTitle?boolean, nullable

    Whether the title can be set dynamically via URL parameters.

  • allowDynamicDescription?boolean, nullable

    Whether the description can be set dynamically via URL parameters.

  • allowDynamicLabel?boolean, nullable

    Whether a price's label can be set dynamically via URL parameters.

  • allowDynamicPreselectedPrice?boolean, nullable

    Whether a price can be preselected (and revealed if hidden) via URL parameters.

  • allowDynamicPlanIterations?boolean, nullable

    Whether subscription plan iterations can be set dynamically via URL parameters.

  • allowDynamicRedirectUrl?boolean, nullable

    Whether the redirect URL can be set dynamically via URL parameters.

  • savePaymentMethod?boolean, nullable

    Whether to save payment method on file for one-time payments. Payment methods for subscriptions are always saved.

  • Checkout abandonment email reminder settings.

  • sendCanceledSubscriptionNotifications?boolean, nullable

    Whether to send notifications to the store owner when a subscription is canceled.

  • sendRecurringPaymentFailedNotifications?boolean, nullable

    Whether to send notifications to the store owner when a recurring payment fails.

  • sendRecurringPaymentSucceededNotifications?boolean, nullable

    Whether to send notifications to the store owner when a recurring payment succeeds.

  • Tax configuration for this page.

  • Payment method configuration for this page.

  • Payment options presented to customers at checkout.

  • Extra fees applied at checkout.

  • Options that let customers choose to cover the processing fee. Empty when the page has none. The list holds at most one option for now.

  • Invoice configuration for manual payment flows.