Skip to main content

quote_cart

Prices the items selected in a cart: validates the shop / cart / items, calls the upstream pricing engine, and returns the price breakdown, whether checkout is allowed, and the quote_id used in the next preview step.
Order flow: search_shops → shop_id + cart_id (carries shop & delivery coordinates) → get_shop_menu to pick items → quote_cart to price the cart and get quote_id → select_address to get address_id → preview_order (can pass quote_id back) → preview_id + confirmation_token → create_order. shop_id / cart_id / address_id and item item_id all come from upstream endpoints — pass them back as-is, do not fabricate them.

Parameters

Returns

All amount fields are in cents (integer), not yuan. e.g. payable_price: 1200 means ¥12.00.

Error Codes

See Error Handling for the full list.

Example Call