Skip to main content

Update Order Options

API operation: Open the endpoint in Scalar

Use PUT /order_options to update the caller's checkout choices. The current public operation is OrderOption.update.put.

This operation requires authentication. Current fields include address_id, order type, Unix-timestamp moment, and city_id; the selected address must belong to the target user. Administrators and agents can act for another user, while ordinary callers are limited to themselves.

Cart placement reads the user's current order options. See Place an order from a cart for how these options are used.

OpenAPI reference​

Operation: PUT /order_options

Header parameters

NameTypeRequiredDescription
X-SOCKET-ID-XstringNo—

Request body fields

NameTypeRequired
address_idintegerNo
city_idinteger | nullNo
franchise_idanyNo
momentstring | nullNo
typeintegerNo
user_idanyNo

Responses

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