Create an order
create_orderCreates a retail order on Yango Tech using an order ID, cart, and delivery details through the B2B API, returning the raw response for tracking.
Instructions
Creates an order on the Yango Tech platform (POST /b2b/v1/orders/create). You supply the order_id; the same body shape is used by the platform for order updates. All money fields are decimal STRINGS (e.g. "150.00"), never numbers. The response body is not documented upstream and is returned verbatim. After creation, track progress with get_orders_state (get_order does NOT return the state).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | No | Shopping cart: items plus totals (all money as decimal strings). | |
| order_id | Yes | Client-side order id (you choose it; reuse it in the other order tools). | |
| store_id | No | WMS store (darkstore) id from get_stores. | |
| courier_pin | No | PIN the courier must present on handover. | |
| payment_type | No | Payment type. Known values: cash, online, card, apple_pay, loyalty (the list is open-ended). | |
| human_order_id | No | Human-readable order number shown to the customer. | |
| delivery_address | No | Delivery address: coordinates plus optional structured address and comment. | |
| client_phone_number | No | Customer phone number in international format. | |
| delivery_properties | No | Delivery properties: type and optional {start, end} slot. | |
| use_external_logistics | No | true — delivery is handled by external (3PL) logistics instead of the platform. |