API documentation
Method list
Test your request
Changelog


getInventoryPurchaseOrderItems
The method allows you to retrieve items from a specific purchase order.


Input parameters
order_idintPurchase order identifier
pageint(optional) Page number of the results if there are many items in a purchase order (100 items per page).



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 order items. Each element contains fields listed below
| - item_idintItem identifier
| - product_idintProduct identifier
| - positionintThe line item number within the purchase order
| - product_namevarchar(200)Product name on document
| - product_skuvarchar(50)Product SKU
| - product_eanvarchar(32)Product EAN
| - supplier_codevarchar(50)(optional) Product code from supplier
| - quantityintOrdered quantity
| - completed_quantityintReceived quantity
| - item_costdecimal(10,2)Item unit cost
| - locationvarchar(255)(optional) Storage location
| - expiry_datedate(optional) Expiry date
| - batchvarchar(128)(optional) Batch number
| - serial_novarchar(128)(optional) Serial number



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