Skip to Content
APIQuotationsQuotation cargo

Quotation stop cargo

Use quotation_stop_cargo to record goods per quotation stop.

Endpoints

OperationEndpointScope
ListGET /v1/{scopeId}/quotation_stop_cargoroutix:quotations:read
DetailGET /v1/{scopeId}/quotation_stop_cargo/{id}routix:quotations:read
CreatePOST /v1/{scopeId}/quotation_stop_cargoroutix:quotations:write
UpdatePATCH /v1/{scopeId}/quotation_stop_cargo/{id}routix:quotations:write
DeleteDELETE /v1/{scopeId}/quotation_stop_cargo/{id}routix:quotations:write

The API verifies that quotation_stop_id and quotation_id belong together and fall within the same organization and branch.

Writable fields

FieldTypeNotes
quotation_stop_id, quotation_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_m3numberManual volume
volume_sourcestringcalculated or manual
manual_ldmnumberManual loading metres
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 fields calculated_volume_m3, effective_volume_m3, calculated_ldm and effective_ldm are read-only.

Create example

curl -X POST "https://api.routix.com/v1/BRANCH_UUID/quotation_stop_cargo" \ -H "Authorization: Bearer ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "quotation_stop_id": "STOP_UUID", "quotation_id": "QUOTATION_UUID", "description": "Palletised consumer goods", "quantity": 8, "weight_kg": 2400, "length_m": 1.2, "width_m": 0.8, "height_m": 1.4, "stackable": true, "max_stacks": 2, "requires_adr": false }'
  1. Create the quotation with POST /quotations.
  2. Create pickup and delivery with separate POST /quotation_stops calls.
  3. Add cargo with POST /quotation_stop_cargo.

Together these calls are not a database transaction. Retain every returned ID. If a later step fails, delete the newly created quotation with DELETE /quotations/{id}. Its stops and cargo are removed by database cascade. Only delete records created by the current integration request.

Last updated on