API documentation
Method list
Test your request
Changelog


getInventoryDocumentItems
This method allows you to retrieve document items for a specific inventory document in BaseLinker. In case of a large number of items, pagination is possible.


Input parameters
document_idintDocument 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 document items
| - item_idintItem identifier
| - document_idintDocument identifier
| - product_idintProduct identifier
| - inventory_idintInventory (catalog) identifier
| - positionintLine item number
| - product_namevarchar(255)Product name
| - product_skuvarchar(50)Product SKU
| - product_eanvarchar(32)Product EAN
| - expiry_datevarchar(10)Expiry date in YYYY-MM-DD format
| - batchvarchar(128)Batch number
| - serial_novarchar(128)Serial number
| - quantityintQuantity of this line item
| - pricedecimal(10,2)Unit price
| - total_pricedecimal(10,2)Total value of the item
| - location_namevarchar(255)Storage location
| - target_location_namevarchar(255)Target location (only for Internal Transfer documents)
| - commentsvarchar(255)Item comments or notes



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