IMS Documentation
IMS Business API v1

Data Semantics

Business meaning that must be understood before aggregating API values. These rules are part of the API contract, not presentation-only labels.

Sales and returns

Purchases and landed cost

Inventory and movements

inventory is a current balance/valuation contract. For dated flow analysis use inventory/movements.

movementTypeMeaningTypical sign
PURCHASEReceived purchase stock.Positive
PURCHASE_RETURNStock returned to supplier.Negative
SALEMerchandise sold.Negative
SALE_RETURNCustomer return into stock.Positive
TRANSFER_OUTStock leaves the source store.Negative
TRANSFER_INStock arrives at destination store.Positive
STOCK_ADJUSTMENTSigned inventory correction.Positive or negative
STOCK_DEPRECIATIONWrite-off/depreciation movement.Negative

Transfers

A transfer exposes both sides: sourceMovementQty is negative and destinationMovementQty is positive. For a balanced transfer those movements cancel when aggregated across both stores.

Markdowns, promotions and coupons