If you’re building your own storefront or platform, you can fully integrate Gale using our REST APIs. This gives you complete control over how products are synced, how checkout sessions are initiated, and how your system responds to real-time updates from Gale.Documentation Index
Fetch the complete documentation index at: https://docs.withgale.com/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
The custom integration flow:- Sync your product catalog — Send products to Gale via the Products API. Gale determines HSA/FSA eligibility automatically.
- Create a checkout session — When a customer checks out, create a session via the Checkout API. You get back a
checkout_urlto redirect the customer to. - Customer pays — On Gale’s hosted checkout page, the customer enters payment details. Gale handles HSA/FSA card detection, eligibility verification, and LMN flow for dual-purpose items.
- Receive confirmation — Gale sends an
order.createdwebhook when payment succeeds. You can also poll the Orders API. - Fulfill the order — Use the
reference_idyou passed during checkout creation to match the order back to your system.
Get Started
Quickstart
Create your first checkout session in minutes with curl examples.
Integration Flow
Full end-to-end walkthrough: product sync, eligibility, checkout, payment, webhooks, and refunds.
API Reference
Complete endpoint documentation for products, checkout, orders, and more.
Webhooks
Receive real-time notifications for payments, orders, and product updates.
