API documentation
Method list
Test your request
Changelog


getCourierDocument
The method allows you to download a parcel document


Input parameters
courier_codevarchar(20)Courier code
document_typevarchar(10)Types:
manifest
account_idintCourier API account id for the courier accounts retrieved from the request getCourierAccounts
package_idsarrayArray of shipments ID, optional
package_numbersarrayArray of shipments number (consignment number), optional



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
extensionvarchar(4)Document file extension (pdf, zpl, epl, html, etc.).
documenttextDocument encoded with base64 algorithm.



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