1. Product Sync
Before initiating any checkout session, you must sync your product catalog with Gale. Each product includes metadata such as name, UPC, GTIN, category, and a uniqueexternal_id
.
Endpoint:
2. Eligibility Classification
Once products are synced, Gale evaluates their eligibility based on SIGIS, LMN, and vision-related categories. You can:- Query individual or batch product eligibility using the API
- Subscribe to webhook events (
productStatusChange
) for real-time updates
sigis_eligible
lmn_eligible
vision_eligible
not_eligible
3. Hosted Checkout Session
With eligible products in place, initiate a hosted checkout session using the Gale API. Endpoint:checkout_url
which you should redirect your customer to.
4. Payment Processing
The customer completes payment on Gale’s hosted checkout page. The checkout session transitions through various statuses such as:UNPAID
PAID
REFUNDED
CANCELLED
EXPIRED
5. Webhook Event Delivery
Gale will notify your server in real-time of any important events, including:- Checkout status changes (
checkoutStatusChange
) - Product eligibility updates (
productStatusChange
)
- Register your webhook URL in the Gale Dashboard
- Validate signatures using
X-Gale-Signature
- Respond with HTTP 200 within 5 seconds
6. Refunds and Cancellations
You can issue full or partial refunds via:Summary
Step | Description |
---|---|
Product Sync | Send your products to Gale |
Eligibility | Check which items are HSA/FSA eligible |
Create Checkout | Launch a hosted checkout session |
Process Payment | Customer completes payment on Gale’s page |
Listen to Webhooks | Receive real-time updates |
Handle Refunds | Process returns or cancellations |