When to use this API
The Reports API is most commonly used to pull data to create custom dashboards or reports. Inventory Planner has over 200 metrics available which can be queried to create a report outside of Inventory Planner.
Related: Existing reports in Inventory Planner can be automated to email selected recipients, and you can learn more here.
Working with Inventory Planner's APIs
To get started, refer to the Inventory Planner Public API article for information including authorization and making requests.
API endpoints
Variants (api/v1/variants) and variant (api/v1/variants/{id})
A variant corresponds to one variation of a product with particular features (for example, color and size) and contains both information downloaded from e-commerce platform and computed by Inventory Planner.
โ
The following fields are currently supported:
id
- variant identifier (read-only)sku
- SKU (read-only)lead_time
- lead timereview_period
- days of stockreplenishment
- current replenishment numberoos
- forecasted number of days to sell out
Variant vendors (api/v1/variants/[id]/vendors) and variant vendor (api/v1/variants/[id]/vendor/[vendor_id]
Each variant has an associated list of vendor data. The vendor identifier (vendor_id) is the vendor name converted to lower case. The following vendor data fields are available:
cost_price
- vendor cost pricelanding_cost_price
- vendor landing cost pricevendor_reference
- vendor reference/skuvendor_name
- vendor variant name (title)vendor_packaging
- MOQ, minimum order quantityuom_ordering
- UOM, units of measurement
The line item received history is an array of the documents with the following fields:
date
- received date time stamp (in Unix format)value
- received qty
The line item components is an array of documents with the following fields:
id
- component variant idquantity
- component quantity required to produce 1 unit of line item's assemblysku
- component SKUtitle
- component titlebarcode
- component barcode