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 | |
EffectDate | int | Date when points are available to redeem | |
ValidityDate | int | Expiration date of points | |
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": 见业务返回结果示例,
}