Partially update a delivery
const url = 'https://api.govza.app/v1/partner/orders/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"pickup":{"address":{},"contact":{}},"dropoffs":[{"address":{},"contact":{},"index":1,"cargo_size":"S","payment_type":"cash","payment_amount":1,"doorstep":true}],"quote_id":"example","cargo_size":"S","routing_mode":"parallel","payment_type":"cash","payment_amount":1,"delivery_time":"2026-04-15T12:00:00Z","comment":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.govza.app/v1/partner/orders/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "pickup": { "address": {}, "contact": {} }, "dropoffs": [ { "address": {}, "contact": {}, "index": 1, "cargo_size": "S", "payment_type": "cash", "payment_amount": 1, "doorstep": true } ], "quote_id": "example", "cargo_size": "S", "routing_mode": "parallel", "payment_type": "cash", "payment_amount": 1, "delivery_time": "2026-04-15T12:00:00Z", "comment": "example" }'Updates only the fields supplied while the order status is new or
assigned. Nested address and contact fields are merged with the
stored order. Send only the dropoffs that changed; use index to target
a specific dropoff in a multi-dropoff order.
Authorizations
Заголовок раздела «Authorizations»Parameters
Заголовок раздела «Parameters»Path Parameters
Заголовок раздела «Path Parameters»Your own identifier for the order.
Request Bodyrequired
Заголовок раздела «Request Bodyrequired»Send only the fields to change. Nested address and contact objects are
merged with the stored values. Send only changed dropoffs. Set index
to their zero-based position when targeting a specific dropoff; if
omitted, array position is used.
object
object
object
object
object
object
object
Zero-based position of the dropoff to update.
Responses
Заголовок раздела «Responses»The delivery was updated.
object
object
The human-readable Govza order code.
Public tracking page, safe to forward to the recipient. Present on
create; when reading or listing, null if the order has no link yet
— reads never create one. Use
POST /orders/{external_order_id}/tracking_link to issue one.
Individual tracking pages in dropoff order. Null for a single-dropoff order or when unavailable.
Example
{ "data": { "status": "new" }}The payload was rejected. error.details is a JSON array of
{ field, message } covering every offending field, not just the
first, so one response is enough to fix the request.
object
object
Example
{ "success": false, "error": { "id": "validation.partner_payload_invalid", "message": "dropoffs.0.address.latitude: latitude is required", "details": "[{\"field\":\"dropoffs.0.address.latitude\",\"message\":\"latitude is required\"}]" }}The key is missing, malformed, revoked, or its account can no longer create orders.
object
object
Example
{ "success": false}No order exists for this external_order_id.
object
object
Example
{ "success": false}