API documentation
Method list
Test your request
Changelog


getInventoryDocumentFile
The method allows you to download a warehouse document PDF file.


Input parameters
document_idintWarehouse document identifier from BaseLinker
get_externalboolfalse (by default) - download document file generated by BaseLinker. true - download a document from an external accounting system (if available). If an external document file does not exist, a document in BaseLinker format will be returned



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
filetextDocument PDF file in binary format encoded in base64, with prefix "data:"
document_numbervarchar(100)Document number



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