create_order
Create a shipment order. Defaults to Thailand Post EPS (thaipost0). Weight is in GRAMS. Returns the order_id — it contains a pipe suffix (order-xxx|123); always pass the FULL id to other tools. Optional cod_amount enables cash-on-delivery.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Optional: ProShip username. Normally decoded from your token automatically. | |
| ref_no | No | Optional: your own order reference | |
| weight | Yes | Parcel weight in grams | |
| remarks | No | ||
| shop_id | Yes | Your shop id (see list_shops) | |
| customer | Yes | ||
| products | No | Optional line items | |
| cod_amount | No | Optional: cash-on-delivery amount (THB) | |
| shipping_method | No | Default thaipost0 (EPS). thaipost requires a Thailand Post contract on your account. |