帮助中心

1307 - Member's coupon inquiry

2019-06-11

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
  1 of 4
  is filled

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
  DJ = cash coupon
  ZK = discount coupon
  CX = POS promotion coupon
  LP = gift coupon
  YQ = invitation coupon
  YY = 3rd party coupon

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
  DJ = cash coupon
  ZK = discount coupon
  CX = POS promotion coupon
  LP = gift coupon
  YQ = invitation coupon
  YY = 3rd party coupon

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
  (0-1 for discount 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,

}]


coupon 1285