Agentic
Select shipping option
POST
https://api.firstleeward.com/v0/agentic/quotes/:id/shipping-optionSelects a shipping option on an existing quote and re-prices it. The response is the updated quote with a fresh amount breakdown. QUOTE_REPLACEMENT_REQUIRED means the caller must create a new quote.
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
Path Parameters
idstringrequiredResource identifier
Body
application/json
shippingOptionIdstringrequiredResponse
200Response for status 200
idstringrequiredshippingOptionsobject[]requiredShow child attributes
idstringrequirednamestringrequiredselectedbooleanrequiredpriceobjectrequiredShow child attributes
amountnumberrequiredcurrencystringrequireddetailsobject[]Show child attributes
keystringrequiredvaluestringrequiredamountBreakdownobjectrequiredShow child attributes
itemsSubtotalobjectrequiredShow child attributes
amountnumberrequiredcurrencystringrequiredshippingobjectShow child attributes
amountnumberrequiredcurrencystringrequiredtaxobjectShow child attributes
amountobjectrequiredShow child attributes
amountnumberrequiredcurrencystringrequiredincludedInPricesbooleandiscountsobject[]requiredShow child attributes
namestringrequiredamountobjectrequiredShow child attributes
amountnumberrequiredcurrencystringrequiredadditionalChargesobject[]requiredShow child attributes
namestringrequiredamountobjectrequiredShow child attributes
amountnumberrequiredcurrencystringrequiredfinalAmountobjectrequiredShow child attributes
amountnumberrequiredcurrencystringrequiredexpiresAtobjectrequired400Response for status 400
Option 1 · AgenticRequestRejectedError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequiredOption 2 · OfferCodeInvalidError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequiredOption 3 · OfferCodeExpiredError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequiredOption 4 · ShippingOptionInvalidError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequiredShow child attributes
Option 1
reasonstringrequiredmessagestringOption 2
reasonstringrequiredmessagestringOption 3
reasonstringrequiredmessagestringOption 5 · QuoteRequestRejectedError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequiredShow child attributes
errorsobject[]requiredShow child attributes
fieldstringrequiredDot-separated path to the rejected request field; array indices are numeric segments, such as items.0.variantId
messagestringAvailable options:
Host must match the merchant domainMust be a canonical DNS domain without a scheme, path, or wwwMust be a valid checkout URL of at most 8192 charactersMust be a valid checkout URLMust use HTTPSMust not include credentialsMust not include an explicit portMust be a Shopify cart permalink or tokenized checkout continuationshippingAddress is required for externalCheckoutOffer code must be at most 128 charactersExactly one of items or externalCheckout is required404Response for status 404
Option 1 · AgenticResourceNotFoundError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequiredOption 2 · QuoteNotFoundError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequired409Response for status 409
Option 1 · QuoteExpiredError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequiredOption 2 · QuoteReplacementRequiredError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequiredOption 3 · QuoteNotMutableError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailnullrequired503Agentic Payments is temporarily unavailable
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequired