POST /api/public/v1/inventory/requestStock
Changed onSends the supplier location a request for stock, once under its id: a new shipment order at the supplier location for this location, opened by the caller on its open shift (or none while it has none), with each line at the supplier's price there, holding the supplier's stock as a till's draft does. The order is the supplier's from then on: it edits, preps and ships it as any shipment order. Needs inventory post at the location. NOT_FOUND as supplierNotFound for a supplier or supplier location requestSuppliers does not list; BAD_REQUEST as itemUnavailable for an item the supplier does not sell there now; CONFLICT as requestIdTaken for an id another location's request holds. 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
Response
OK
Changes
- info
endpoint added
- info