This API allows querying and getting details of a document by Document ID.
| Property | Value |
|---|---|
| URL | {{BASE_URL}}/api/v1/consignment-documents/{documentId} |
| HTTP Method | GET |
| Content Type | application/json |
| Authentication | APIKEY header |
| Parameter Name | Parameter Type | Required | Description |
|---|---|---|---|
documentId |
Integer | REQUIRED | Document ID |
Below is an example HTTP raw request for the API request.
GET {{BASE_URL}}/api/v1/consignment-documents/149495
Content-Type: application/json
APIKEY: {{APIKEY}}
On a successful request, the API will return a response like this:
{
"status": true,
"message": null,
"data": {
"id": 149495,
"documentType": 8,
"consignment": {
"id": 632280
},
"fileName": "proforma.pdf",
"fileSize": "24840",
"mimeType": "application/pdf",
"status": 0
}
}
If the API request fails, the API will return an error response like this:
{
"status": false,
"errors": [
{
"message": "1494952 id consignment document not found"
}
]
}