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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shop_id": "<shop_id>",
"weight": "<weight>",
"customer": "<customer>"
},
"name": "create_order"
}
}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. |