Saltar al contenido principal

Add items to an order

POST 

/v1/orders/:id/combos

Adds one or more items to an existing order and returns the order with its totals recalculated. Send every item in a single call: totals are recalculated once for the whole batch.

Every item references an existing product variant in your menu by variant_id, and every modifier references an existing modifier by modifier_id. OlaClick resolves the product, name, prices and kitchen from the menu; you never send them. An id that does not exist, or that belongs to another company, is rejected with 422.

A modifier quantity is per unit of the item: one large side on an item with quantity: 2 records two large sides.

Required modifier categories must be filled. When a product has a modifier category with required: true (see GET /v1/menu/products/{id}), every item of that product must carry at least min_modifiers of that category, counting quantities. Only modifiers with visible: true count, and a required category with no visible modifiers is not enforced. A missing selection is rejected with 422 validation_failed on combos.N.modifiers, naming the category.

Only orders created through the API can be changed here. An order taken on the storefront, the POS or a food app belongs to that channel and answers 422 order_not_modifiable.

Required scope: orders:write

Request​

Responses​

The order with the items added.