帮助中心

1211-Member points update (EZR to external)

2020-12-03

Scenario

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

Member's points change in EZR, EZR will update change to external system.


Direction

EZR will call external system


Core Logic

External system needs to return status code.

Call will be retried for 3 times if error happens.


Request Parameters

Field

Type

Length

Description

Brand

string

1~16

Brand's name

OldCode

string

1~16

Member's   unique code (external system)

TransBonus

Int


positive - add

negative -   deduct

TradeNo

string

 1~20

Transaction   record, used to trace back and prevent duplication

ChangeTime

string


Time when   change happens
  yyyy-MM-dd HH:mm:ss

EffectDate

int


Date when   points are available to redeem
  yyyy-MM-dd
  0 = immediately
  This field is only valid when points are added

ValidityDate

int


Expiration   date of points
  yyyy-MM-dd
  0 = permanently
  This field is only valid when points are added

Remark

string

 1~32


 

Example Request (JSON)

{

    "OldCode": "000008",

    "TransBonus": -100,

    "TradeNo": "T00001",

    "ChangeTime": "2015-11-01 12:30:01",

    "Remark": "积分换券",

    "EffectDate": 20100101,

    "ValidityDate ": 20100105,

}


Example Return by external system (JSON)

{

    "Status": true,

    "StatusCode": 200,

    "Msg": "成功",

    "Timestamp": "20150622093101",

    "Sign": "6ECC9BF07C69E80F6D8552FF7B2E7A8FCA2CC80E",

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

}


2017