Delivery routes
Add a stop to a DRAFT or PLANNED route (409 ROUTE_LOCKED otherwise; a PLANNED route returns to DRAFT). The address is geocoded. Honours Idempotency-Key. (scope: delivery:write)
POST
bearerAuthheader
AuthorizationBearer <token>API key as Bearer token
id*stringDelivery route id
Format
uuidapplication/json- body
source?stringDefault
"MANUAL"Value in
"INVOICE""ORDER""MANUAL"invoice_id?stringFills recipient and document_ref from the invoice
Format
uuidorder_id?stringFormat
uuidcontact_id?stringFormat
uuidrecipient_name?stringLength
length <= 255recipient_phone?stringWrite-only: shown to the driver, never returned.
Length
length <= 40address*street or city required
weight_kg?numberRange
0 <= valueparcels?integerRange
0 <= valuewindow_start?stringFormat
date-timewindow_end?stringFormat
date-timeservice_minutes?integerRange
0 <= value <= 240document_ref?stringLength
length <= 100private_notes?stringWrite-only: only on the driver's page.
Length
length <= 2000notes?stringLength
length <= 2000OK
application/json- response
data*error*nullcurl -X POST "https://example.com/delivery-routes/497f6eca-6276-4993-bfeb-53cbbbba6f08/stops" \ -H "Content-Type: application/json" \ -d '{ "address": {} }'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "route_id": "dd833dbc-f3c5-44d9-98a2-7ba12ebc8160", "position": 0, "status": "PENDING", "source": "INVOICE", "invoice_id": "f4c4edb8-11e0-4b33-bcc1-482dc59ebb32", "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe", "contact_id": "f245e2a3-e141-4d41-912c-b1c1f5bd5598", "recipient_name": "string", "address": {}, "address_text": "string", "latitude": 0, "longitude": 0, "geocode_miss": true, "weight_kg": 0, "parcels": 0, "window_start": "2019-08-24T14:15:22Z", "window_end": "2019-08-24T14:15:22Z", "service_minutes": 0, "document_ref": "string", "notes": "string", "eta_minutes": 0, "arrived_at": "2019-08-24T14:15:22Z", "delivered_at": "2019-08-24T14:15:22Z", "failure_reason": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }, "error": null}