Agentic
Create checkout
https://api.firstleeward.com/v0/agentic/checkoutsOpens the payment for an unexpired quote against an ACTIVE enrollment, whose stored card and owner are used for the charge. The response carries a redirect to a First Leeward-hosted approval page where the user reviews the order and approves the payment. After approval the user returns to presentation.returnUrl and First Leeward completes the merchant checkout.
Authorizations
Authorizationstring · headerrequiredAPI key as Bearer token, e.g. Bearer YOUR_API_KEY
Headers
Leeward-Versionenum<string>requiredAPI version (YYYY-MM-DD). Available option: 2026-09-18
Idempotency-KeystringrequiredUnique key for safely retrying this request. Up to 255 characters; we recommend a UUIDv4. The first request executes and its response is cached; subsequent requests with the same key replay the cached response (24h retention).
X-Simulate-CheckoutstringSimulates a completed checkout in the sandbox. This header is rejected in production.
Body
application/json
quoteIdobjectrequiredenrollmentIdobjectrequiredpresentationobjectrequiredShow child attributes
typestringrequiredreturnUrlstring<uri>requiredHTTPS URL the browser returns to after the hosted flow
Response
200Response for status 200
idstringrequiredstatusstringrequiredREQUIRES_ACTIONPROCESSINGCOMPLETEDFAILEDEXPIREDquoteIdstringrequiredenrollmentIdstring | nullrequiredamountobjectShow child attributes
amountnumberrequiredcurrencystringrequirednextActionobjectrequiredShow child attributes
typestringrequiredREDIRECTurlstring<uri>requiredexpiresAtobject400Response for status 400
Option 1 · AgenticRequestRejectedError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequiredOption 2 · CheckoutRequestRejectedError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequiredShow child attributes
fieldstringrequiredquoteIdenrollmentId404Response for status 404
Option 1 · AgenticResourceNotFoundError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequiredOption 2 · EnrollmentNotFoundError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequiredOption 3 · QuoteNotFoundError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequired409Response for status 409
Option 1 · EnrollmentNotActiveError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequiredShow child attributes
reasonstringrequiredOption 2 · QuoteExpiredError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequired503Response for status 503
Option 1 · AgenticServiceUnavailableError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequiredOption 2 · CheckoutTemporarilyUnavailableError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequired