POST /api/public/v1/inventory/recount
Changed onSets a product's on hand in a storage of the location, storageId or the default when left out, to the counted quantity by posting the difference: an add of unknown cost above on hand, or a remove with its reason below. A movement id repeated while on hand still reads its count is a no-op. CONFLICT as movementReused for a movement id reused otherwise, recountReasonRequired below on hand without a reason and productArchived for an archived product; NOT_FOUND as stockNotFound for a product the organization does not hold. 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
added the new
lostenum value to the request propertyreason/anyOf[subschema #1]
- info
- info
added the new optional request property
storageId
- info