---
title: "Add a line to an order"
method: POST
path: "/api/public/v1/orders/lines"
tags: ["orders"]
---

# Add a line to an order

`POST /api/public/v1/orders/lines`

## Request

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

Adds one catalog line to an order, priced from that item at the order's venue. A resend of an accepted add answers as before. With `stampRewardId`, one of the order customer's ready stamp rewards, the line is added as a line of its own, never merged into another, and the reward goes on it in the same write, as `orders.applyStampReward` with that line's `itemId` puts it: free at its base size's price, a bigger size and the modifiers paid, and kept on that line. A reward the order already holds moves to it. The add is refused with that procedure's refusals, and then adds nothing. 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`. Refused with CONFLICT and the refusal orderShipped once a supplier's shipment order has shipped: what shipped is never changed. 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 `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
  - `name` string, required
  - `quantity` integer, required
  - `notes` string
  - `catalogItemId` string
  - `priceCents` integer
  - `orderId` string, required
  - `idempotencyKey` string
  - `skipMerge` boolean
  - `stampRewardId` string
  - `itemVariationId` string
  - `modifierIds` string[]
  - `modifierQuantities` integer[]

## Response `200`

OK

- unknown

## Changes

- **2026-12-03** `ef6854d56f33`: 1 info
  - added the new optional request property `stampRewardId`

[Operation history](https://skmtc.dev/fortis/apis/fortune-os-api/changes/api/public/v1/orders/lines/post.md)

---

[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)
