availableToPurchase
virtual-counter quantity is calculated based on the formula onHand-allocated-shipped
. If you create a custom counter and mention it while creating or updating inventory, those custom counter quantities are also subtracted to calculate the availableToPurchase virtual-counter quantity.
See Inventory Setup > rules for updating counter quantity for more information on how to use counters while creating or updating inventory.
On Hand - Reserved - Backordered - Ordered - Acknowledged - Safety Stock
so that the virtual counter returns your physical inventory minus the reserved quantity.
isReturn
(indicates if the location supports the return of sold items) or BOPIS (indicates if shoppers can buy the item online and pick it up in-store). These attributes represent inventory availability at a location level for omnichannel use cases.accessToken
.accessToken
value is the authorization token you must use while calling fabric Offers APIs.account
refers to the copilot accountId.