HxCheckout turns an external website's basket into a Velaris Order case. Your storefront POSTs a basket to a public endpoint, and Velaris owns everything after: payment, fulfilment, delivery tracking, returns, and complaints — each as a tracked case with full SLA, audit, and workflow behind it.
HxCheckout is the bridge between commerce and case management. An external site (or HxStorefront) hands Velaris a finished basket; Velaris creates an Order case and drives it through Payment → Fulfilment → Delivery → Post-Delivery. Payment runs inline through the existing HxConnect Stripe connector, and returns and complaints open as linked sub-cases.
velaris/hxcheckout is installed from the Marketplace. Installing only flips a per-tenant gate — no code is downloaded.
Your storefront POSTs a basket to /orders with a service token. An Idempotency-Key guarantees a retried request never double-charges.
Velaris creates the Order case and, if Stripe is configured, returns a payment_url. With no payment provider it degrades gracefully to invoice / cash-on-delivery and proceeds straight to fulfilment.
The order advances through fulfilment and delivery as a normal case — staff use the full workflow, SLA, and audit machinery.
The customer holds a random tracking token that lets them raise a return or complaint, which opens a linked sub-case.
| Caller | Credential | Used for |
|---|---|---|
| External site | Service token (X-Velaris-Token: vsk_<mode>_<keyid>_<secret>) | Create / read / cancel orders. Only the bcrypt hash is stored; a per-token rate limit auto-suspends on a spike. |
| Platform webhook | HMAC (X-Velaris-HMAC-SHA256) | Verified on the raw body before deserialization; mismatch → 401, logged. |
| Customer | Tracking token (128-bit) | Raise a return / complaint (rate-limited per IP). |
| Staff | Operator JWT | Studio management — tokens, integrations, order board, analytics. |
Base path /api/v1/checkout:
| Method | Path | Auth |
|---|---|---|
| POST | /orders | service token (Idempotency-Key supported) |
| GET | /orders/{id} | service token |
| POST | /orders/{id}/cancel | service token (pre-dispatch) |
| POST | /orders/{id}/returns · /complaints | tracking token |
| POST | /webhook/{integration_id} | HMAC |
| GET | /orders · /analytics/summary | admin |
| GET/POST/DELETE | /tokens | admin |
| GET/POST/PUT/DELETE | /integrations | admin |
When PAYMENT_PROVIDER = stripe, payment is taken inline through the existing HxConnect Stripe connector — no separate integration. With no connector configured, HxCheckout degrades to invoice / COD: the payment_url is null and the order proceeds to fulfilment unblocked.
Uninstalling either revokes the package (keeps data) or revokes and deletes data. A data delete removes the tenant's checkout_* rows, but the Order, Return, and Complaint cases stay — they are core records, linked by a nullable reference that is simply cleared.