Get Vendor
Retrieve a single vendor by its ID from Last Mile Intelligence.
Operation
Section titled “Operation”getVendor
Resource
Section titled “Resource”vendor
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Vendor ID | string | Yes | - | The ID of the vendor to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "vend_abc123", "name": "Midwest Fuel Supply", "code": "MFS", "contactName": "John Johnson", "email": "orders@midwestfuel.com", "phone": "312-555-0100", "address": { "street": "500 Industrial Way", "city": "Chicago", "state": "IL", "zip": "60607" }, "isActive": true}{ "success": false, "error": "Vendor not found", "vendorId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Vendor Not Found: Vendor with specified ID does not exist
- Permission Denied: API token lacks permission for this operation