推送说明#
当商品是多规格(包含多个sku)时,分别针对该商品下所有sku分别推送通知,订阅方可按需处理;
由于各订阅方获取的价格逻辑有异,本推送内容不包含具体的价格信息,需要各订阅方调用接口重新获取具体价格再做相应处理。
事件类型标识#
eventName:product-center.price.update
推送主体内容#
| 参数 | 类型 | 是否必填 | 描述说明 |
|---|
| payload | object | 必填 | 事件的具体数据 |
| - list | array | 必填 | 商品数据 |
| -- product_id | int | 必填 | 商品id |
| -- product_sku_id | int | 必填 | 商品skuid |
| -- product_sku | string | 必填 | 商品sku |
| -- delivery_regions | array | 必填 | 变更价格的区域列表 |
| --- delivery_region_id | int | 必填 | 区域id |
| --- currency_code | string | 必填 | 发货区域币种编码 |
| --- symbol | string | 必填 | 发货区域币种标识 |
| ctx | object | 非必填 | 事件的上下文,例:订单创建事件,对应创建订单的用户信息 |
| eventId | string | 必 填 | 事件id |
| entityId | string | 必填 | 实体id,即业务事件的实体对应的id |
| eventHash | string | 必填 | 事件hash值,由事件生产者生成,作为唯一标识 |
| eventName | string | 必填 | 事件名,作为不同业务订阅类型标识 |
| sourceSystem | string | 必填 | 事件的来源系统 |
| eventVersion | string | 必填 | 事件的版本号,版本号应与事件的数据结构做绑定,方便下游系统做业务区分 |
| eventAt | string | 必填 | 事件的触发时间,格式:2025-06-08 12:30:00 |
推送内容示例#
{
"eventId": 889824605076574209,
"entityId": "43bf3819-5dff-4e32-ad7f-5dcd47e9999e",
"eventHash": "df748b06c548704a27d85138ccabf7bf",
"eventType": "source",
"eventName": "product-center.price.update",
"sourceSystem": "westmonth.product-center",
"eventVersion": "1.0.0",
"payload": {
"list": [
{
"product_id": 25611,
"product_sku_id": 31581,
"product_sku": "SKU00068872",
"delivery_regions": [{
"delivery_region_id": 5,
"currency_code": "CNY",
"symbol": "¥"
}]
},
{
"product_id": 25612,
"product_sku_id": 31582,
"product_sku": "SKU00068873",
"delivery_regions": [{
"delivery_region_id": 5,
"currency_code": "CNY",
"symbol": "¥"
}]
}
]
},
"ctx": [
],
"eventAt": "2026-03-10 10:45:08"
}