Webhooks
Real-time event notifications for checkout status changes and product-eligibility updates. Configure a single HTTPS endpoint on your server; Gale will POST signed JSON payloads to it.
- Provide a publicly reachable HTTPS URL in the Gale Dashboard.
- Verify each call with the
X-Gale-Signature
header (HMAC-SHA256). - Respond with 200 OK within 5 s—otherwise Gale will retry up to 3 times with exponential back-off.
Signature Verification
- Take the raw request body.
- Prepend the timestamp (
t=
value) with a dot separator. - Hash using your ** webhook signing secret ** (dashboard).
- Compare (timing-safe) to the
v1=
hash.
Detailed code samples are in the Examples page.
Event 1 · checkoutStatusChange
Fired whenever a checkout transitions state.
Possible status values
→ UNPAID
, PAID
, REFUNDED
, CANCELLED
, EXPIRED
.
Use the payload to update orders and trigger fulfilment or refunds in real time.
Event 2 · productStatusChange
Sent when SIGIS / LMN / Vision eligibility toggles.
Values for eligibility_type
:
sigis_eligible
· lmn_eligible
· vision_eligible
· not_eligible
.
Update your catalog immediately so ineligible items are no longer advertised as HSA/FSA-qualified.
Retry Policy
Attempt | Delay after previous try |
---|---|
1 (initial) | — |
2 | 30 s |
3 | 2 min |
4 (final) | 10 min |
After four failed attempts the event is marked dead-letter; you can manually re-send from the Dashboard.