The form object

Collect answers without taking a payment

A form has questions. Each time someone fills it in, a submission is created.

Endpoints

Fields

  • idstring

    Unique identifier. Must be in BSON ObjectId format.

  • sellerIdstring

    Unique identifier. Must be in BSON ObjectId format.

  • typestring

    Type of page.

    form
  • 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.

  • title?string, nullable

    Display title shown on the page.

  • description?string, nullable

    Page description stored as Lexical rich text JSON.

  • descriptionHtml?string, nullable

    HTML description of the page.

  • 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.

  • Invoice configuration for manual payment flows.

  • Downloadable files attached to this form page, available to customers after submission.

  • submissionCount?number, nullable

    Number of form submissions.

  • Form behaviour settings.