API documentation
Method list
Test your request
Changelog


getInventoryStocktakeItems
The method allows you to retrieve items from a specific stocktake. Supports pagination for stocktakes with a large number of items.


Input parameters
stocktake_idintStocktake identifier
pageint(optional) Results page number (100 items per page, numbered from 1)



Output data
The method returns the data in JSON format.
statusvarchar(30)SUCCESS - request executed correctly
ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code
itemsarrayList of stocktake items
| - item_idintItem identifier
| - stocktake_idintStocktake identifier
| - positionintLine item number
| - product_idintProduct identifier
| - product_namevarchar(255)Product name
| - product_eanvarchar(32)Product EAN
| - product_skuvarchar(50)Product SKU
| - inventory_idintInventory (catalog) identifier
| - quantityintQuantity of this line item
| - expiry_datevarchar(10)Expiry date in YYYY-MM-DD format
| - batchvarchar(128)Batch number
| - serial_novarchar(128)Serial number
| - verified_quantityintVerified (actually counted) quantity
| - is_verifiedboolWhether the item has been counted/verified
| - location_namevarchar(2550)Storage location name. When multiple locations are assigned, they are separated by a semicolon.



Sample
Input data:
Output data:
A sample request in PHP: