getInventoryPurchaseOrderItems
The method allows you to retrieve items from a specific purchase order.
Input parameters
| order_id | int | Purchase order identifier |
| page | int | (optional) Results page number (100 items per page, numbered from 1) |
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 purchase order items |
| | - item_id | int | Item identifier |
| | - order_id | int | Purchase order identifier |
| | - product_id | int | Product identifier |
| | - inventory_id | int | Inventory (catalog) identifier |
| | - position | int | Line item number |
| | - product_name | varchar(255) | Product name |
| | - product_sku | varchar(50) | Product SKU |
| | - product_ean | varchar(32) | Product EAN |
| | - expiry_date | varchar(10) | Expiry date in YYYY-MM-DD format |
| | - batch | varchar(128) | Batch number |
| | - serial_no | varchar(128) | Serial number |
| | - supplier_code | varchar(50) | Product code from supplier |
| | - quantity | int | Ordered quantity |
| | - completed_quantity | int | Received quantity |
| | - item_cost | decimal(10,2) | Item unit cost |
| | - location | varchar(255) | Storage location |
| | - comments | varchar(255) | Item comments or notes |
Sample
Input data:Output data:
A sample request in PHP: