Scenario
This API is only needed if external system store coupon data, and can complete & record redemption process locally. Then results can be synced to EZR so that customer will find coupon redeemed in WeChat center.
Direction
External system will call EZR
Call path: api/cvip/coupstatussync
Core Logic
EZR will not verify validity of coupons, will only update status.
Request Parameters
Field | Type | Required | Length | Description |
SalesNo | String | Yes | 1~26 | Sales order number |
CoupNos | string[] | Yes | Numbers of coupons | |
ShopCode | string | Yes | 1~16 | Shop where redemption happens |
ConsumeTime | string | Yes | Time when redemption happens | |
ConsumeUser | string | 1~18 | Staff who operate on the redemption | |
SalesMoney | double | Ticket price of sales order | ||
ConsumeBrand | double | 1~16 | Brand code which coupon used |
Example Request (JSON)
{
"CoupNos": ["0000123001", " 0000123002"],
"ShopCode": "SH000102",
" SalesNo": "0000123002",
"ConsumeTime": "2015-11-01 12:30:10",
"ConsumeUser": "0010",
"SalesMoney": 990.00
}
Example Result (JSON)
{
"Status": true,
"StatusCode": 200,
"Msg": "成功",
"Timestamp": "20150622093101",
"Sign": "6ECC9BF07C69E80F6D8552FF7B2E7A8FCA2CC80E",
"Result": 见业务返回结果示例,
}