POST /api/public/v1/inventory/repriceBatch
Changed onPrices what is left of one batch added without a price, in millionths of a minor unit per base unit excluding VAT: the stock it holds at unknown cost becomes valued, recorded as a value-only reprice movement. Needs inventory post and inventoryCost update at the location (FORBIDDEN otherwise). A movement id repeated for the same batch and price is a no-op. NOT_FOUND as stockNotFound or batchNotFound for a product or batch the location does not hold; CONFLICT as movementReused for a movement id reused for another, batchPriced for a batch that has a price, batchEmpty for one with nothing left and valueTooLarge past one priced line's value, currencyChanged while the stock is valued in a former currency of the organization, productArchived for an archived product. 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