消費提示模板消息推送接口
===
1. 接口描述
---
1.1 功能描述 消費提示模板消息推送接口
1.2 接口地址 http://{ip}:{port}/api/open/message
/consumption
1.3 請求方式 HTTP + POST + application/json
2. 請求參數
---
字段 | 類型 | 是否必須 | 描述 | 備注 |
---|---|---|---|---|
storeId | String | 是 | 門店id | |
memberId | String | 是 | 會員編號 | |
tradeNo| string | 是 | 訂單號 | |
itemName | String | 是 | 商品名稱 | |
totalQuantity | string | 是 | 商品數量 | |
totalWight | string | 是 | 商品重量 | |
totalAmount | String | 是 | 商品價格 | |
orderTime | String | 否 | 訂單時間 | yyyy-MM-dd HH:mm:ss 格式 |
3. 響應參數
---
字段 | 類型 | 描述 | 備注 |
---|---|---|---|
code | Integer | 響應狀態碼 | |
message | String | 響應消息 | |
4. 請求示例
---
```
{
??"storeId": "001",
"memberId": "002",
??"messageTitle": "消息標題",
??"messageContent": "消息內容",
??"createTime": "2018-12-12 13:10:10"
}
```
5. 成功返回示例
---
```
{
??"code": 0,
??"message": "OK"
}
```
6. 異常返回示例
---
```
{
??"code": 40000,
??"message": "接口請求參數錯誤"
}
```