Skip to main content
POST
Create Checkout Session

Create Checkout Session

Create a checkout session for a customer. Returns a checkout URL where the customer completes payment on Gale’s hosted page. Gale handles card collection, eligibility detection, and LMN flow automatically.
All monetary amounts are integers in cents (e.g., 4995 = $49.95).

Endpoint

Authentication

Request Body

Parameters

product_id is your product identifier — the one you supplied when syncing products (merchant_product_id), not the numeric id displayed in the dashboard. Line items that don’t match a synced product are accepted as pass-through items and treated as non-HSA/FSA-eligible, so an unmatched id silently produces a regular (non-eligible) checkout. Your own product ids are identical across test and live, so the same integration carries to go-live unchanged.

Response

Fields are returned under data.

Example

Subscription Checkout Beta

Checkout Types

Gale automatically determines the checkout type based on product eligibility: You don’t need to specify the type — Gale handles this automatically based on the products in the checkout.

Checkout Status

Webhooks

When payment completes, you receive an order.created webhook:
See Webhooks Reference for setup and all event types.

Errors

See Error Reference for details.