Recall a shipped supplier order's shipment
Changed onTakes back the shipment a supplier's Ship sent for its shipment order while it is still in transit, reversing the sale: every product returns, as an add with the reason recall, into the storage it left, at the value it left with and as batches with each source batch's supplier, unit cost and expiry, so stock is as before Ship; a prepared product returns as itself. An order with no payment that is not yet done is also cancelled, with the reason other, as orders.cancel cancels it; an order with any payment, or one already done, keeps its status, and any money goes back through payments.refund. Needs order:cancel and inventory:post at the order's location. Returns the order id. Refused with CONFLICT and the refusal inventoryDisabled while the supplier's inventory is off, orderNotShipped for an order that has not shipped, shipmentReceived once the buyer accepted it, shipmentClosed once it was recalled or marked never received, and shipmentNotRecallable for a shipment sent before Ship recorded what each line took. Refused with shiftClosed once the order's shift has closed (FORBIDDEN; BAD_REQUEST when creating under it) and with FORBIDDEN notShiftParticipant for a caller not taking part in the shift. 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