API documentation
Method list
Test your request
Changelog


addInventoryDocumentFile
The method allows you to add an external PDF file to a warehouse document. It enables attaching a document issued in an external ERP system to the corresponding warehouse document in Base.


Input parameters
document_idintWarehouse document identifier from BaseLinker
filetextDocument PDF file in binary format encoded in base64. Provide a prefix "data:" at the beginning e.g. "data:4AAQSkSzkJRgABA[...]"
external_document_numbervarchar(100)External system document 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



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