Skip to main content
Custom fields add your own inputs to the checkout form: a terms checkbox, a newsletter opt-in, a “How did you hear about us?” select. You define fields once for your organization, then attach them to products. The answers are stored under custom_field_data on the checkout, order and subscription, keyed by each field’s slug.

Field types

Every type also takes a Label, Help text and Placeholder (form_label, form_help_text and form_placeholder in properties). The label and help text support basic Markdown, including links. Without a form_label, the field’s name is the label. The type can’t be changed after creation.

Create a field

  • Open Products → Custom Fields
  • Click New
  • Pick a Type, then set the Slug and Name
  • Optionally, set Label, Help text and Placeholder under Form input options, and limits under Validation constraints
The slug is the key the answer is stored under. It’s unique within your organization and takes lowercase letters, numbers, hyphens and underscores. You can rename it later: Polar updates the answers already stored on checkouts, orders and subscriptions. The name identifies the field in your dashboard.

Add the field to a product

A field only appears on the checkout of products it’s attached to. Mark it required to block the checkout until it’s filled in. A required checkbox must be checked, which suits terms acceptance.
  • Open the product under Catalog
  • In the Checkout Page section, select the field under Checkout Fields
  • Toggle Required if needed, then save

Prefill answers

  • On a Checkout Session, pass custom_field_data keyed by slug: { "source": "friend" }.
  • On a Checkout Link, add custom_field_data.{slug} to the URL: ?custom_field_data.source=friend.

Read the answers

In the dashboard, open an order or subscription under Sales. The answers are in its Custom Fields section. From the API, read custom_field_data on the order, subscription or checkout. The order.created and subscription.created webhooks include it too.
From the CLI: polar orders get <order_id> --fields custom_field_data. The examples use the sandbox and API version 2026-10.

From the CLI or your agent

polar custom_fields update requires --type, set to the field’s current type.

Learn more