API documentation
Method list
Test your request
Changelog


getInvoiceFile
The method allows you to get the invoice file from BaseLinker.


Input parameters
invoice_idintBaseLinker invoice identifier



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
invoicetextInvoice file in binary format encoded in base64, at the very beginning of the invoice string a prefix "data:" is provided e.g. "data:4AAQSkSzkJRgABA[...]"
invoice_numbervarchar(30)BaseLinker invoice number



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