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
Output data:
A sample request in PHP:
| document_id | int | Warehouse document identifier from BaseLinker |
| file | text | Document PDF file in binary format encoded in base64. Provide a prefix "data:" at the beginning e.g. "data:4AAQSkSzkJRgABA[...]" |
| external_document_number | varchar(100) | External system document number |
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 |
Sample
Input data:Output data:
A sample request in PHP: