帮助中心

Coupon delivery update

2020-12-03

Scenario

This API is only needed if external system store coupon data and needs to sync it with EZR.

When a member receive a coupon in EZR, EZR will update coupon’s information to external system.


Direction

EZR will call external system


Core Logic

-


Request Parameters

Field

Type

Length

Description

Brand

string


Brand's name

OldCode

string


Member's   unique code (external system)

WxOpenID

string


Member’s   WeChat OpenID

CoupNo

string


Number of   coupon

CoupName

string


Name of   coupon

CoupType

int


Coupon type
  1 = cash coupon
  2 = discount coupon
  3 = POS promotion coupon
  4 = gift coupon
  5 = invitation coupon
  10 = 3rd party coupon

PromotionCode

string


promotion   code (in POS)

CoupValue

double


Value of   coupon

PriceLimit 

Double


Price limit   of coupon

BegDate

string


Time when   coupon begin to be valid

EndDate

string


Time when   coupon expires

Guide

string


Description   of coupon

ApplyType

string


Applicable   type:
  all: BD
  teritory: PQ
  group: GP
  single store: SH

ApplyShops

string


Applicable   shops of coupon (in POS)
  null = no limit

 

Example Request (JSON)

{

    "OldCode": "EZ00001230",

    "CoupNo": "0000123001",

    "CoupName": "50元代金券",

    "CoupType": 1,

    "PromotionCode": "ez123123",

    "CoupValue": 50,

    "BegDate": "2015-10-17",

    "EndDate": "2015-11-17",

    "Guide": "这是一个使用说明",

    "ApplyShops": "SH0001,SH0002"

}

 

Example Return by external system (JSON)

{

    "Status": true,

    "StatusCode": 200,

    "Msg": "成功",

    "Timestamp": "20150622093101",

    "Sign": "6ECC9BF07C69E80F6D8552FF7B2E7A8FCA2CC80E",

    "Result": 见业务返回结果示例,

}


1603