API documentation
Method list
Test your request

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

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

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