コンテンツにスキップ

オプショングループ商品

POST
/webhook-product-option-group-products
curl --request POST \
--url https://api.smaregi.dev/TARGET-CONTRACT-ID/pos/webhook-product-option-group-products \
--header 'Content-Type: application/json' \
--data '{ "contractId": "string", "event": "string", "action": "created", "ids": [ { "productOptionGroupId": "1", "productId": "1" }, { "productOptionGroupId": "1", "productId": "10" } ] }'
Smaregi-Event
string

イベント名 pos:product-options

Media typeapplication/json
object
contractId
契約ID
string
event
イベント
string
action
アクション
  • created: 登録
  • deleted: 削除
  • bulk-update: 一括更新
string
Allowed values: created deleted bulk-update
ids
Array<object>
object
productOptionGroupId
オプショングループID
string
productId
商品ID
string
Example
{
"contractId": "string",
"event": "string",
"action": "created",
"ids": [
{
"productOptionGroupId": "1",
"productId": "1"
},
{
"productOptionGroupId": "1",
"productId": "10"
}
]
}