Delivery quotes
A delivery quote prices the delivery methods a checkout can offer, for the cart, destination, and pickup store as they are when you ask. It groups the cart's items into choice groups and lists the options the buyer can pick in each one. The buyer chooses by creating a delivery selection from the quote, and the checkout's payment uses that selection.
| Step | Resource | Use it to |
|---|---|---|
| Before a checkout exists | Delivery previews | Show estimated options on a product or cart page, or find pickup stores. Nothing is saved. |
| During checkout | Delivery quote | Get the options and prices the buyer can select for this checkout. |
| The buyer chooses | Delivery selection | Record one option per choice group, with its price and window. |
Create a quote from the browser with the checkout credential, or from your server with an API key. Both get the same quote; the API key view adds what only a merchant needs. For the whole flow, from quoting the address to paying, follow Build your own checkout.
Create a quote#
A quote never updates in place. Create a new one each time the buyer enters or corrects the destination, picks a pickup store, or changes the cart. Each change makes earlier quotes stale.
curl -X POST https://api.withflintpay.com/v1/checkout-sessions/cs_1kmn0aExample/delivery-quotes \
-H "Authorization: Bearer ckat_1kmn0aExample" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: quote-cart-42-address-1" \
-d '{
"expected_delivery_selection_id": null,
"destination_address": {
"postal_code": "11249",
"country": "US"
}
}'
{
"data": {
"delivery_quote_id": "dqt_1kmn0aExample",
"status": "active",
"evaluation_status": "complete",
"selection_required": true,
"choice_groups": [
{
"delivery_choice_group_id": "dcgrp_1kmn0aExample",
"stable_key": "grp_1kmn0aExample",
"availability_status": "ready",
"evaluation_status": "complete",
"method_types": ["shipment"],
"line_items": [
{ "order_line_item_id": "li_1kmn0aExample", "quantity": 2 }
],
"input_requirements": [],
"options": [
{
"delivery_option_id": "dopt_1kmn0aExample",
"delivery_method_id": "dmet_1kmn0aExample",
"type": "shipment",
"name": "Standard shipping",
"amount_money": { "amount": 900, "currency": "USD" },
"recommended": true,
"display_position": 1,
"taxable": true,
"window_selection": "none",
"buyer_instructions": { "enabled": false, "required": false },
"delivery_plan": { "type": "single_delivery" },
"expires_at": "2026-08-03T15:45:00Z"
}
]
}
],
"input_requirements": [],
"buyer_reasons": [],
"delivery_revocation_id": null,
"evaluated_at": "2026-08-03T15:30:00Z",
"expires_at": "2026-08-03T15:45:00Z",
"created_at": "2026-08-03T15:30:00Z"
},
"request_id": "req_1kmn0aExample"
}
Every request field is optional. Send what the buyer has given you so far:
| Field | Send it for |
|---|---|
destination_address | Shipment and local delivery: where the items go. A partial address is fine. |
buyer_location | Pickup: where the buyer is, as an address or a coordinate, for methods that only serve buyers nearby. |
pickup_location_id | Pickup: the store the buyer chose. |
expected_delivery_selection_id | An assertion about the checkout's current selection. |
expected_delivery_selection_id keeps a second browser tab from quoting over a newer choice. Send the session's delivery.delivery_selection_id, or null when no selection exists yet. Leave it out to make no assertion. A failed assertion returns 409 VERSION_CONFLICT; delivery selections explains the three cases.
Send an Idempotency-Key so a retried request returns the same quote. A request with a different body, such as a corrected address, needs a new key.
Partial addresses#
You can quote before the buyer finishes the address, for example from a postal code and country alone. A method whose zone or rate depends on a member you haven't sent, such as state, can't be decided yet: it has no option, and input_requirements names the member it needs. A selection needs a complete address, or it keeps the address its quote was priced from.
destination_address, and the address form of buyer_location, follow these rules:
countryis required once you send any other member, and must be an uppercase ISO 3166-1 alpha-2 code.- Flint trims each member. A member that is empty after trimming is rejected.
line1andline2take up to 255 characters,cityandstateup to 100, andpostal_codeup to 20.
A broken rule returns 400 INVALID_REQUEST with param naming the member, such as destination_address.country.
Read a quote#
Render one picker for each entry in choice_groups. A group holds line items that are delivered together, and the options that can deliver them. The buyer picks one option from every group.
availability_status | What to show |
|---|---|
ready | The group's options. The recommended option comes first, then the rest by display_position. Other methods in the group can still be waiting for input. |
needs_input | A form for what the group's input_requirements asks for, such as the address. Quote again once the buyer enters it. |
unavailable | That these items can't be delivered with what the buyer entered. buyer_reasons says why in terms the buyer can act on, such as outside_delivery_area. |
Three fields keep the checkout steady from one quote to the next:
method_typeslists how a group can be delivered (shipment,pickup, orlocal_delivery) before any option is priced, so you can label the step "Delivery" or "Pickup" while you ask for the address.stable_keystays the same across quotes while a group holds the same items and can be delivered the same ways.delivery_choice_group_idand everydelivery_option_idare new in each quote, so key the picker's state onstable_keyand select with the current quote's IDs.previously_selected_delivery_method_idnames the method the buyer chose in the current selection, so you can preselect it in the new quote.
When the buyer can select#
A selection can be created from a quote when all of these hold:
statusisactiveorconsumed.- Every choice group is
ready. - No rates are still owed: with an API key,
pending_caller_rate_requestsis empty.
When selection_required is false, nothing in the cart needs delivery and there's nothing to select. An evaluation_status of incomplete or degraded doesn't block selection by itself: it means more input, or a retry, could add options.
Inputs the methods need#
input_requirements lists what the methods need, at the quote level and on each group. Each entry has a field_path, a typed constraint, and a purpose:
purpose | Needed before | Example |
|---|---|---|
quote | Flint can price the method. Send it in the next quote. | destination_address, or destination_address.postal_code |
selection | The buyer can pay with the selection. Send it with the selection. | recipient.phone for a courier, or a delivery window |
pickup_availability | Flint can check which stores have the items. | The buyer's location for a store search |
A method waiting on the buyer's address or store already lists the recipient fields it requires, with purpose selection. Those requirements name the method's choice group but no delivery_option_ids, because the method has no option yet. Ask for these fields along with the address: an Apple Pay or Google Pay sheet can only ask for a phone number when it opens.
Address checks#
When you send a street address, Flint checks it. A group's address_advisories reports what the check found, with role naming the address it applies to:
verification_state | What to do |
|---|---|
needs_review | Flint priced the address but couldn't confirm every part of it. When suggested_address is present, offer it to the buyer, and quote again with the address they confirm. Flint never applies a suggestion itself. |
unverifiable | Flint couldn't place the address, so methods that depend on it have no option. Ask the buyer to correct it. |
Evaluation status#
evaluation_status says whether Flint could decide every method. Each choice group reports its own, and the quote's rolls them up: incomplete if any group is incomplete, otherwise degraded if any group is degraded.
evaluation_status on delivery quotecompleteEvery method was decided: it has an option, or it can't serve these items or this destination.incompleteAt least one method needs more input before Flint can price it, such as an address member or rates your server supplies. Collect whatinput_requirementslists and quote again.degradedEvery method that needs no more input was evaluated, but at least one couldn't be calculated, for example because a rate callback failed. Other methods' options are still selectable.merchant_diagnosticsnames the method and the cause.
How long a quote lasts#
Read expires_at from every quote instead of computing it. It depends on how the quote's methods are priced:
| The quote's methods | expires_at |
|---|---|
All use fixed, tiered, or rate_table pricing | 24 hours after evaluated_at |
Any uses calculated, callback, or caller_supplied pricing | At most 15 minutes after evaluated_at |
| The cart has tracked inventory | At most 5 minutes, while the stock check holds |
An option can expire before its quote. Once an option's own expires_at passes, reads leave it out. How long the price holds after the buyer selects is up to the selection; see delivery selections.
Status#
status says whether the quote still matches the checkout. Flint works it out on every read, from the checkout as it is at that moment, so the checkout quote route, GET /v1/delivery-quotes/{delivery_quote_id}, and the list all report the same status and stale_reason.
- active moves to consumed on a selection takes every option
- consumed moves to active on the selection is cleared
- active moves to stale on the checkout changes
- consumed moves to stale on a selection from another quote replaces it
- active moves to expired on expires_at passes
- consumed moves to expired on expires_at passes
- active moves to revoked on a revocation fences a dependency
status on delivery quoteactiveThe quote matches the checkout and hasn't expired. The buyer can select from it once every group isready.consumedThe current selection holds every option in the quote, and each option'sconsumed_by_delivery_selection_idnames it. You can still create a selection from the quote, which replaces the current one, for example to add recipient details. Clearing the selection frees its options.staleThe checkout changed after the quote was evaluated.stale_reasonsays what changed. Create a new quote.expiredFinalexpires_atpassed. Create a new quote.revokedFinalA delivery revocation fenced a method, rate callback, signing key, or Location geography the quote used.delivery_revocation_idnames the revocation,revocation_reasonrepeats itsreason, andrevoked_atsays when. Create a new quote.
stale_reason says what made a quote stale. Only an API key sees it.
stale_reason on delivery quotecheckout_changedThe order's delivery details changed, such as its line items, quantities, or discounts.inventory_changedThe tracked inventory the cart needs changed.eligibility_changedThe checkout's eligibility context changed, soeligibility_context_versionno longer matches.selection_changedThe checkout's current selection is neither the one the quote was built on (basis_delivery_selection_id) nor one made from this quote. A selection that expired or was released counts as no selection.authority_changedThe quote's checkout session or order no longer exists, or the checkout now has a different order.superseded_by_priced_quoteA priced quote replaced this pending quote after your server supplied its rates.superseded_by_delivery_quote_idnames the replacement, and the replacement'sbasis_delivery_quote_idnames this quote.
Rates your server supplies#
A method with caller_supplied pricing gets its rate from your server. Quote these checkouts from your server with an API key: when a checkout's methods include one, a quote request with the checkout credential returns 403 FORBIDDEN with reason merchant_credential_required. Pricing takes two quote requests:
- Your server sends POST /v1/checkout-sessions/{checkout_session_id}/delivery-quotes to Flint
- Flint returns pending quote: incomplete, with pending_caller_rate_requests to Your server
- Your server sends prices each requested method and choice group to Your server
- Your server sends POST again with basis_delivery_quote_id and method_results to Flint
- Flint returns priced quote with selectable options to Your server
- Answer every request exactly.
method_resultsneeds one entry for eachdelivery_method_revision_idanddelivery_choice_group_idpair inpending_caller_rate_requests, with no extras or duplicates. - Repeat the first request's inputs. Send the same
destination_address,buyer_location,pickup_location_id, andinventory_assignments. A changed input, or a checkout that changed in between, returns409 DELIVERY_REQUOTE_REQUIREDwith reasonquote_staleandparambasis_delivery_quote_id. Start again from a new pending quote. - Price each pending quote once. After a priced quote replaces it, the pending quote can't be a basis again.
- Use a new
Idempotency-Keyfor the second request, since its body differs.
The priced quote is a new quote with the same choice groups and the pending quote's expires_at. The pending quote becomes stale with reason superseded_by_priced_quote. Supply rates from your server shows the method_results body. An available outcome needs a delivery window: window_start_at and window_end_at, or offered_windows for the buyer to choose from. To have Flint call your rate service during the quote instead, use a delivery rate callback.
What each credential sees#
A quote created or read with the checkout credential has the same shape, without what only a merchant needs. The reference marks each of these fields.
| Checkout credential | API key | |
|---|---|---|
| Routes | Create a quote, and read one of its checkout's quotes | Also list issued quotes, and read any quote by ID |
| Request fields | Addresses, buyer location, pickup store, and the selection assertion | Also inventory_assignments (which Location supplies tracked stock), method_results for caller-supplied rates, and tier_key |
| Choice groups and options | What the buyer chooses from | Also each group's candidate_outcomes, allowed_types, and execution_legs, and each option's delivery_method_revision_id, charge_tax_category, and execution_legs |
| Status and diagnostics | status, delivery_revocation_id, and buyer_reasons | Also stale_reason, revocation_reason, revoked_at, superseded_by_delivery_quote_id, merchant_diagnostics, methods, and pending_caller_rate_requests |
| IDs and versions | delivery_quote_id | Also checkout_session_id, order_id, basis_delivery_quote_id, basis_delivery_selection_id, delivery_quote_version, and eligibility_context_version |
Sending a merchant-only request field with the checkout credential returns 400 INVALID_REQUEST with param naming the field. destination_address, buyer_location, and an advisory's suggested_address are returned to the checkout credential only when it acts for the customer the buyer verified.
execution_legs lists the Locations an option's items leave from. With method_origin routing, each method leaves from its own origin, so shipping can leave from a warehouse while pickup leaves from the chosen store. A choice group lists execution_legs itself only when all of its methods leave from the same Locations.
Look up past quotes#
With an API key, GET /v1/delivery-quotes lists the quotes Flint issued, with merchant diagnostics, for support cases and debugging. GET /v1/delivery-quotes/{delivery_quote_id} reads one, such as a quote ID from a support case.
Filter the list by checkout_session_id, order_id, status, evaluation_status, created_after, or created_before. The status filter matches the status each quote reports now. status and evaluation_status each take several values, which match any of them, and separate filters combine. Quotes come oldest first.
Each page examines at most 500 quotes, so a page can hold fewer than page_size quotes, or none, while next_page_token is still present. Keep requesting pages with page_token until a response has no next_page_token.
Errors#
- StatusHTTP 409What to doSelecting from the quote, or pricing a pending quote, needs a fresh quote.
details[0].reasonsays why, such asquote_expired,quote_stale,quote_revoked, orwindow_expired, orcaller_rates_requiredwhile your server still owes rates. Create a new quote, let the buyer choose again, and send the request with a newIdempotency-Key. - StatusHTTP 409What to do
expected_delivery_selection_iddoesn't match the checkout's current selection.details[0].current_delivery_selection_idis the current selection, ornullwhen none is current. Read the checkout and quote again. - StatusHTTP 409What to doThe checkout session is no longer
open, so it can't be quoted.details[0].current_statusis its status. - StatusHTTP 403CodeFORBIDDENWhat to doReason
merchant_credential_required: the checkout credential asked for a quote on a checkout with acaller_suppliedmethod. Quote from your server with an API key. - StatusHTTP 400CodeINVALID_
REQUEST What to doAn address member breaks a partial address rule, or the checkout credential sent a merchant-only field.paramnames the field.
Related#
Build your own checkoutQuote the buyer's address, select an option, and pay.Delivery optionsConfigure the methods, zones, and rates that quotes price.Delivery configurationMethods, profiles, pricing strategies, and diagnostics.The Delivery quote object#
An estimate of available delivery options and their prices.
Returned by GET /v1/delivery-quotes/{delivery_quote_id} and carried by the endpoints below.
Attributes
basis_delivery_quote_idstringNot returned with a checkout credential
basis_delivery_selection_idstringNot returned with a checkout credential
buyer_locationone ofOmitted for a checkout session credential that doesn't act for the customer the buyer verified.
One of these shapes
The normalized buyer address or coordinate used for this quote.
addressobjectRequiredA postal address. Every address has country. Addresses Flint checked as complete (customer and saved addresses, merchant, location, invoice, order delivery destination, tax identity, fulfillment recipient and pickup addresses) always have line1 and city, and US ones always have state and postal_code. Delivery quote destinations, buyer locations and postal-code tax locations hold only what was provided, such as postal_code and country.
typeenumRequiredaddress
buyer_reasonsarray of enumRequiredBuyer-safe reasons no delivery option was available. Merchant configuration details are never included.
address_requiredaddress_incompleteoutside_delivery_areano_pickup_location_nearbyunavailable_for_these_itemstemporarily_unavailable
checkout_session_idstringAlways present with an API key or dashboard credential.
Not returned with a checkout credential
choice_groupsarray of objectRequiredaddress_advisoriesarray of objectBuyer-actionable address verification results that affected this choice group. A suggested_address is an explicit correction the buyer may confirm; Flint does not apply it silently.
allowed_typesarray of stringNot returned with a checkout credential
availability_statusenumRequiredreadyneeds_inputneeds_checkout_contextunavailable
candidate_outcomesmap of one ofNot returned with a checkout credential
delivery_choice_group_idstringRequiredevaluation_statusenumRequiredcompleteincompletedegraded
execution_legsarray of objectWhere the group's items leave from, one leg per origin Location, when all of its methods leave from the same Locations. Omitted when the origin depends on the chosen method, such as shipping from a warehouse or picking up at a store. Each option then lists its own execution_legs.
Not returned with a checkout credential
input_requirementsarray of objectRequiredline_itemsarray of objectRequiredmethod_typesarray of enumRequiredTypes of the delivery methods that can serve this group's items, each listed once, in the order the methods display. A type is listed before its options are priced, such as a local delivery that waits for the buyer's address, and stays listed while its methods need more input or cannot serve the current input. options lists what the buyer can choose now. A method whose type these items do not allow is left out, and the list is empty when no method can serve them.
shipmentpickuplocal_delivery
optionsarray of objectRequiredpreviously_selected_delivery_method_idstringstable_keystringRequiredcreated_atstringRequiredWhen Flint created this quote.
delivery_quote_idstringRequiredUnique identifier for this delivery quote, prefixed `dqt_`.
delivery_quote_versionintegerVersion of the order's delivery details evaluated by this quote. Always present with an API key or dashboard credential.
Not returned with a checkout credential
delivery_revocation_idstring or nullRequiredThe delivery revocation that revoked this quote, or null when no revocation applies.
destination_addressobjectOmitted for a checkout session credential that doesn't act for the customer the buyer verified.
citystringCity or locality of the address.
countrystringRequiredISO 3166-1 alpha-2 country code.
line1stringStreet address, including the building number.
line2stringApartment, suite, floor, or other address details.
postal_codestringPostal or ZIP code of the address.
statestringState, province, or region of the address.
eligibility_context_versionintegerVersion of the checkout eligibility context evaluated by this quote. Always present with an API key or dashboard credential.
Not returned with a checkout credential
evaluated_atstringRequiredRFC3339 timestamp.
evaluation_statusenumRequiredcompleteincompletedegraded
expires_atstringRequiredAuthoritative expiry for this quote: 24 hours when every method uses fixed, tiered, or rate_table pricing, and at most 15 minutes otherwise. A cart with tracked inventory shortens it to the 5 minutes its stock check stays valid. Read this value from every response.
input_requirementsarray of objectRequiredInputs the delivery methods need. A quote requirement, such as the destination address, is input a method needs before Flint can price it. A selection requirement is input a delivery selection needs before payment, such as a recipient field or delivery window an option requires. A method that waits on the buyer's address or store, or on an address the buyer must correct, already lists the recipient fields it requires. Those requirements name the method's choice group and have no delivery_option_ids.
constraintobjectRequiredThe rules for an input a delivery method needs, chosen by `type`, such as allowed values, length limits, supported countries, or offered time windows.
delivery_choice_group_idsarray of stringdelivery_input_requirement_idstringRequireddelivery_method_idsarray of stringdelivery_option_idsarray of stringfield_pathenumRequireddestination_addressdestination_address.line1destination_address.line2destination_address.citydestination_address.countrydestination_address.statedestination_address.postal_codebuyer_locationbuyer_location.line1buyer_location.line2buyer_location.citybuyer_location.countrybuyer_location.statebuyer_location.postal_codebuyer_location.coordinaterecipient.namerecipient.emailrecipient.phonechoices[].input.delivery_window_idcaller_supplied_rates
purposeenumRequiredquoteselectionpickup_availability
merchant_diagnosticsarray of objectAlways present with an API key or dashboard credential.
Not returned with a checkout credential
codeenumRequiredStable reason the method did not produce an option. - `eligibility_no_match`: The configured eligibility expression excluded the method. - `method_unavailable`: The method was unavailable for this evaluation. - `input_required`: The buyer or caller must provide more information to evaluate the method. - `checkout_context_required`: A checkout session is required to evaluate the method. - `dependency_failure`: Flint could not check whether the method is available. - `dependency_revoked`: The method revision or a dependency was revoked. Publish a corrected revision, rotate the callback signing secret, or choose another method.
eligibility_no_matchmethod_unavailableinput_requiredcheckout_context_requireddependency_failuredependency_revoked
delivery_method_idstringdelivery_method_revision_idstringdiagnostic_idstringRequiredeligibility_mismatchesarray of objectConfigured eligibility predicates that conclusively rejected the method. Present only for eligibility_no_match.
occurred_atstringRequiredRFC3339 timestamp.
outcomeenumRequiredunavailableinput_requiredcannot_calculaterequires_checkout_context
recommended_actionenumRequiredreview_configurationprovide_inputcreate_checkoutretry
retryablebooleanRequiredscopeenumRequiredmethod
summarystringRequiredmethodsarray of objectNot returned with a checkout credential
delivery_method_idstringRequireddelivery_method_revision_idstringRequireddescriptionstringdisplay_positionintegerRequirednamestringRequiredrecommendation_priorityintegerMarks this method as recommended. Within each choice group, the available method with the lowest value is recommended and listed first. Ties go to the lower display_position, then the method ID. Null never recommends the method.
typeenumRequiredshipmentpickuplocal_delivery
order_idstringAlways present with an API key or dashboard credential.
Not returned with a checkout credential
pending_caller_rate_requestsarray of objectNot returned with a checkout credential
delivery_choice_group_idstringRequireddelivery_method_idstringRequireddelivery_method_revision_idstringRequiredrevocation_reasonenumWhy the quote was revoked: the reason on the delivery revocation that fenced a dependency this quote used. Present when status is revoked.
Not returned with a checkout credential
unsafe_configurationlocation_unavailablecredential_compromiselegal_requirementother
revoked_atstringRFC3339 timestamp.
Not returned with a checkout credential
selection_requiredbooleanRequiredstale_reasonenumNot returned with a checkout credential
checkout_changedselection_changedeligibility_changedinventory_changedauthority_changedsuperseded_by_priced_quote
statusenumRequiredWhether the quote can be selected now, derived from the current checkout or renewal order on every read.
activeconsumedstaleexpiredrevoked
superseded_by_delivery_quote_idstringThe priced delivery quote that replaced this quote. Its basis_delivery_quote_id names this quote.
Not returned with a checkout credential
{
"buyer_reasons": [
"address_required"
],
"choice_groups": [
{
"availability_status": "ready",
"delivery_choice_group_id": "dcgrp_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"evaluation_status": "complete",
"input_requirements": [
{
"constraint": {
"type": "string"
},
"delivery_input_requirement_id": "req_0123456789abcdef",
"field_path": "destination_address",
"purpose": "quote"
}
],
"line_items": [
{
"order_line_item_id": "li_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"quantity": 1
}
],
"method_types": [
"shipment"
],
"options": [
{
"amount_money": {
"amount": 0,
"currency": "USD"
},
"buyer_instructions": {
"enabled": true,
"required": true
},
"delivery_method_id": "dmet_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"delivery_plan": {
"type": "single_delivery"
},
"display_position": 1,
"name": "Standard delivery",
"recommended": true,
"taxable": true,
"type": "shipment",
"window_selection": "none"
}
],
"stable_key": "example"
}
],
"created_at": "2026-08-02T16:00:00Z",
"delivery_quote_id": "dqt_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"delivery_revocation_id": "drev_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"evaluated_at": "2026-08-02T16:00:00Z",
"evaluation_status": "complete",
"expires_at": "2026-08-02T16:00:00Z",
"input_requirements": [
{
"constraint": {
"type": "string"
},
"delivery_input_requirement_id": "req_0123456789abcdef",
"field_path": "destination_address",
"purpose": "quote"
}
],
"selection_required": true,
"status": "active"
}Create delivery quote#
/v1/checkout-sessions/{checkout_session_id}/delivery-quotesIdempotentRequires scope commerce.delivery.write
Rate limit: delivery_quote
Creates an exact checkout-bound delivery quote without holding inventory.
Path parameters
checkout_session_idstringRequiredFlint checkout session ID.
Request body
basis_delivery_quote_idstringbuyer_locationone ofThe buyer's location for pickup or local delivery, supplied as an address or a coordinate, chosen by `type`.
Send exactly one of these
The `address` variant of `DeliveryBuyerLocationInput`.
addressobjectRequiredA partial address for delivery quotes, previews, and buyer locations. Country is required when any member is present.
typeenumRequiredaddress
destination_addressobjectPartial is fine when quoting: send what the buyer has entered, at least country. A destination_address sent with a selection must be complete; a selection that omits it uses the quote's destination, which may be partial.
citystringcountrystringISO 3166-1 alpha-2 country code.
line1stringline2stringpostal_codestringstatestringState, province, or region. State conditions read it as a subdivision of the address's country: send its code with or without the country prefix, such as NY or US-NY. In the US and Canada, the English name, such as New York, also matches. US addresses also accept the USPS military codes AA, AE, and AP. If the address country is listed by a state condition but state names no subdivision of that country, the condition cannot be decided: the method or rate is left out as cannot_calculate (invalid_buyer_input).
expected_delivery_selection_idstring or nullOptional assertion on CheckoutSession.delivery.delivery_selection_id. Omit to make no assertion, send null to assert that no selection exists, or send an ID to assert that it is current.
inventory_assignmentsarray of objectNot accepted with a checkout credential
demand_keystringRequiredinventory_item_idstringRequiredlocation_idstringRequiredquantityintegerRequiredWhole-number quantity; fractional quantities are not supported.
method_resultsarray of objectNot accepted with a checkout credential
delivery_choice_group_idstringRequireddelivery_method_revision_idstringRequiredoutcomeone ofRequiredYour outcome for a caller-priced delivery method, selected by `type`: available with a price and windows, unavailable with a reason, or cannot calculate.
pickup_location_idstringtier_keyintegerCaller-defined nonnegative lookup key used by methods whose tiered pricing basis is caller.tier_key. Merchant authentication is required.
Not accepted with a checkout credential
Response · 201
Checkout delivery quote.
dataobjectRequiredResource, collection, or operation result returned by this request.
basis_delivery_quote_idstringNot returned with a checkout credential
basis_delivery_selection_idstringNot returned with a checkout credential
buyer_locationone ofOmitted for a checkout session credential that doesn't act for the customer the buyer verified.
buyer_reasonsarray of enumRequiredBuyer-safe reasons no delivery option was available. Merchant configuration details are never included.
address_requiredaddress_incompleteoutside_delivery_areano_pickup_location_nearbyunavailable_for_these_itemstemporarily_unavailable
checkout_session_idstringAlways present with an API key or dashboard credential.
Not returned with a checkout credential
choice_groupsarray of objectRequiredcreated_atstringRequiredWhen Flint created this quote.
delivery_quote_idstringRequiredUnique identifier for this delivery quote, prefixed `dqt_`.
delivery_quote_versionintegerVersion of the order's delivery details evaluated by this quote. Always present with an API key or dashboard credential.
Not returned with a checkout credential
delivery_revocation_idstring or nullRequiredThe delivery revocation that revoked this quote, or null when no revocation applies.
destination_addressobjectOmitted for a checkout session credential that doesn't act for the customer the buyer verified.
eligibility_context_versionintegerVersion of the checkout eligibility context evaluated by this quote. Always present with an API key or dashboard credential.
Not returned with a checkout credential
evaluated_atstringRequiredRFC3339 timestamp.
evaluation_statusenumRequiredcompleteincompletedegraded
expires_atstringRequiredAuthoritative expiry for this quote: 24 hours when every method uses fixed, tiered, or rate_table pricing, and at most 15 minutes otherwise. A cart with tracked inventory shortens it to the 5 minutes its stock check stays valid. Read this value from every response.
input_requirementsarray of objectRequiredInputs the delivery methods need. A quote requirement, such as the destination address, is input a method needs before Flint can price it. A selection requirement is input a delivery selection needs before payment, such as a recipient field or delivery window an option requires. A method that waits on the buyer's address or store, or on an address the buyer must correct, already lists the recipient fields it requires. Those requirements name the method's choice group and have no delivery_option_ids.
merchant_diagnosticsarray of objectAlways present with an API key or dashboard credential.
Not returned with a checkout credential
methodsarray of objectNot returned with a checkout credential
order_idstringAlways present with an API key or dashboard credential.
Not returned with a checkout credential
pending_caller_rate_requestsarray of objectNot returned with a checkout credential
revocation_reasonenumWhy the quote was revoked: the reason on the delivery revocation that fenced a dependency this quote used. Present when status is revoked.
Not returned with a checkout credential
unsafe_configurationlocation_unavailablecredential_compromiselegal_requirementother
revoked_atstringRFC3339 timestamp.
Not returned with a checkout credential
selection_requiredbooleanRequiredstale_reasonenumNot returned with a checkout credential
checkout_changedselection_changedeligibility_changedinventory_changedauthority_changedsuperseded_by_priced_quote
statusenumRequiredWhether the quote can be selected now, derived from the current checkout or renewal order on every read.
activeconsumedstaleexpiredrevoked
superseded_by_delivery_quote_idstringThe priced delivery quote that replaced this quote. Its basis_delivery_quote_id names this quote.
Not returned with a checkout credential
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/checkout-sessions/cs_01KEZF7C004JRWFW43H037MQRN/delivery-quotes \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"destination_address": {
"city": "Brooklyn",
"country": "US",
"line1": "120 Kent Avenue",
"postal_code": "11249",
"state": "NY"
},
"expected_delivery_selection_id": null
}'Get checkout delivery quote#
/v1/checkout-sessions/{checkout_session_id}/delivery-quotes/{delivery_quote_id}Requires scope commerce.delivery.read or commerce.delivery.write
Rate limit: read
Returns a delivery quote for this checkout session. Checkout credentials receive the buyer view.
Path parameters
checkout_session_idstringRequiredFlint checkout session ID.
delivery_quote_idstringRequiredFlint delivery quote ID.
curl https://api.withflintpay.com/v1/checkout-sessions/cs_01KEZF7C004JRWFW43H037MQRN/delivery-quotes/dqt_01KEZF7C009EB1AVCDJBN4BBVV \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Checkout delivery quote.
{
"data": {
"buyer_reasons": [
"address_required"
],
"choice_groups": [
{
"availability_status": "ready",
"delivery_choice_group_id": "dcgrp_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"evaluation_status": "complete",
"input_requirements": [
{
"constraint": {
"type": "string"
},
"delivery_input_requirement_id": "req_0123456789abcdef",
"field_path": "destination_address",
"purpose": "quote"
}
],
"line_items": [
{
"order_line_item_id": "li_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"quantity": 1
}
],
"method_types": [
"shipment"
],
"options": [
{
"amount_money": {
"amount": 0,
"currency": "USD"
},
"buyer_instructions": {
"enabled": true,
"required": true
},
"delivery_method_id": "dmet_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"delivery_plan": {
"type": "single_delivery"
},
"display_position": 1,
"name": "Standard delivery",
"recommended": true,
"taxable": true,
"type": "shipment",
"window_selection": "none"
}
],
"stable_key": "example"
}
],
"created_at": "2026-08-02T16:00:00Z",
"delivery_quote_id": "dqt_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"delivery_revocation_id": "drev_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"evaluated_at": "2026-08-02T16:00:00Z",
"evaluation_status": "complete",
"expires_at": "2026-08-02T16:00:00Z",
"input_requirements": [
{
"constraint": {
"type": "string"
},
"delivery_input_requirement_id": "req_0123456789abcdef",
"field_path": "destination_address",
"purpose": "quote"
}
],
"selection_required": true,
"status": "active"
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6AASYFSEP53E9W34N8J33"
}List delivery quotes#
/v1/delivery-quotesRequires scope commerce.delivery.read or commerce.delivery.write
Rate limit: read
Returns delivery quote diagnostics with status derived identically to individual and checkout quote reads. Quotes are ordered by created_at and delivery_quote_id ascending. Each page scans at most 500 rows and may contain fewer than page_size items while next_page_token is present. Default order: created_at ascending, then delivery_quote_id ascending.
Query parameters
checkout_session_idstringFilter by checkout session.
order_idstringFilter by order.
statusarray of enumFilter by lifecycle status. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
activeconsumedstaleexpiredrevoked
evaluation_statusarray of enumFilter by evaluation status. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.
completeincompletedegraded
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.
Response · 200
Delivery quote page.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
basis_delivery_quote_idstringNot returned with a checkout credential
basis_delivery_selection_idstringNot returned with a checkout credential
buyer_locationone ofOmitted for a checkout session credential that doesn't act for the customer the buyer verified.
buyer_reasonsarray of enumRequiredBuyer-safe reasons no delivery option was available. Merchant configuration details are never included.
address_requiredaddress_incompleteoutside_delivery_areano_pickup_location_nearbyunavailable_for_these_itemstemporarily_unavailable
checkout_session_idstringAlways present with an API key or dashboard credential.
Not returned with a checkout credential
choice_groupsarray of objectRequiredcreated_atstringRequiredWhen Flint created this quote.
delivery_quote_idstringRequiredUnique identifier for this delivery quote, prefixed `dqt_`.
delivery_quote_versionintegerVersion of the order's delivery details evaluated by this quote. Always present with an API key or dashboard credential.
Not returned with a checkout credential
delivery_revocation_idstring or nullRequiredThe delivery revocation that revoked this quote, or null when no revocation applies.
destination_addressobjectOmitted for a checkout session credential that doesn't act for the customer the buyer verified.
eligibility_context_versionintegerVersion of the checkout eligibility context evaluated by this quote. Always present with an API key or dashboard credential.
Not returned with a checkout credential
evaluated_atstringRequiredRFC3339 timestamp.
evaluation_statusenumRequiredcompleteincompletedegraded
expires_atstringRequiredAuthoritative expiry for this quote: 24 hours when every method uses fixed, tiered, or rate_table pricing, and at most 15 minutes otherwise. A cart with tracked inventory shortens it to the 5 minutes its stock check stays valid. Read this value from every response.
input_requirementsarray of objectRequiredInputs the delivery methods need. A quote requirement, such as the destination address, is input a method needs before Flint can price it. A selection requirement is input a delivery selection needs before payment, such as a recipient field or delivery window an option requires. A method that waits on the buyer's address or store, or on an address the buyer must correct, already lists the recipient fields it requires. Those requirements name the method's choice group and have no delivery_option_ids.
merchant_diagnosticsarray of objectAlways present with an API key or dashboard credential.
Not returned with a checkout credential
methodsarray of objectNot returned with a checkout credential
order_idstringAlways present with an API key or dashboard credential.
Not returned with a checkout credential
pending_caller_rate_requestsarray of objectNot returned with a checkout credential
revocation_reasonenumWhy the quote was revoked: the reason on the delivery revocation that fenced a dependency this quote used. Present when status is revoked.
Not returned with a checkout credential
unsafe_configurationlocation_unavailablecredential_compromiselegal_requirementother
revoked_atstringRFC3339 timestamp.
Not returned with a checkout credential
selection_requiredbooleanRequiredstale_reasonenumNot returned with a checkout credential
checkout_changedselection_changedeligibility_changedinventory_changedauthority_changedsuperseded_by_priced_quote
statusenumRequiredWhether the quote can be selected now, derived from the current checkout or renewal order on every read.
activeconsumedstaleexpiredrevoked
superseded_by_delivery_quote_idstringThe priced delivery quote that replaced this quote. Its basis_delivery_quote_id names this quote.
Not returned with a checkout credential
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/delivery-quotes \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Delivery quote page.
{
"data": [
{
"buyer_reasons": [
"address_required"
],
"choice_groups": [
{
"availability_status": "ready",
"delivery_choice_group_id": "dcgrp_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"evaluation_status": "complete",
"input_requirements": [
{
"constraint": {
"type": "string"
},
"delivery_input_requirement_id": "req_0123456789abcdef",
"field_path": "destination_address",
"purpose": "quote"
}
],
"line_items": [
{
"order_line_item_id": "li_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"quantity": 1
}
],
"method_types": [
"shipment"
],
"options": [
{
"amount_money": {
"amount": 0,
"currency": "USD"
},
"buyer_instructions": {
"enabled": true,
"required": true
},
"delivery_method_id": "dmet_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"delivery_plan": {
"type": "single_delivery"
},
"display_position": 1,
"name": "Standard delivery",
"recommended": true,
"taxable": true,
"type": "shipment",
"window_selection": "none"
}
],
"stable_key": "example"
}
],
"created_at": "2026-08-02T16:00:00Z",
"delivery_quote_id": "dqt_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"delivery_revocation_id": "drev_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"evaluated_at": "2026-08-02T16:00:00Z",
"evaluation_status": "complete",
"expires_at": "2026-08-02T16:00:00Z",
"input_requirements": [
{
"constraint": {
"type": "string"
},
"delivery_input_requirement_id": "req_0123456789abcdef",
"field_path": "destination_address",
"purpose": "quote"
}
],
"selection_required": true,
"status": "active"
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "page_2",
"request_id": "req_01KWM6AASYFSEP53E9W34N8J33"
}Retrieve delivery quote#
/v1/delivery-quotes/{delivery_quote_id}Requires scope commerce.delivery.read or commerce.delivery.write
Rate limit: read
Returns a persisted delivery quote for diagnostics and recovery by its ID, using the same merchant view as the quote list.
Path parameters
delivery_quote_idstringRequiredDelivery quote ID.
curl https://api.withflintpay.com/v1/delivery-quotes/dqt_01KEZF7C009EB1AVCDJBN4BBVV \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Delivery quote.
{
"data": {
"buyer_reasons": [
"address_required"
],
"choice_groups": [
{
"availability_status": "ready",
"delivery_choice_group_id": "dcgrp_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"evaluation_status": "complete",
"input_requirements": [
{
"constraint": {
"type": "string"
},
"delivery_input_requirement_id": "req_0123456789abcdef",
"field_path": "destination_address",
"purpose": "quote"
}
],
"line_items": [
{
"order_line_item_id": "li_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"quantity": 1
}
],
"method_types": [
"shipment"
],
"options": [
{
"amount_money": {
"amount": 0,
"currency": "USD"
},
"buyer_instructions": {
"enabled": true,
"required": true
},
"delivery_method_id": "dmet_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"delivery_plan": {
"type": "single_delivery"
},
"display_position": 1,
"name": "Standard delivery",
"recommended": true,
"taxable": true,
"type": "shipment",
"window_selection": "none"
}
],
"stable_key": "example"
}
],
"created_at": "2026-08-02T16:00:00Z",
"delivery_quote_id": "dqt_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"delivery_revocation_id": "drev_01K1P6G4M7H2N8Q9R3S5T6V7WX",
"evaluated_at": "2026-08-02T16:00:00Z",
"evaluation_status": "complete",
"expires_at": "2026-08-02T16:00:00Z",
"input_requirements": [
{
"constraint": {
"type": "string"
},
"delivery_input_requirement_id": "req_0123456789abcdef",
"field_path": "destination_address",
"purpose": "quote"
}
],
"selection_required": true,
"status": "active"
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6AASYFSEP53E9W34N8J33"
}Was this helpful?
