Download Document

This API allows downloading the selected document of a specific consignment as a file.

Endpoint Information

Property Value
URL {{BASE_URL}}/api/v1/consignment-documents/{documentId}/download
HTTP Method GET
Content Type application/json
Authentication APIKEY header

Request Parameters

URL Parameters

Parameter Name Parameter Type Required Description
documentId Integer Required Document ID

Example Usage

API Request

Below is an example HTTP raw request for the API request.

GET {{BASE_URL}}/api/v1/consignment-documents/149495/download
APIKEY: {{APIKEY}}

API Response

On a successful request, the API response will provide a file stream with a variable content-type.

Error Responses

If the API request fails, the API will return an error response like this:

{
    "status": false,
    "errors": [
        {
            "message": "Document not found"
        }
    ]
}