---
title: "POST /api/public/v1/orders/updateLine"
method: POST
path: "/api/public/v1/orders/updateLine"
---

# POST /api/public/v1/orders/updateLine

`POST /api/public/v1/orders/updateLine`

## Request

- Base URL: `https://app.fortuneos.ai`
- URL: `https://app.fortuneos.ai/api/public/v1/orders/updateLine`
- Auth: none declared

Changes one line's quantity, price, notes or options. Refused with CONFLICT `lineClaimed` when a line it changes is held by a By items part — paid at the till, or claimed by a guest from the QR menu — and `totalBelowPaid` when it would take the order's total below what is already paid. A pass sells on its own order, one of it at quantity 1: adding a pass to an order with other lines or an order discount, adding a line to an order holding a pass, and raising a pass line's quantity are refused with BAD_REQUEST as `passOwnOrder`. A discount on a pass line or on an order holding a pass is refused with BAD_REQUEST as `passNoDiscount`; clearing one is not. A discount, or clearing one, on a line a pass redeems is refused with BAD_REQUEST as `passRedeemedLine`: the server writes the pass's discount, and the cashier charges the line at full price with `orders.declinePassRedemption`. A discount, or clearing one, on a line a stamp reward makes free is refused with BAD_REQUEST as `stampRewardLine`: the server writes the reward's discount, and the cashier takes the reward off with `orders.removeStampReward`. A raised quantity, an added or raised modifier, or another variation sells more and is refused for a suspended business; a replay, a removal, a lowered count, notes and a discount are not: Refused with FORBIDDEN and refusal `billingReadOnly` once an overdue subscription's grace has run out, and `subscriptionEnded` once the business's verified base plan has ended with no eligible base in its place. Either refusal is lifted for this operation's category by an active plan grant whose plan allows it, which does not change the subscription's own standing. Refused with CONFLICT and the refusal orderShipped once a supplier's shipment order has shipped: what shipped is never changed. Refused with `shiftClosed` once the order's shift has closed (FORBIDDEN; BAD_REQUEST when creating under it) and with FORBIDDEN `notShiftParticipant` for a caller not taking part in the shift. Refused with FORBIDDEN as `paywallLocked` when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.

## Request body

- object
  - `itemId` string, required
  - `modifierQuantityChange` object
    - `modifierId` string, required
    - `quantity` integer, required
  - `quantity` integer
  - `notes` string, nullable
  - `discountPresetId` string, nullable
  - `discountPercent` integer
  - `discountAmountCents` integer
  - `itemVariationId` string
  - `modifierIds` string[]
  - `modifierQuantities` integer[]

## Response `200`

OK

- unknown

---

[API](https://skmtc.dev/fortis/apis/fortune-os-api.md) - [All operations](https://skmtc.dev/fortis/apis/fortune-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fortis/apis/fortune-os-api/revisions/522f3cea550d?raw)
