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

Fallback store-location public ID, or comma-separated IDs for a multi-store cart. Cart line-item locations take precedence.

destinationstringoptional

Destination value for this delivery service quote request.

cartstringoptional

Cart public ID or unique identifier. Network cart origins must belong to the corresponding member stores.

GET/v1/service-quotes/from-cart
curl https://api.fleetbase.io/v1/service-quotes/from-cart?origin=1.3521%2C103.8198&destination=1.3644%2C103.9915&cart={{cart_id}} \
  -H "Authorization: Bearer flb_live_…"
Delivery Service Quote | Fleetbase