Create an order
trackpod_create_orderCreate ONE REAL unscheduled order in Track-POD (POST /Order): a delivery or a collection for a client at an address, ready to be planned into a route by a dispatcher. It does not create or optimise routes. Depending on the account's notification settings the customer may later receive SMS/e-mail updates about it. Confirm the details with the user first. Address and client are required; Track-POD geocodes the address unless you pass address_lat/address_lon.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cod | No | Cash-on-delivery amount to collect. | |
| date | No | Order date, YYYY-MM-DD. | |
| note | No | Note for the driver. | |
| type | No | delivery (default) or collection. | |
| depot | No | Depot address (else the account's default depot). | |
| No | Customer e-mail. | ||
| goods | No | Goods lines (max 100). | |
| phone | No | Customer contact phone. | |
| client | Yes | Client/customer name. | |
| number | Yes | The order number (your Order/Invoice/Job/Waybill number) — used later to look the order up, so no slash or backslash. | |
| volume | No | Total volume. | |
| weight | No | Total weight. | |
| address | Yes | Delivery (or pickup) address, e.g. '2 St Josephs Crescent, Liverpool L3 3JF'. | |
| barcode | No | Barcode the driver scans. | |
| pallets | No | Pallet count. | |
| shipper | No | Shipper/supplier name. | |
| order_id | No | Your accounting-system id for the order. | |
| priority | No | Order priority. | |
| address_lat | No | Address latitude (pass with address_lon to skip geocoding). | |
| address_lon | No | Address longitude. | |
| address_zone | No | Address zone. | |
| contact_name | No | Customer contact name. | |
| time_slot_to | No | Desired delivery/pickup window end, local 24-hour time HH:mm. | |
| time_slot_from | No | Desired delivery/pickup window start, local 24-hour time HH:mm. | |
| service_time_minutes | No | Service time at the stop, minutes. |