POST /api/public/v1/inventory/requests

Changed on

The location's requests to its suppliers — every one it may still cancel or accept and its latest finished ones — newest first: the supplier and its location, who sent it and when, its state — requested, preparing while the supplier's kitchen makes its preps, shipped once on its way or closed, received once accepted, or cancelled by either side — its order's total, when the location accepted the delivery and how many of its lines arrived other than as sent, expectedShipment, its delivery in transit as supplierShipments reads one, null before it ships and once it is accepted or closed, and its lines: the order's, in thousandths of items with what was requested of each, then the requested items the order no longer has. changedBySupplier is true when the supplier changed what was requested — a quantity, an added line or a removed item — and false for a cancelled request. 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 URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
locationId, string required

Response

OK

object[] required
id, string required
number, number nullable required
supplierName, string required
supplierLocationId, string required
supplierLocationName, string required
requestedByName, string required
requestedAt, string date-time required
state, 'requested' | 'preparing' | 'shipped' | 'received' | 'cancelled' required
total, object nullable required
receivedAt, string date-time nullable required
issueCount, number required
expectedShipment, object nullable required
lines, object[] required
changedBySupplier, boolean required

Changes

    • info

      added the required property items/number to the response with the status

    • info

      added the required property items/expectedShipment to the response with the status

    • info

      added the required property items/issueCount to the response with the status

    4 more changes in this revision