クイックスタート
商品を 1 件登録し、在庫を設定して、販売による在庫変動を送る手順です。
Base URL
https://api.lmile.io· 認証x-ingest-secretヘッダー ·shopはボディに含めます(省略するとキーのアカウント)
1. 商品登録
curl -X POST https://api.lmile.io/api/ingest/products \
-H "x-ingest-secret: $INGEST_SECRET" \
-H "Content-Type: application/json" \
-d '{
"shop": "demo-store.myshopify.com",
"products": [{
"barcode": "1234567890123",
"product_name": "スマートフォンケース",
"sku": "DEMO-CASE-001",
"brand": "Demo Brand",
"category_l1": "ケース",
"current_price": 9800
}]
}'{ "ok": true, "created": 1, "updated": 0, "unchanged": 0, "errors_count": 0, "errors": [] }2. 在庫設定(スナップショット / 絶対値)
3. 販売による在庫変動(available / delta)
販売可能在庫が 10 → 9 に更新され、inventory_update_logs に available_delta イベントが記録されます。
次のステップ
Products API — 全フィールドの詳細
Inventory Levels API — snapshot と available の詳細
Order Line Master API — 受注明細の取込
Routing API — 受注ルーティング(出荷元判定 → 出荷指示)
Data Model — テーブル構造
Last updated
Was this helpful?