Add a line to an order
Changed onAdds 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
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
Response
OK
Changes
- info
added the new optional request property
stampRewardId
- info