Agentic

Create checkout

POSThttps://api.firstleeward.com/v0/agentic/checkouts

Opens 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 · headerrequired

API key as Bearer token, e.g. Bearer YOUR_API_KEY

Headers

Leeward-Versionenum<string>required

API version (YYYY-MM-DD). Available option: 2026-09-18

Idempotency-Keystringrequired

Unique 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-Checkoutstring

Simulates a completed checkout in the sandbox. This header is rejected in production.

Body

application/json

quoteIdobjectrequired
enrollmentIdobjectrequired
presentationobjectrequired
Show child attributes
typestringrequired
returnUrlstring<uri>required

HTTPS URL the browser returns to after the hosted flow

Response

200Response for status 200
idstringrequired
statusstringrequired
Available options:REQUIRES_ACTIONPROCESSINGCOMPLETEDFAILEDEXPIRED
quoteIdstringrequired
enrollmentIdstring | nullrequired
amountobject
Show child attributes
amountnumberrequired
currencystringrequired
nextActionobjectrequired
Show child attributes
typestringrequired
Available options:REDIRECT
urlstring<uri>required
expiresAtobject
400Response for status 400
Option 1 · AgenticRequestRejectedError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailnullrequired
Option 2 · CheckoutRequestRejectedError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailobject | nullrequired
Show child attributes
fieldstringrequired
Available options:quoteIdenrollmentId
404Response for status 404
Option 1 · AgenticResourceNotFoundError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailobject | nullrequired
Option 2 · EnrollmentNotFoundError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailnullrequired
Option 3 · QuoteNotFoundError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailnullrequired
409Response for status 409
Option 1 · EnrollmentNotActiveError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailobject | nullrequired
Show child attributes
reasonstringrequired
Option 2 · QuoteExpiredError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailnullrequired
503Response for status 503
Option 1 · AgenticServiceUnavailableError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailobject | nullrequired
Option 2 · CheckoutTemporarilyUnavailableError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailnullrequired