Poll the Get Order API
Fetch the order and watchorder.phase plus each line item’s delivery.status (awaiting-payment → in-progress → completed or failed):
GET https://staging.crossmint.com/api/2022-06-09/orders/{orderId} — see the API reference.
Crossmint recommends a polling interval of about 2500ms and never below 500ms.
Subscribe to Webhook Events
For server-side tracking, register a webhook endpoint to receive order lifecycle events instead of polling. Checkout webhooks notify you about payment and order events in real time — for example when an order is paid or delivered. See Webhook Events for event types, payload shapes, and how to register your endpoint.Track Hosted Checkout Orders
Hosted Checkout opens in a separate window or tab. The SDK does not give your page a callback when the order completes. Use one of these methods:- Webhooks: subscribe to webhooks. This works for all Hosted orders.
- Polling: create the order on your server, then pass
orderIdandclientSecrettoCrossmintHostedCheckout. Your app then knows the order ID and can poll the Get Order API as shown above.
Next Steps
Handle Errors
Surface declines and failures to buyers
Webhooks
Event types, payloads, and registration

