POST /api/public/v1/inventory/sendWrittenRequest
Changed onRecords a request the location sends to a supplier it keeps by hand, once under its id, and answers its number at the location. It creates no order and moves no stock: the caller delivers the text itself, and channel says how. message is the text as sent and is left out for a PDF. deliveryAddress is where the goods are to arrive, which its purchase order prints; left out or blank names none. Each line is a live purchased product of the organization and its quantity in thousandths of its base unit. Needs inventory post at the location. NOT_FOUND as supplierNotFound for a supplier the organization does not keep by hand or has archived; BAD_REQUEST as messageRequired without a text on any channel but PDF, and as itemUnavailable for a product archived, prepared or not the organization's; 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
added the new optional request property
deliveryAddress
- info
- info
endpoint added
- info