Scenario
External system needs to get a member’s available coupons from EZR.
Direction
External system will call EZR
Call path: api/ccoup/coupget
Core Logic
Only single member at a time
Request Parameters
Field | Type | Required | Length | Description |
OldCode | string | at least | 20 | Member's unique code (external system) |
Code | string | 20 | Member's unique code (in EZR) | |
MobileNo | string | 11 | Member's Mobile number | |
WxOpenID | string | 32 | Member’s WeChat OpenID | |
CoupType | string | Coupon type | ||
ShopCode | string | Yes | 16 | Shop ID |
Returned Parameters
Field | Type | Length | Description |
CoupNo | string | Number of coupon | |
CoupName | string | Name of coupon | |
CoupType | int | Coupon type | |
CoupName | string | Name of coupon | |
BegDate | string | Time when coupon begin to be valid | |
EndDate | string | Time when coupon expires | |
Guide | string | Description of coupon | |
CoupValue | demical | Value of coupon | |
PriceLimit | demical | Price limit of coupon | |
PromotionCode | string | promotion code (in POS) |
Example Request (JSON)
{
"OldCode": "0000123001",
"ShopCode": "000021",
}
Example Return by EZR (JSON)
[{
"CouponNo": "HQ01S001",
"CouponType": "ZK",
"CouponName": "8折券",
"BegDate": "2016-01-01",
"EndDate": "2017-01-01",
"Guide": "8折券8折券",
"CouponValue": 0.8,
"PriceLimit": 100,
}]