POST /api/public/v1/inventoryStorages/archive
Changed onArchives a storage of the location: it leaves the lists and pickers and takes no stock, while its history keeps it, and the stations it served and the open order lines held on it take from the location's default again; one already archived keeps its stamp. With moveStock, what it keeps on hand moves into the default first, as a transfer in the same transaction. NOT_FOUND for one the location does not hold; CONFLICT as storageDefault for the location's default storageHasStock while it keeps or owes stock, storageHeld while an order holds stock in it, storageImporting while an import not finished yet posts into it and storageHasShipments while a shipment from or to it is in transit; FORBIDDEN without inventory post when moveStock asks to move stock. 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