コンテンツにスキップ

在庫

POST
/webhook-stock
curl --request POST \
--url https://api.smaregi.dev/TARGET-CONTRACT-ID/pos/webhook-stock \
--header 'Content-Type: application/json' \
--data '{ "contractId": "string", "event": "string", "action": "edited", "ids": [ { "id": "1", "productId": "1", "storeId": "0" }, { "id": "10", "productId": "1", "storeId": "0" } ] }'
Smaregi-Event
string

イベント名 pos:stock

Media typeapplication/json
object
contractId
契約ID
string
event
イベント
string
action
アクション
  • edited: 更新
  • bulk-update: 一括更新
string
Allowed values: edited bulk-update
ids
Array<object>
object
id
在庫変動履歴ID
string
productId
商品ID
string
storeId
店舗ID
string
Example
{
"contractId": "string",
"event": "string",
"action": "edited",
"ids": [
{
"id": "1",
"productId": "1",
"storeId": "0"
},
{
"id": "10",
"productId": "1",
"storeId": "0"
}
]
}