API documentation
Method list
Test your request
Changelog


addInventoryDocumentItems
The method allows you to add items to an existing inventory document.


Input parameters
document_idintDocument identifier
itemsarrayList of document items. Each element should contain fields listed below
| - product_idintThe product ID.
| - quantityintThe quantity of this line item in the document.
| - pricedecimal(10,2)(optional) Item unit price
| - location_namevarchar(255)(optional) Storage location
| - expiry_datedate(optional) The expiry date, if relevant. Date format YYYY-MM-DD (ISO 8601)
| - batchvarchar(128)(optional) Batch number
| - serial_novarchar(128)(optional) The product serial number.



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 created document items. Each element contains fields listed below



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