POST /api/public/v1/inventory/receiveShipment
Changed onAccepts a shipment in transit to a storage of the location, once, with what arrived of every line. Each line arrives as an add with the reason shipment of what was sent, with the value and batches it holds when the destination is valued in the same currency, covering open shortages first; less received posts a remove with shortfallReason (lost, spoiled, damaged or other) for the difference, and more received an add with the reason surplus at unknown cost. The shipment then reads received. Needs inventory post at the location. NOT_FOUND as shipmentNotFound for a shipment not in transit to the location; CONFLICT as shipmentReceived once accepted, shipmentClosed once recalled or closed as never received, receiptIncomplete unless every line is named, and shortfallReasonRequired for a line received short without a reason. Refused with FORBIDDEN as inventoryDisabled while the inventory flag is off. 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
Changes
- info
endpoint added
- info