Skip to main content

Update Order

API operation: Open the endpoint in Scalar

Use PUT /orders/{order} to update an order. The current public operation is Order.update.put.

The integer path parameter is {order}.

The fields accepted and status transitions depend on the caller and project configuration. Follow the operation request schema and applicable authorization policy.

For an acceptance transition with status=8, include external_driver_id and external_driver_name. Other permitted transitions have their own requirements. Treat driver-company authentication as a credential and keep it out of examples.

const response = await ordering.orders(orderId).save(changes);

This SDK syntax is historical. Confirm the package and version before using it.

OpenAPI reference​

Operation: PUT /orders/{order}

Path parameters

NameTypeRequiredDescription
orderintegerYes—

Header parameters

NameTypeRequiredDescription
User-AgentstringNo—
X-Forwarded-ForstringNo—
X-Internal-Product-XstringNo—
X-APP-XstringNo—

Request body fields

NameTypeRequired
business_idintegerNo
commentstring | nullNo
customerstringNo
customer_idintegerNo
delivered_atanyNo
delivered_inintegerNo
delivery_datetimestringNo
delivery_positioninteger | nullNo
delivery_typeintegerNo
delivery_zone_idinteger | nullNo
delivery_zone_pricenumberNo
driver_company_idinteger | nullNo
driver_idinteger | nullNo
driver_tipnumberNo
eta_drive_timeintegerNo
eta_timeintegerNo
external_driver_idstringNo
external_driver_namestringNo
external_driver_phoneanyNo
external_driver_photostringNo
external_idstringNo
fraud_messagestring | nullNo
fraud_statusstring | nullNo
locationobject | stringNo
manual_driver_assignment_commentstring | nullNo
meta_locationstringNo
modestringNo
offer_idintegerNo
order_group_idinteger | nullNo
pay_datastringNo
paymethod_idintegerNo
prepared_inintegerNo
priorityanyNo
productsstringNo
reasonsstringNo
refund_dataanyNo
reject_reasonstringNo
spot_numbernumberNo
statusinteger | stringNo
track_urlstring | nullNo
vehiclestringNo

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference