Skip to Content
APIQuotationsOffertecargo

Quotation stop cargo

Met quotation_stop_cargo leg je de goederen per offertestop vast.

Endpoints

BewerkingEndpointScope
LijstGET /v1/{scopeId}/quotation_stop_cargoroutix:quotations:read
DetailGET /v1/{scopeId}/quotation_stop_cargo/{id}routix:quotations:read
AanmakenPOST /v1/{scopeId}/quotation_stop_cargoroutix:quotations:write
WijzigenPATCH /v1/{scopeId}/quotation_stop_cargo/{id}routix:quotations:write
VerwijderenDELETE /v1/{scopeId}/quotation_stop_cargo/{id}routix:quotations:write

De API controleert dat quotation_stop_id en quotation_id bij elkaar horen en binnen dezelfde organisatie en branch vallen.

Schrijfbare velden

VeldTypeOpmerking
quotation_stop_id, quotation_idUUIDBeide verplicht bij aanmaken
item_idUUIDOptioneel Routix-item
descriptionstringGoederenomschrijving
quantityintegerGroter dan 0; standaard 1
weight_kgnumberGewicht in kg, minimaal 0
package_type_id_master_dataUUIDVerpakkingstype
length_m, width_m, height_mnumberAfmetingen in meter
manual_volume_m3numberHandmatig volume
volume_sourcestringcalculated of manual
manual_ldmnumberHandmatige laadmeters
ldm_sourcestringcalculated of manual
unit_id_master_dataUUIDHandling unit
stackablebooleanStapelbaar; bij true is max_stacks vereist
max_stacksintegerMinimaal 1 als stapelbaar
requires_adrbooleanADR-goederen
adr_class, adr_un_numberstringADR-gegevens
temperature_control_id_master_dataUUIDTemperatuurregime
constraints_notesstringOverige beperkingen

De berekende velden calculated_volume_m3, effective_volume_m3, calculated_ldm en effective_ldm zijn alleen-lezen.

Aanmaken

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": "Pallets consumentengoederen", "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 }'

Aanbevolen callvolgorde en cleanup

  1. Maak de offerte met POST /quotations.
  2. Maak pickup en delivery aan met afzonderlijke POST /quotation_stops-calls.
  3. Voeg cargo toe met POST /quotation_stop_cargo.

Deze calls vormen samen geen database-transactie. Bewaar alle teruggegeven ID’s. Mislukt een vervolgstap, verwijder dan de nieuw aangemaakte offerte met DELETE /quotations/{id}. De bijbehorende stops en cargo worden door de database cascade verwijderd. Verwijder alleen records die deze integratiecall zelf heeft aangemaakt.

Last updated on