> For the complete documentation index, see [llms.txt](https://lmile.gitbook.io/lmile-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lmile.gitbook.io/lmile-docs/readme.md).

# LMile API

LMile は、商品・在庫・受注データを集約し、受注ルーティング（出荷元判定）から出荷実行までを担うコマースデータプラットフォームです。外部アプリ（EC・POS・WMS・基幹システム）は HTTP API でデータを push し、webhook で変化を受け取ります。

> **Base URL** `https://api.lmile.io` · **認証** `x-ingest-secret` ヘッダー（[詳細](/lmile-docs/getting-started/authentication.md)） · `shop` はリクエストボディに含めます

## できること

* [**Ingestion**](/lmile-docs/ingestion-api/products.md) — 商品マスター・在庫・受注明細・店舗→EC送客を strict validation + 冪等 upsert で取込
* [**Routing**](/lmile-docs/routing-api/orders.md) — 出荷元判定・在庫引き当て・出荷指示の生成と外部 WMS への dispatch
* [**Fulfillment**](/lmile-docs/fulfillment-api/fulfillment.md) — 在庫確保・配送ラベル発行・ピッキングリスト・出荷ステータス管理
* [**Oversell**](/lmile-docs/oversell-api/oversell-reallocate.md) — 売越し検知から再引き当て・出荷元変更までの例外フロー
* [**Stock Transfer**](/lmile-docs/stock-transfer-api/stock-transfer.md) — 拠点間の在庫移動（商品×数量。作成 →（承認）→ 出庫 → 入庫。自社在庫は棚±で反映・売越防止ガードつき。返送バルクとは別機能）
* [**Customer Orders**](/lmile-docs/customer-orders-api/orders.md) — 顧客メールアドレスで注文履歴・出荷ステータスを照会（マイページ向け read API）
* [**Shelf**](/lmile-docs/shelf-api/link.md) — 棚への出荷紐付け・棚在庫の入庫/ピック・ユニットQR でのピッキング照会（倉庫運用）
* [**Operator**](/lmile-docs/operator-api/login.md) — 倉庫スタッフ向けピッキングアプリのログイン・追跡番号 / バーコード / 売越しケース照会・出荷作業キュー / 引当不能注文の一覧・[ユニットQR での確保スキャン](/lmile-docs/operator-api/secure-scan.md) / [追跡番号での一括確保](/lmile-docs/operator-api/secure-by-tracking.md)（operator JWT 認証）
* [**Webhooks**](/lmile-docs/webhooks/overview.md) — 在庫変動・引き当て暫定確定・出荷ステータス遷移・受注情報更新のリアルタイム通知
* [**Apps**](/lmile-docs/apps/overview.md) — イベントを検知して自動処理を実行するミニアプリを LMile 上でホスト（プレビュー）

## はじめる

1. [API キーを取得](/lmile-docs/getting-started/authentication.md)する
2. [クイックスタート](/lmile-docs/getting-started/your-first-request.md)で商品と在庫を登録する
3. [API 一覧](/lmile-docs/getting-started/overview.md)から必要なエンドポイントを選ぶ

## サポート

* 問合せ: <admin@lmile.io>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://lmile.gitbook.io/lmile-docs/readme.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
