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
| - product_idintThe product ID
| - quantityintThe quantity of this line item in the document
| - pricedecimal(10,2)(optional) Item unit price
| - location_namevarchar(255)(optional) Source storage location
| - target_location_namevarchar(255)(optional) Target storage location (only for Internal Transfer documents)
| - expiry_datevarchar(10)(optional) The expiry date. Date format YYYY-MM-DD (ISO 8601)
| - batchvarchar(128)(optional) Batch number
| - serial_novarchar(128)(optional) The product serial number
| - commentsvarchar(255)(optional) Item comments or notes



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
| - item_idintCreated item identifier



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