List Inventory Loss Quantity

🔒

Requires read_inventory access scope.More access scope

The List Inventory Loss Quantity API retrieves the inventory loss data within the specified time range, providing insights into stock discrepancies across sales platforms and SKUs.

This enables users to:

  1. Track inventory losses by SKU and location.
  2. Analyze stocktaking data to identify discrepancies.
  3. Generate reports for inventory management.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Query Parameters

FieldTypeDescriptionExample
datestring (required)Querying data for the month, in UTC timezone (formatted as YYYY-MM).2024-06
sales_platformstringSales platform, can be "shoplazza", "pos", or "center".shoplazza
skusarray of stringsVariant's SKU list to filter cost price data.["99898"]
pageint32 (required)Page number.1
limitint32 (required)Limit per page, maximum value is 1000.50

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Success Response

FieldTypeDescriptionExample
countintTotal number of inventory cost price records.1
dataarrayList of inventory cost price records.
data.location_idstringLocation ID where the inventory is stored.327329225536870531
data.product_idstringProduct ID associated with the inventory.0d876129-f410-4645-b54a-be9569
data.variant_idstringVariant ID associated with the inventory.4ded938-8aa5-4d46-b4c6-0fd56fd
data.skustringSKU of the variant.99898
data.cost_pricestringCost price of the inventory item, numeric string."0.00"
data.pricestringSelling price of the inventory item, numeric string."0.00"

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorString "page not found"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!