getInventoryDocumentFile
The method allows you to download a warehouse document PDF file.
Input parameters
Output data:
A sample request in PHP:
| document_id | int | Warehouse document identifier from BaseLinker |
| get_external | bool | false (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.
| 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 |
| file | text | Document PDF file in binary format encoded in base64, with prefix "data:" |
| document_number | varchar(100) | Document number |
Sample
Input data:Output data:
A sample request in PHP: