List Inventory Cost Price

🔒

Requires read_inventory access scope.More access scope

The List Inventory Cost Price API retrieves the inventory cost price data for specified SKUs within a particular month, providing detailed cost and price information for inventory management.

This enables users to:

  1. Analyze the cost price of inventory items over a specific period.
  2. Compare cost prices across different sales platforms.
  3. Generate reports for inventory cost evaluation.

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!