コンテンツにスキップ

商品計上日移動平均原価

POST
/webhook-posting-date-moving-average-costs
curl --request POST \
--url https://api.smaregi.dev/TARGET-CONTRACT-ID/pos/webhook-posting-date-moving-average-costs \
--header 'Content-Type: application/json' \
--data '{ "contractId": "string", "event": "string", "action": "edited", "ids": [ { "productId": "1", "targetDate": "2000-01-23" }, { "productId": "10", "targetDate": "2000-01-23" } ] }'
Smaregi-Event
string

イベント名 pos:posting-date-moving-average-costs

Media typeapplication/json
object
contractId
契約ID
string
event
イベント
string
action
アクション
  • edited: 更新
string
Allowed values: edited
ids
商品ID・計上日リスト
Array<object>
object
productId
商品ID
string
targetDate
計上日

[YYYY-MM-DD]

string
Example
{
"contractId": "string",
"event": "string",
"action": "edited",
"ids": [
{
"productId": "1",
"targetDate": "2000-01-23"
},
{
"productId": "10",
"targetDate": "2000-01-23"
}
]
}