Scenario
External system needs to get a member’s information from EZR, but it does not know what kind of ID code it has scanned.
Direction
External system will call EZR
Call path: api/VipInfo/VipQuery
http://inditex-test.ezrpro.com/ The address for test environment, formal interface address to be determined,call path emain unchanged;
Core Logic
External system does not need to identify which ID code it gets, send the code in request to EZR and EZR will help identify the code and if the customer exists. Only 3 kind of ID codes can be accepted and recognized.
Request Parameters
Field | Type | Required | Length | Description |
Code | string | Yes | 1~16 | Accepet anonymous code, must be one of the following: Code rule(Temporary Test Rules,Formal rules to be determined) Code: ITX Beginning OldCode: 18-bit pure numbers Taobaonick: 19-bit pure numbers |
Returned Parameters
Field | Type | Length | Description |
OldCode | string | 1~16 | Member's unique code (external system) |
Code | string | 1~16 | Member's unique code (in EZR) |
Grade | string | 1~12 | Member's grade(level) name |
NickName | string | 0~12 | Member's nickname |
MobileNo | string | 0~11 | Member's Mobile number |
Name | string | 0~12 | Member's name |
Sex | string | 1 | Gender |
PassWord | string | 0~64 | Member's password (website/app) |
Birthday | string | 0~10 | yyyy-MM-dd |
WxNo | string | 0~32 | Member's WeChat OpenID |
WxUnionId | string | 0~32 | Member's WeChat UnionID |
WeibNo | string | 0~32 | Member's Weibo ID |
QqNo | string | 0~20 | Member's QQ number |
TbNo | string | 0~32 | Member's taobao ID |
string | 0~32 | Member's email | |
RegShop | string | 1~16 | Member's registration shop |
RegDate | string | 10 | Member's registration date: |
Province | string | 0~64 | |
City | string | 0~64 | |
County | string | 0~64 | |
ServShop | string | 0~16 | Member's service store No. |
ServUser | string | 0~16 | Member's service assistant No. |
Bonus | int | Available points | |
BonusTotal | int | Total points |
Example Request (JSON)
{
"Code": " EZ00001230",
}
Example Returned Result by EZR (JSON)
{
"Msg":"成功",
"Code":200,
"Status":true,
"Result":{
"OldCode":"EZ00001230",
"Code":"00001230",
"Grade":"金卡会员",
"NickName":"小桂子",
"MobileNo":"18988888888",
"Name":"刘桂",
"Sex":"1",
"PassWord":"",
"Birthday":"1982-10-17",
"WxNo":"",
"WxUnionId":"",
"WeibNo":"",
"QqNo":"",
"TbNo":"",
"Email":"12345678@qq.com",
"RegShop":"HQS0001",
"RegDate":"2015-05-17",
"Province":"",
"City":"",
"County":"",
"Bonus":100,
"BonusTotal":1000
}
}