For the complete documentation index, see llms.txt. This page is also available as Markdown.

クイックスタート

商品を 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 イベントが記録されます。

次のステップ

Last updated

Was this helpful?