Lotus
Type to search documentation.
Orders

Partially update an order

Update an existing order status. Order items cannot be changed - if they need to be updated, the order should be canceled and a new one placed.

patch/orders/{orderId}

Security

This operation accepts the following authorization requirements.

Required credentials

One credential is required.
OAuth2oauth2

OAuth2 authorization for API access.

orders:write

Request

Path parameters

orderIdstringrequired

ID of the order to retrieve.

Body
statusstringrequired

Allowed values:"placed""preparing""completed""canceled"

Order status.

Response

Order updated successfully.

idstring:ulid

Order ID. Unique identifier prefixed with ord_.

objectstring

Allowed values:"order"

Entity name.

customerNamestringrequired

Name of the customer who placed the order. Must start and end with a letter, and can contain letters, spaces, hyphens, and apostrophes (e.g., “John Doe”, “Mary-Jane”, “O’Brien”).

statusstring

Allowed values:"placed""preparing""completed""canceled"

totalPriceinteger

Total order price in cents.

createdAtstring:date-time

Created date.

updatedAtstring:date-time

Updated date.

orderItemsobject[]required

List of items to include in the order.

Item properties (4)
menuItemIdstring:ulidrequired

ID of the menu item to add to the order.

quantityintegerrequired

Quantity of the menu item.

discountinteger

Discount amount in cents (absolute value).

commentstring

Optional comment for the order item (e.g., “No sugar”).