API documentation
Method list
Test your request
Changelog


getInventoryPurchaseOrderFile
The method allows you to download a cost invoice PDF file attached to a purchase order.


Input parameters
purchase_order_idintPurchase order identifier from BaseLinker



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
filetextInvoice PDF file in binary format encoded in base64, with prefix "data:"
cost_invoice_novarchar(100)Cost invoice number
file_namevarchar(255)Invoice file name



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