Prerequisites
- Approved order intent — follow Approve an Order Intent.
- Crossmint API key — a client-side key with the
order-intents.readscope. In staging, all scopes are included by default. - User JWT — use the JWT for the user who owns the order intents.
List the User’s Order Intents
Send aGET request. The response is an array with every order intent of the authenticated user:
status (active, cancelled, or expired), its rails, and its live amount:
available is the amount that the agent can still spend. Each credential takes its amount from it.
Reuse an Order Intent
An order intent covers a new payment when all of these are true:statusisactive, andexpiresAtis in the future.- The currency is the currency of the payment.
amount.availableis at least the payment amount.- The order intent has no
merchant, or the same merchant as the payment.
Refresh One Order Intent
To read one order intent again, for example after a payment, sendGET /api/unstable/order-intents/{orderIntentId}. It returns the same fields as an item of the list. See Get Order Intent.
Next Steps
Pay for a Checkout
Pay with the order intent in an agent checkout
Cancel Card Access
Cancel an order intent that the user no longer wants
List Order Intents
Review the complete response schema

