create
POST /shipmentCrudFull endpoint: https://app.thainexus.co.th/functions/shipmentCrud
Creates a pickup request. Run list_destinations first and copy a real destination_selection.
Auth: api_token
Request fields
| Field | Description |
|---|
data.pickup_location or data.pickup_address_id | Inline contact + address, or saved address id |
data.destination_selection | From list_destinations (tnx:... or partner:...) |
data.waybill_number | Your reference / waybill number |
data.items[] or data.parcels[] | At least one parcel with weight and all dimensions |
Example request
{
"api_token": "tnx_...",
"action": "create",
"data": {
"pickup_location": {
"contact_name": "John Doe",
"contact_phone": "+66812345678",
"address_line1": "123 Sukhumvit Road",
"city": "Bangkok",
"postal_code": "10110"
},
"destination_selection": "tnx:69a5bdade602b67c968f2ef6",
"waybill_number": "WB123456789",
"items": [{
"description": "Electronics box",
"quantity": 1,
"weight_kg": 2.5,
"length_cm": 30,
"width_cm": 20,
"height_cm": 15
}]
}
}