FleetbaseFleetbase

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
idstringoptional

Public identifier of the service quote.

amountintegeroptional

Quoted delivery amount.

currencycurrencyoptional

Quote currency code.

metaobjectoptional

Quote 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-cart

Retrieve 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
originstringoptional

Origin value for this delivery service quote request.

destinationstringoptional

Destination value for this delivery service quote request.

cartstringoptional

Cart value for this delivery service quote request.

GET/v1/service-quotes/from-cart
curl https://api.fleetbase.io/v1/service-quotes/from-cart?origin=&destination=&cart= \
  -H "Authorization: Bearer flb_live_…"
Delivery Service Quote | Fleetbase