Skip to content

Orders

Orders, the fulfillments that deliver them, returns and stock levels.

Packs are versioned with the standard, currently 0.7.4. Each model below has its own version.

Models

ModelVersionDescription
Fulfillmentv1One delivery of some or all of an Order's lines: a shipment with a carrier and a tracking number, a pickup, a local delivery or a digital delivery.
Orderv1A customer's purchase: what was bought, at what price, where it goes, and how far along it is.
Returnv1Goods coming back from an Order: which lines, how many, why, and how far the return has got.
Stock levelv1How many of one Product are on hand at one location.

Extensions

Fields this pack adds to other models.

Fulfillment

ExtensionTypeNotes
ext.orders.delivered_atdatetimeWhen the carrier or the customer confirmed delivery.

Order

ExtensionTypeNotes
ext.orders.cancel_reasonstringWhy a cancelled Order was cancelled, in the source's own words.
ext.orders.channelstringWhere the Order was placed: the shop, marketplace or point of sale, as a short stable name (web, pos, amazon).
ext.orders.feesobjectCharges that are neither a line nor shipping: an object { fees: [ { name, amount { amount, currency } } ] } for handling, gift wrap, duties, tips and service charges. They are part of total.
ext.orders.po_numberstringThe buyer's purchase order number on a business order.

Stock level

ExtensionTypeNotes
ext.orders.incomingdecimalUnits ordered from a supplier or in transit that are not on hand yet.
ext.orders.reserveddecimalUnits on hand that are already promised to Orders not yet shipped. Available to sell is quantity minus this.