> 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/getting-started/overview.md).

# 概要

LMile は、マルチストアの商品・在庫・受注データを集約し、受注ルーティングから出荷実行までを担うプラットフォームです。外部アプリが API でデータを push し、LMile が SoT（source of truth）を維持します。

## データの流れ

```
外部アプリ ──── push API ────▶ LMile ──── ルーティング / 出荷 ────▶ WMS / キャリア
(EC・POS・基幹)                  │
                                ├──▶ webhook 通知（在庫変動・出荷ステータス）──▶ 外部アプリ
                                └──▶ LMile AI（売上・在庫の自然言語分析）
```

すべてのエンドポイントは `https://api.lmile.io` でホストされ、`x-ingest-secret` ヘッダーで認証します（[認証](/lmile-docs/getting-started/authentication.md)）。`shop` はリクエストボディに含めます（キーが 1 つのアカウントにひも付いていれば省略できます）。

## API 一覧

### Ingestion API — データ取込

| Method | Path                                                                                                                    | 用途                                                                    |
| ------ | ----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| `POST` | [`/api/ingest/products`](/lmile-docs/ingestion-api/products.md)                                                         | 商品マスター一括 upsert                                                       |
| `GET`  | [`/api/ingest/accessory-services`](/lmile-docs/ingestion-api/products.md#get-apiingestaccessory-services)               | 付帯サービスにした商品の一覧                                                        |
| `POST` | [`/api/ingest/inventory-snapshot`](/lmile-docs/ingestion-api/inventory-levels.md)                                       | 在庫スナップショット（絶対値）一括投入                                                   |
| `POST` | [`/api/ingest/inventory-available`](/lmile-docs/ingestion-api/inventory-levels.md)                                      | 販売可能在庫のリアルタイム更新（absolute / delta）                                     |
| `POST` | [`/api/ingest/channel-available`](/lmile-docs/ingestion-api/inventory-levels.md#post-apiingestchannel-available)        | 外部倉庫の拠点で、販売チャネルでの販売可能数を伝える（0 以下なら販売可能在庫を 0 に）                         |
| `POST` | [`/api/ingest/mfc-inventory`](/lmile-docs/ingestion-api/mfc-inventory.md)                                               | 出荷元ロケーションへ棚付き在庫を入庫（棚別 + barcode 集約。`mode=absolute` 絶対値 / `adjust` 差分） |
| `POST` | [`/api/inventory/hold`](/lmile-docs/ingestion-api/inventory-holds.md)                                                   | 在庫の一部を参照 ID ごとに取り置き、販売可能在庫から外す（在庫の取込で消えない・Shopify にも反映）               |
| `POST` | [`/api/inventory/release`](/lmile-docs/ingestion-api/inventory-holds.md#post-apiinventoryrelease)                       | 参照 ID の取り置きをまとめて解除し、販売可能在庫に戻す                                         |
| `POST` | [`/api/order-line-master/bulk-upsert`](/lmile-docs/ingestion-api/order-line-master.md)                                  | 受注明細一括 upsert（per-unit）                                               |
| `POST` | [`/api/order-line-master/customers`](/lmile-docs/ingestion-api/order-line-master.md#post-apiorder-line-mastercustomers) | 取引に注文のメールの顧客を結び付ける                                                    |
| `POST` | [`/api/ingest/customers`](/lmile-docs/ingestion-api/customers.md)                                                       | Shopify の顧客を顧客として取り込む（全件・差分・順序ガード）                                    |
| `POST` | [`/api/ingest/customers/delete`](/lmile-docs/ingestion-api/customers.md#post-apiingestcustomersdelete)                  | Shopify で削除された顧客を消す                                                   |
| `POST` | [`/api/ingest/share-analytics`](/lmile-docs/ingestion-api/share-analytics.md)                                           | 店舗→EC送客（共有・共有商品・追跡イベント）の batch 投入（冪等 upsert・PII は hash 化）             |

### Routing API — 受注ルーティング

| Method | Path                                                                                                                                       | 用途                                         |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------ |
| `POST` | [`/api/routing/orders`](/lmile-docs/routing-api/orders.md)                                                                                 | 受注ルーティング（出荷元判定 → 出荷指示生成・dispatch）          |
| `POST` | [`/api/routing/orders/shipped`](/lmile-docs/routing-api/orders.md#post-apiroutingordersshipped)                                            | 取込元で引き渡しが終わっている注文（店頭販売など）を、その拠点から出荷済みで登録   |
| `POST` | [`/api/routing/orders/shipped/cancel`](/lmile-docs/routing-api/orders.md#post-apiroutingordersshippedcancel)                               | 上記で登録した注文を、取込元の取消に合わせて取消にする                |
| `POST` | [`/api/routing/update`](/lmile-docs/routing-api/cancel-update.md)                                                                          | 注文更新（全量再ルーティング）                            |
| `POST` | [`/api/routing/cancel`](/lmile-docs/routing-api/cancel-update.md)                                                                          | 注文取消                                       |
| `POST` | [`/api/routing/wms-shipping-request`](/lmile-docs/routing-api/wms-shipping-request.md)                                                     | WMS 出荷指示の記録 + 倉庫への送信（shadow / live）        |
| `POST` | [`/api/routing/inventory-adjustments/claim`](/lmile-docs/routing-api/inventory-adjustments.md#post-apiroutinginventory-adjustmentsclaim)   | 店舗の棚卸で出た差分を、外部システムに当てるコネクタが取りに来る           |
| `POST` | [`/api/routing/inventory-adjustments/result`](/lmile-docs/routing-api/inventory-adjustments.md#post-apiroutinginventory-adjustmentsresult) | 当てた結果を返す（`applied` / `failed` / `unknown`） |

### Fulfillment API — 出荷実行

| Method | Path                                                                                           | 用途                                      |
| ------ | ---------------------------------------------------------------------------------------------- | --------------------------------------- |
| `POST` | [`/api/routing/fulfillment`](/lmile-docs/fulfillment-api/fulfillment.md)                       | 出荷ステータス遷移・出荷ラベル                         |
| `POST` | [`/api/routing/secure`](/lmile-docs/fulfillment-api/units.md)                                  | 単位の在庫確保                                 |
| `POST` | [`/api/routing/picking-list`](/lmile-docs/fulfillment-api/picking-list.md)                     | ピッキングリスト生成（1 注文・JSON / PDF）             |
| `POST` | [`/api/routing/picking-list/batch`](/lmile-docs/fulfillment-api/picking-list.md)               | バッチピッキングリスト生成（複数注文・JSON / PDF / CSV）    |
| `POST` | [`/api/routing/shipment/address`](/lmile-docs/fulfillment-api/address-recovery.md)             | 宛先住所修正                                  |
| `POST` | [`/api/routing/shipment/retry-label`](/lmile-docs/fulfillment-api/address-recovery.md)         | 配送ラベル再発行                                |
| `POST` | [`/api/routing/shipment/print-label`](/lmile-docs/fulfillment-api/print-label.md)              | ラベル手動再印刷                                |
| `POST` | [`/api/routing/store-pickup/ready`](/lmile-docs/fulfillment-api/store-pickup.md)               | 店舗受け取りの荷物を受取待ちにする                       |
| `POST` | [`/api/routing/store-pickup/handover`](/lmile-docs/fulfillment-api/store-pickup.md)            | 店舗受け取りの荷物を引渡し済みにする                      |
| `POST` | [`/api/routing/shipment/memo`](/lmile-docs/fulfillment-api/shipment-memo.md)                   | 出荷メモ追記                                  |
| `POST` | [`/api/routing/shipment/delivery`](/lmile-docs/fulfillment-api/shipment-delivery.md)           | 配達希望日・時間帯の設定／変更                         |
| `POST` | [`/api/routing/shipment/collect`](/lmile-docs/fulfillment-api/shipment-collect.md)             | 出荷配下の全単位を集荷済み（出荷準備中）にする（ラベル発行はオプション）    |
| `POST` | [`/api/routing/shipment/unsecure`](/lmile-docs/fulfillment-api/shipment-unsecure.md)           | 確保済みの単位を確保前へ戻す                          |
| `GET`  | [`/api/routing/shipment/fulfill-job`](/lmile-docs/fulfillment-api/external-fulfillment.md)     | 外部フルフィルメント発注に必要な情報の取得（配送先・明細・外部 SKU）    |
| `POST` | [`/api/routing/shipment/fulfill-result`](/lmile-docs/fulfillment-api/external-fulfillment.md)  | 外部発注結果（受理 / 失敗）の書き戻し                    |
| `GET`  | [`/api/routing/shipment/fulfill-pending`](/lmile-docs/fulfillment-api/external-fulfillment.md) | 受理済み・未出荷の出荷一覧（追跡ポーリング用）                 |
| `POST` | [`/api/routing/shipment/ship`](/lmile-docs/fulfillment-api/external-fulfillment.md)            | 1 出荷を出荷済みに報告（追跡番号の同時確定に対応）              |
| `GET`  | [`/api/ingest/sku-mappings`](/lmile-docs/fulfillment-api/external-fulfillment.md)              | 外部システム SKU ↔ barcode 対応表の取得             |
| `GET`  | [`/api/ingest/products`](/lmile-docs/ingestion-api/products.md#get-apiingestproducts)          | 商品マスターを `barcode` で引く（登録済みかの確認・SKU の取得） |
| `POST` | [`/api/routing/pickup`](/lmile-docs/fulfillment-api/pickup.md)                                 | キャリア集荷（オンコールピックアップ）の依頼                  |
| `POST` | [`/api/routing/pickup/cancel`](/lmile-docs/fulfillment-api/pickup.md)                          | 集荷依頼の取消                                 |

### Oversell API — 売越し対応

| Method | Path                                                                         | 用途                |
| ------ | ---------------------------------------------------------------------------- | ----------------- |
| `POST` | [`/api/routing/oversell`](/lmile-docs/oversell-api/oversell-reallocate.md)   | 売越しマーク            |
| `POST` | [`/api/routing/reallocate`](/lmile-docs/oversell-api/oversell-reallocate.md) | 別メンバーへ再引き当て       |
| `POST` | [`/api/routing/oversell-case`](/lmile-docs/oversell-api/cases.md)            | 売越しケース管理（8 ステップ）  |
| `POST` | [`/api/routing/change-source`](/lmile-docs/oversell-api/source-change.md)    | 出荷元変更（返送 → 別拠点出荷） |

### Transfer API — 倉庫間移動バルク

| Method | Path                                                                                | 用途                                        |
| ------ | ----------------------------------------------------------------------------------- | ----------------------------------------- |
| `POST` | [`/api/operator/transfer/batches`](/lmile-docs/transfer-api/batches.md)             | バルク（箱）作成                                  |
| `GET`  | [`/api/operator/transfer/batches`](/lmile-docs/transfer-api/batches.md)             | バルク一覧（status / 送り側 / 受け側 + 単位数）           |
| `POST` | [`/api/operator/transfer/batches/add-unit`](/lmile-docs/transfer-api/batches.md)    | ユニットQR スキャンで移動対象を追加                       |
| `POST` | [`/api/operator/transfer/batches/remove-unit`](/lmile-docs/transfer-api/batches.md) | 誤スキャン取消（`open` 中のみ）                       |
| `POST` | [`/api/operator/transfer/batches/dispatch`](/lmile-docs/transfer-api/dispatch.md)   | 発送確定（内容物リスト PDF + 一括 `return_in_transit`） |
| `POST` | [`/api/operator/transfer/batches/receive`](/lmile-docs/transfer-api/receive.md)     | 宛先側の入荷照合（1 点ずつスキャン受領）                     |
| `POST` | [`/api/routing/transfer/inbound`](/lmile-docs/transfer-api/inbound.md)              | 出荷元への入荷転送を登録（転送便の追跡番号）                    |

> Transfer API は operator JWT（`Authorization: Bearer`）認証です（[認証](https://lmile.gitbook.io/lmile-docs/getting-started/pages/7cB70I8yeRnMpvcdLkNu#operator-jwt-認証)）。

### Stock Transfer API — 拠点間在庫移動

拠点間で商品を **数量ベース**で移動します（作成 →（承認）→ 出庫 → 入庫）。実数量が動くのは自社在庫（MFC 自己在庫）の拠点だけです。**返送バルク（上記 Transfer API・注文 unit の返送）とは別機能**です。

| Method | Path                                                                                                          | 用途                                      |
| ------ | ------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| `POST` | [`/api/routing/stock-transfer/create`](/lmile-docs/stock-transfer-api/stock-transfer.md)                      | 移動を作成（承認なし）                             |
| `POST` | [`/api/routing/stock-transfer/create-request`](/lmile-docs/stock-transfer-api/stock-transfer.md)              | 承認が要る移動として作成（出庫依頼）                      |
| `POST` | [`/api/routing/stock-transfer/label-options`](/lmile-docs/stock-transfer-api/stock-transfer.md)               | 配送ラベルを発行できる出庫元・入庫先                      |
| `POST` | [`/api/routing/stock-transfer/set-lines`](/lmile-docs/stock-transfer-api/stock-transfer.md)                   | 明細の追加・数量置換（出庫前）                         |
| `POST` | [`/api/routing/stock-transfer/remove-lines`](/lmile-docs/stock-transfer-api/stock-transfer.md)                | 明細の削除（出庫前）                              |
| `POST` | [`/api/routing/stock-transfer/update`](/lmile-docs/stock-transfer-api/stock-transfer.md)                      | ヘッダ・明細の更新                               |
| `POST` | [`/api/routing/stock-transfer/approve`](/lmile-docs/stock-transfer-api/stock-transfer.md)                     | 承認（既定で出庫まで実行）                           |
| `POST` | [`/api/routing/stock-transfer/reject`](/lmile-docs/stock-transfer-api/stock-transfer.md)                      | 承認却下                                    |
| `POST` | [`/api/routing/stock-transfer/ship`](/lmile-docs/stock-transfer-api/stock-transfer.md)                        | 出庫確定（自社在庫は棚 −）                          |
| `POST` | [`/api/routing/stock-transfer/print-label`](/lmile-docs/stock-transfer-api/stock-transfer.md)                 | 発行済みの配送ラベルを再印刷                          |
| `POST` | [`/api/routing/stock-transfer/receive`](/lmile-docs/stock-transfer-api/stock-transfer.md)                     | 入庫検品（自社在庫は棚 +）                          |
| `POST` | [`/api/routing/stock-transfer/cancel`](/lmile-docs/stock-transfer-api/stock-transfer.md)                      | 業務取消（出庫済みは棚復元）                          |
| `POST` | [`/api/routing/stock-transfer/delete`](/lmile-docs/stock-transfer-api/stock-transfer.md)                      | 出庫前の移動を物理削除                             |
| `GET`  | [`/api/routing/stock-transfer/list`](/lmile-docs/stock-transfer-api/stock-transfer.md)                        | 移動の一覧                                   |
| `GET`  | [`/api/routing/stock-transfer/get`](/lmile-docs/stock-transfer-api/stock-transfer.md)                         | 移動 1 件（ヘッダ + 明細）                        |
| `GET`  | [`/api/routing/stock-transfer/lines`](/lmile-docs/stock-transfer-api/stock-transfer.md)                       | 移動 1 件の明細                               |
| `POST` | [`/api/routing/stock-transfer/modification-request`](/lmile-docs/stock-transfer-api/modification-request.md)  | 出庫内容の修正依頼（起票 / `/complete` / `/delete`） |
| `GET`  | [`/api/routing/stock-transfer/modification-requests`](/lmile-docs/stock-transfer-api/modification-request.md) | 修正依頼の一覧（単体は `/modification-request`）    |

> Stock Transfer API は `x-ingest-secret` ヘッダー または operator JWT（`Authorization: Bearer`）認証です（書き込みは `shop` をボディ、読み取りは `shop` をクエリに含めます）。

### Customer Orders API — 顧客注文照会

| Method | Path                                                                       | 用途                                   |
| ------ | -------------------------------------------------------------------------- | ------------------------------------ |
| `POST` | [`/api/customer-orders/list`](/lmile-docs/customer-orders-api/orders.md)   | 顧客メールアドレス → 注文一覧（集約ステータス付き）          |
| `POST` | [`/api/customer-orders/detail`](/lmile-docs/customer-orders-api/orders.md) | 注文詳細（明細 / 金額 / 配送先 / 出荷元別ステータス・追跡番号） |

### Shelf API — 棚（シェルフ）運用

| Method | Path                                                                                                             | 用途                                    |
| ------ | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| `POST` | [`/api/shelf/link`](/lmile-docs/shelf-api/link.md)                                                               | 追跡番号 + 棚コードで棚に shipment を割り当て         |
| `POST` | [`/api/shelf/inventory/receive`](/lmile-docs/shelf-api/inventory.md)                                             | 棚への入庫（qty 増）                          |
| `POST` | [`/api/shelf/inventory/pick`](/lmile-docs/shelf-api/inventory.md)                                                | 棚からのピック（qty 減）                        |
| `POST` | [`/api/shelf/inventory/move`](/lmile-docs/shelf-api/inventory.md#post-apishelfinventorymove)                     | 同じ拠点内で棚→棚へ動かす / barcode を付け替える        |
| `POST` | [`/api/shelf/inventory/adjust`](/lmile-docs/shelf-api/inventory.md#post-apishelfinventoryadjust)                 | 1 セルの数量を絶対値で直す（0 で棚から削除）              |
| `POST` | [`/api/shelf/inventory/condition-move`](/lmile-docs/shelf-api/inventory.md#post-apishelfinventorycondition-move) | 同じ棚・同じ商品の数を商品状態（良品 ⇄ 良品以外）の間で動かす      |
| `POST` | [`/api/shelf/master/upsert`](/lmile-docs/shelf-api/shelves.md)                                                   | 棚マスタの登録・区分・有効 / 無効                    |
| `GET`  | [`/api/operator/shelf/lookup`](/lmile-docs/shelf-api/lookup.md)                                                  | ユニットQR → ユニット + 棚 + 出荷/注文 + picked 状態 |
| `GET`  | [`/api/operator/shelf/by-code`](/lmile-docs/shelf-api/lookup.md)                                                 | 棚コード → アクティブ紐付け shipment + 棚在庫        |
| `POST` | [`/api/operator/shelf/pick`](/lmile-docs/shelf-api/lookup.md)                                                    | ユニットQR スキャンで unit を picked / unpick   |

> `/api/operator/*` はピッキングアプリ向けで operator JWT（`Authorization: Bearer`）認証です（[認証](/lmile-docs/getting-started/authentication.md)）。

### Operator API — 倉庫スタッフ（picking-ios）

| Method | Path                                                                                                                  | 用途                                                                          |
| ------ | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `POST` | [`/api/operator/login`](/lmile-docs/operator-api/login.md)                                                            | ログイン（`email`+`password` → JWT 発行）                                           |
| `POST` | [`/api/operator/login/google`](/lmile-docs/operator-api/login.md)                                                     | Google サインイン（Google ID token → JWT 発行）                                      |
| `POST` | [`/api/operator/login/apple`](/lmile-docs/operator-api/login.md)                                                      | Apple サインイン（Apple identity token → JWT 発行）                                  |
| `POST` | [`/api/operator/login/otp/request`](/lmile-docs/operator-api/login.md)                                                | 確認コードをメールで送る                                                                |
| `POST` | [`/api/operator/login/otp/verify`](/lmile-docs/operator-api/login.md)                                                 | 確認コードでログイン（`email`+`code` → JWT 発行）                                         |
| `POST` | [`/api/operator/refresh`](/lmile-docs/operator-api/login.md)                                                          | refresh token で JWT 更新                                                      |
| `GET`  | [`/api/operator/me`](/lmile-docs/operator-api/login.md)                                                               | ログイン中スタッフの id / email / 束縛 shop                                             |
| `POST` | [`/api/operator/account/delete`](/lmile-docs/operator-api/login.md)                                                   | 本人アカウントを即時削除（退会。デモは保護）                                                      |
| `GET`  | [`/api/operator/locations`](/lmile-docs/operator-api/locations.md)                                                    | アクティブな拠点一覧（店舗（location）選択用・`type` / `memberOnly` 絞り込み）                      |
| `GET`  | [`/api/operator/shipments/by-tracking`](/lmile-docs/operator-api/lookup.md)                                           | 追跡番号 → shipment + 注文 + 明細（棚番号付き）+ 配送先 + 状態                                  |
| `GET`  | [`/api/operator/products/by-barcode`](/lmile-docs/operator-api/lookup.md)                                             | バーコード → 商品の基本情報                                                             |
| `GET`  | [`/api/operator/oversell-cases`](/lmile-docs/operator-api/lookup.md)                                                  | 追跡番号 / ステータスで売越しケースを検索                                                      |
| `GET`  | [`/api/operator/shipments`](/lmile-docs/operator-api/queues.md)                                                       | 出荷作業キュー一覧（location × status × 期間 + 件数サマリ）                                   |
| `GET`  | [`/api/operator/unallocated-orders`](/lmile-docs/operator-api/queues.md)                                              | 引当不能（`no_stock`）注文の一覧                                                       |
| `GET`  | [`/api/operator/source-changes`](/lmile-docs/operator-api/queues.md)                                                  | 出荷元変更（拠点間移動）ケースの一覧（移動キュー / 入荷待ちキュー）                                         |
| `GET`  | [`/api/operator/secure-history`](/lmile-docs/operator-api/queues.md)                                                  | 確保の履歴（拠点 × 期間・出荷後も残る）                                                       |
| `POST` | [`/api/operator/secure-scan`](/lmile-docs/operator-api/secure-scan.md)                                                | ユニットQR スキャンで 1 unit 確保（全確保でヘッダ `secured` + ラベル生成）                           |
| `POST` | [`/api/operator/secure-by-tracking`](/lmile-docs/operator-api/secure-by-tracking.md)                                  | 追跡番号スキャンで shipment 配下の `allocated` ユニットを一括確保（全確保でヘッダ `secured`・picked 済も含む） |
| `POST` | [`/api/operator/stocktake/open`](/lmile-docs/operator-api/stocktake.md#post-apioperatorstocktakeopen)                 | 棚卸セッションを開く（拠点ごとに 1 つ。MFC は棚ごと・店舗は拠点全体）                                      |
| `POST` | [`/api/operator/stocktake/shelf-start`](/lmile-docs/operator-api/stocktake.md#post-apioperatorstocktakeshelf-start)   | 棚を数え始める（締めた棚なら再計数）                                                          |
| `POST` | [`/api/operator/stocktake/shelf-submit`](/lmile-docs/operator-api/stocktake.md#post-apioperatorstocktakeshelf-submit) | 数えた数をまとめて送って棚を締める（帳簿数を固定・差異を返す）                                             |
| `POST` | [`/api/operator/stocktake/transition`](/lmile-docs/operator-api/stocktake.md#post-apioperatorstocktaketransition)     | 提出（店舗は商品ごとの帳簿数をここで固定）/ 取消 / 提出の取り下げ                                         |
| `POST` | [`/api/operator/stocktake/commit`](/lmile-docs/operator-api/stocktake.md#post-apioperatorstocktakecommit)             | 承認して反映（MFC は棚へ・店舗は外部システムへの調整へ。商品単位の部分反映）                                    |
| `GET`  | [`/api/operator/stocktake/current`](/lmile-docs/operator-api/stocktake.md#get-apioperatorstocktakecurrent)            | 拠点で進行中の棚卸と棚の進捗・商品状態の一覧                                                      |
| `GET`  | [`/api/operator/visit/reservations`](/lmile-docs/operator-api/visit.md#get-apioperatorvisitreservations)              | 拠点のその日の来店予約の一覧 / 予約ページの QR から予約を 1 件引く                                      |
| `POST` | [`/api/operator/visit/check-in`](/lmile-docs/operator-api/visit.md#post-apioperatorvisitcheck-in)                     | 来店予約を「来店済み」にする                                                              |

> `/api/operator/*` は operator JWT（`Authorization: Bearer`）認証です（[認証](/lmile-docs/getting-started/authentication.md)）。棚運用（`/api/operator/shelf/*`）は [Shelf Lookup](/lmile-docs/shelf-api/lookup.md) を参照してください。

### Configuration — 設定

| Method | Path                                                                                | 用途                               |
| ------ | ----------------------------------------------------------------------------------- | -------------------------------- |
| `POST` | [`/api/routing/source-members`](/lmile-docs/configuration/source-members.md)        | 出荷元 ↔ 在庫ロケーション マッピング設定           |
| `POST` | [`/api/routing/source-members/detach`](/lmile-docs/configuration/source-members.md) | マッピング解除                          |
| `GET`  | [`/api/routing/source-members`](/lmile-docs/configuration/source-members.md)        | マッピング一覧                          |
| `POST` | [`/api/routing/dispatch-config`](/lmile-docs/configuration/dispatch-config.md)      | WMS 連携（dispatch）設定               |
| `POST` | [`/api/routing/star-printer`](/lmile-docs/configuration/star-printer.md)            | ロケーション ↔ Star プリンター device ID 設定 |
| `POST` | [`/api/routing/star-printer/detach`](/lmile-docs/configuration/star-printer.md)     | プリンター設定解除                        |
| `GET`  | [`/api/routing/star-printer`](/lmile-docs/configuration/star-printer.md)            | プリンター設定一覧                        |

### Webhooks — 通知設定

| Method | Path                                                                                     | 用途                       |
| ------ | ---------------------------------------------------------------------------------------- | ------------------------ |
| `POST` | [`/api/routing/source-webhook-config`](/lmile-docs/webhooks/source-inventory.md)         | 在庫変動 webhook 設定          |
| `POST` | [`/api/routing/allocation-webhook-config`](/lmile-docs/webhooks/allocation.md)           | 引き当て暫定確定 webhook 設定      |
| `POST` | [`/api/routing/status-webhook-config`](/lmile-docs/webhooks/fulfillment-status.md)       | 出荷ステータス webhook 設定       |
| `POST` | [`/api/routing/oversell-status-webhook-config`](/lmile-docs/webhooks/oversell-status.md) | 売越しケース受付完了 webhook 設定    |
| `POST` | [`/api/routing/order-update-webhook-config`](/lmile-docs/webhooks/order-update.md)       | 受注情報更新（住所修正など）webhook 設定 |

### Apps — ホスト型ミニアプリ

イベント駆動の自動処理（検知 → 判断 → API write-back）をコードで実装し、LMile 上でホストできます（プレビュー・公開エンドポイントなし）。[Apps](/lmile-docs/apps/overview.md) を参照してください。

## 次のステップ

1. [認証](/lmile-docs/getting-started/authentication.md)で API キーとヘッダーを確認する
2. [クイックスタート](/lmile-docs/getting-started/your-first-request.md)で商品と在庫を登録する
3. [Data Model](/lmile-docs/reference/data-model.md) でテーブル構造を理解する


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://lmile.gitbook.io/lmile-docs/getting-started/overview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
