Delivery Service Quote
Delivery service quotes estimate the fulfillment cost for a storefront cart. Use this endpoint before checkout when an order requires delivery instead of pickup.
The Delivery Service Quote object
A delivery service quote prices delivery for a storefront cart and is consumed during checkout capture.
Attributes
idstringoptionalPublic identifier of the service quote.
amountintegeroptionalQuoted delivery amount.
currencycurrencyoptionalQuote currency code.
metaobjectoptionalQuote metadata, including origin and destination used by checkout.
The Delivery Service Quote object
{
"id": "service_quote_4fK2mQ8",
"amount": 950,
"currency": "USD",
"meta": {
"origin": "place_123",
"destination": "place_456"
}
}GET
/v1/service-quotes/from-cartRetrieve a Delivery Service Quote ❗
Returns a delivery service quote for the supplied cart, origin, and destination. Use the quote during checkout to include delivery pricing.
Query parameters
originstringoptionalOrigin value for this delivery service quote request.
destinationstringoptionalDestination value for this delivery service quote request.
cartstringoptionalCart value for this delivery service quote request.
GET
/v1/service-quotes/from-cartcurl https://api.fleetbase.io/v1/service-quotes/from-cart?origin=&destination=&cart= \
-H "Authorization: Bearer flb_live_…"