Create Ship To
Create a new ship-to location in Last Mile Intelligence.
Operation
Section titled “Operation”createShipTo
Resource
Section titled “Resource”shipTo
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Ship To Data | JSON | Yes | - | Ship-to object with required fields |
Ship To Data Fields
Section titled “Ship To Data Fields”| Field | Type | Required | Description |
|---|---|---|---|
| customerId | string | Yes | Associated customer ID |
| name | string | Yes | Location name |
| address | object | Yes | Address object |
| deliveryInstructions | string | No | Delivery notes |
| contactName | string | No | On-site contact name |
| contactPhone | string | No | On-site contact phone |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "ship_new123", "customerId": "cust_xyz789", "name": "New Location", "address": { "street": "123 New St", "city": "Chicago", "state": "IL", "zip": "60601" }, "createdAt": "2024-06-21T09:00:00Z"}{ "success": false, "error": "Validation failed", "details": { "customerId": "Customer not found" }}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Customer Not Found: Customer ID does not exist
- Geocoding Failed: Could not geocode the address
- Validation Error: Required fields missing or invalid
- Permission Denied: API token lacks permission for this operation