> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.milenow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.milenow.com/_mcp/server.

# Welcome to Mile Solutions

The Mile Partner API lets you create and track orders, manage customers and products, and receive webhook updates from the Mile platform.

## Base URL

```
https://lastmile.milenow.com/index.php
```

## Authentication

Call [`POST /api/v1/partners/login`](/api-reference/login/post-app-apiv-1-trackingapi-index) with your API user credentials to get an `access_token`, then pass it as the `access_token` query parameter on every other request.

```bash
curl -X POST "https://lastmile.milenow.com/index.php/api/v1/partners/login?user=YOUR_USERNAME&password=YOUR_PASSWORD"
```

```bash
curl "https://lastmile.milenow.com/index.php/api/v1/partners/products?access_token=YOUR_ACCESS_TOKEN"
```

If a request is rejected, the [debug auth endpoint](/api-reference/debug/get-app-apiv-1-trackingapi-debugauth) shows what token data the server received.

## What you can do

#### [Orders](/api-reference/order)

Create, edit, cancel, and track orders.

#### [Customers](/api-reference/customers)

Create, update, and search customers.

#### [Products](/api-reference/products)

Manage products, brands, categories, and promotion bundles.

#### [Webhooks](/api-reference/webhooks)

Receive order status, order creation, and settlement updates.