Skip to Content
APIOrdersOrder cargo

Order stop cargo

Use order_stop_cargo to record goods per order stop.

Endpoints

OperationEndpointScope
ListGET /v1/{scopeId}/order_stop_cargoroutix:orders:read
DetailGET /v1/{scopeId}/order_stop_cargo/{id}routix:orders:read
CreatePOST /v1/{scopeId}/order_stop_cargoroutix:orders:write
UpdatePATCH /v1/{scopeId}/order_stop_cargo/{id}routix:orders:write
DeleteDELETE /v1/{scopeId}/order_stop_cargo/{id}routix:orders:write

The API verifies that order_stop_id and order_id belong together and fall within the same organization and branch.

Writable fields

FieldTypeNotes
order_stop_id, order_idUUIDBoth required when creating
item_idUUIDOptional Routix item
descriptionstringCargo description
quantityintegerGreater than 0; defaults to 1
weight_kgnumberWeight in kg, at least 0
package_type_id_master_dataUUIDPackaging type
length_m, width_m, height_mnumberDimensions in metres
manual_volume_m3, manual_ldmnumberManual volume/loading metres
volume_source, ldm_sourcestringcalculated or manual
unit_id_master_dataUUIDHandling unit
stackablebooleanIf true, max_stacks is required
max_stacksintegerAt least 1 when stackable
requires_adrbooleanDangerous goods flag
adr_class, adr_un_numberstringADR details
temperature_control_id_master_dataUUIDTemperature regime
constraints_notesstringOther constraints

calculated_volume_m3, effective_volume_m3, calculated_ldm and effective_ldm are read-only.

curl -X POST "https://api.routix.com/v1/BRANCH_UUID/order_stop_cargo" \ -H "Authorization: Bearer ACCESS_TOKEN" -H "Content-Type: application/json" \ -d '{"order_stop_id":"STOP_UUID","order_id":"ORDER_UUID","description":"8 pallets","quantity":8,"weight_kg":2400,"stackable":true,"max_stacks":2}'

Call order and cleanup

  1. POST /orders
  2. One or more POST /order_stops calls
  3. One or more POST /order_stop_cargo calls

Together these calls are not atomic. Retain returned IDs. If a later step fails, delete the order created by the current integration request with DELETE /orders/{id}; its stops and cargo are removed through database cascade. Never delete a pre-existing order as cleanup.

Last updated on