Create draft freight order
deftship_create_freight_orderCreate a draft freight order (visible on Open Orders page) without purchasing. Update an existing draft by passing the shipment_order_id.
Instructions
Create a draft freight order visible on the Open Orders page. Does not purchase. Returns the shipment_order_id. Pass shipment_order_id to update an existing draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Freight line items. | |
| to_address | Yes | Receiver address (with accessorial flags). | |
| pickup_date | Yes | Proposed pickup date, format Y-m-d. | |
| from_address | Yes | Sender address (with accessorial flags). | |
| to_closing_time | Yes | Delivery address closing time, format H:i. | |
| to_instructions | No | Special instructions for delivery. | |
| to_opening_time | Yes | Delivery address opening time, format H:i. | |
| from_closing_time | Yes | Pickup address closing time, format H:i. | |
| from_instructions | No | Special instructions for pickup. | |
| from_opening_time | Yes | Pickup address opening time, format H:i. | |
| shipment_order_id | No | Existing order id to update. |