商品状态变更事件
消息与事件接收URL
发送 POST
请求开发指南
-准备
-回调事件接入指南
进行接入请求参数名 | 类型 | 说明 |
---|---|---|
data | Object | 消息体 |
data.id | String | 事件id |
data.event | String | 事件主类型(固定:MALL_GOODS) |
data.action | String | 事件子类型(固定:MALL_GOODS_STATUS_CHANGE) |
data.body | Object | 数据内容 |
data.body.snowflakeId | String | 商品ID |
data.body.code | String | 商品编码 |
data.body.status | Int | 上架状态 1=上架;2=下架; |
data.body.scene | String | 事件触发场景 system=系统触发; |
json
- Request-Example://信息明文推送
{
"id": "33a5bfc3-5818-494a-8a20-956a45a1fc64",
"event": "MALL_GOODS",
"action": "MALL_GOODS_STATUS_CHANGE",
"body": {
"goodsId": "471016b1-150c-4705-84ce-d0f1167bee17",
"snowflakeId": "1661192984314200064",
"code": "",
"status": 2,
"scene": "system"
}
}
//信息加密推送
{
"id": "350670664413253632",
"event": "MALL_GOODS",
"action": "MALL_GOODS_STATUS_CHANGE",
"body": {
"encrypt": "XOKphmyMEcuW94gYtL/5Nj4ueFcfjaEFecC507QGzXbnDmavLp7I+s7K5BI4Qjt+Ayy/mNbw9bUE2x0HkSWm9h57VKJc9VLBghTjALWJcJduBDC7L6doORsZdaNlfVJU6DJ0VLyd1NojW9PfrzS01eQ7GW/dgaO3tkXQP2AOrGTn3Ca8haZQiwEJDYN/NUjW1/9T+gIcBu8LbmZGyokwrOD+ZGy7uky37yq8w8SGpis1WR2pIlZUOo+QdmWnMY1kJ9bHelH9h3ERemmNRIh/oMZp7QvFaNl/iCgUVAkh14tOV0nniE9Ld29GxyIEFz0nxD5+s4AG4cvq+xl+FXhu0A==",
"msgSignature": "d64cc4a02b22b725a6b50a9843ebf9c0fd7ca70f",
"timeStamp": "1661233174",
"nonce": "9ZvYhI4aFmR7wUNl"
}
}
修改于 2024-09-20 10:58:51