API documentation
Method list
Test your request
Changelog


addOrderInvoiceFile
The method allows you to add an external PDF file to an invoice previously issued from BaseLinker. It enables replacing a standard invoice from BaseLinker with an invoice issued e.g. in an ERP program.


Input parameters
invoice_idintBaseLinker invoice identifier
filetextInvoice PDF file in binary format encoded in base64, at the very beginning of the invoice string provide a prefix "data:" e.g. "data:4AAQSkSzkJRgABA[...]"
external_invoice_numbervarchar(30)External system invoice number (overwrites BaseLinker invoice 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: