> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://api.leanmile.com/otp-cc-flow/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.leanmile.com/_mcp/server. # Overview ## Authentication You authenticate against the API using **HTTP Basic Authenication** described in **FC 2617** using `Auhtorization` HTTP header. Credentials are provided by Your client manager. ## Server responses Response will always contain at least four parameters: 1. **statusCode** - HTTP status code indicating nature of the response (machine readable) 2. **status** - Status indicating more specific description of the result (machine readable) 3. **message** - Human readable message, useful for error messages 4. **data** - Response from specific API endpoint, if any (object or array) ## Status codes Most common status codes are listed here: * **200** - Request was successfull * **4XX** - Client side error * **400** - Input data is invalid * **401** - Invalid or missing username/password * **404** - Resource or API endpoint does not exist * **410** - Resource is not longer available * **5XX** - Server issues, try again in a few minutes ## Docs - [Overview](https://api.leanmile.com/otp-cc-flow/1-shipments.md) - [Overview](https://api.leanmile.com/otp-cc-flow/2-tracking.md) ## API Docs - [1. Create new shipment](https://api.leanmile.com/otp-cc-flow/1-shipments/1-create-new-shipment.md): OTP CC Flow > 1shipments - [1.1 Update shipment details](https://api.leanmile.com/otp-cc-flow/1-shipments/1-1-update-shipment-details.md): OTP CC Flow > 1shipments - [Delete entire shipment](https://api.leanmile.com/otp-cc-flow/1-shipments/delete-entire-shipment.md): OTP CC Flow > 1shipments - [3. Show shipment/container/parcel status and validation information](https://api.leanmile.com/otp-cc-flow/1-shipments/3-show-shipment-container-parcel-status-and-validation-information.md): OTP CC Flow > 1shipments - [4. Confirm parcel uploading and lock the shipment](https://api.leanmile.com/otp-cc-flow/1-shipments/4-confirm-parcel-uploading-and-lock-the-shipment.md): OTP CC Flow > 1shipments - [Delete parcels from specified shipment](https://api.leanmile.com/otp-cc-flow/1-shipments/delete-parcels-from-specified-shipment.md): OTP CC Flow > 1shipments - [2. Add shipment parcels with items for async processing](https://api.leanmile.com/otp-cc-flow/1-shipments/2-add-shipment-parcels-with-items-for-async-processing.md): OTP CC Flow > 1shipments - [Truncate all shipment parcels](https://api.leanmile.com/otp-cc-flow/1-shipments/truncate-all-shipment-parcels.md): OTP CC Flow > 1shipments - [5. Upload AWB Document](https://api.leanmile.com/otp-cc-flow/1-shipments/5-upload-awb-document.md): OTP CC Flow > 1shipments - [1. Get events for specific parcel](https://api.leanmile.com/otp-cc-flow/2-tracking/1-get-events-for-specific-parcel.md): OTP CC Flow > 2tracking ## OpenAPI Specification - [OpenAPI JSON](https://api.leanmile.com/openapi.json): raw OpenAPI 3.1 specification for this API, JSON format - [OpenAPI YAML](https://api.leanmile.com/openapi.yaml): raw OpenAPI 3.1 specification for this API, YAML format