getInventoryPurchaseOrderItems
The method allows you to retrieve items from a specific purchase order.
Input parameters
Output data:
A sample request in PHP:
order_id | int | Purchase order identifier |
page | int | (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.
status | varchar(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 |
items | array | List of order items. Each element contains fields listed below |
| - item_id | int | Item identifier |
| - product_id | int | Product identifier |
| - position | int | The line item number within the purchase order |
| - product_name | varchar(200) | Product name on document |
| - product_sku | varchar(50) | Product SKU |
| - product_ean | varchar(32) | Product EAN |
| - supplier_code | varchar(50) | (optional) Product code from supplier |
| - quantity | int | Ordered quantity |
| - completed_quantity | int | Received quantity |
| - item_cost | decimal(10,2) | Item unit cost |
| - location | varchar(255) | (optional) Storage location |
| - expiry_date | date | (optional) Expiry date |
| - batch | varchar(128) | (optional) Batch number |
| - serial_no | varchar(128) | (optional) Serial number |
Sample
Input data:Output data:
A sample request in PHP: