Get Documents
Retrieve all documents from Last Mile Intelligence.
Operation
Section titled “Operation”getDocument
Resource
Section titled “Resource”document
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Document ID | string | No | - | Leave empty to retrieve all documents |
Response
Section titled “Response”Success
Section titled “Success”[ { "id": "doc_abc123", "name": "Delivery Receipt", "type": "receipt", "mimeType": "application/pdf", "entityType": "order", "entityId": "ord_xyz789" }, { "id": "doc_def456", "name": "Proof of Delivery", "type": "pod", "mimeType": "image/jpeg", "entityType": "order", "entityId": "ord_xyz789" }]{ "success": false, "error": "Failed to retrieve documents"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Permission Denied: API token lacks permission for this operation