コンテンツにスキップ

クーポン取引

POST
/webhook-transactions-coupon
curl --request POST \
--url https://api.smaregi.dev/TARGET-CONTRACT-ID/pos/webhook-transactions-coupon \
--header 'Content-Type: application/json' \
--data '{ "contractId": "string", "event": "string", "action": "created", "transactionHeadIds": [ "1", "10", "12" ] }'
Smaregi-Event
string

イベント名 pos:transaction-coupons

Media typeapplication/json
object
contractId
契約ID
string
event
イベント
string
action
アクション
  • created: 登録
  • canceled: 取消
  • disposed: 返品取消
string
Allowed values: created canceled disposed
transactionHeadIds
取引IDリスト
array
Example
{
"contractId": "string",
"event": "string",
"action": "created",
"transactionHeadIds": [
"1",
"10",
"12"
]
}