帮助中心

1201 - Member creation externally

2020-12-03

Scenario

This API allow member to be created in external system and be updated to EZR


Direction

External system will call EZR

Request path: api/cvip/vipadd


Core Logic

“oldcode” must be unique or request will be rejected.


Request Parameters


Field

Type

Required

Length

Description

OldCode

string

Yes

1~16

Member's unique code (external system)

NickName

string


0~12

Member's nickname

MobileNo

string

Yes

0~11

Member's Mobile number

Name

string


0~12

Member's name

Grade

string

Yes

1~12

Member's grade(level) name
  If empty, will apply default level in EZR

Sex

string

Yes

1

Gender
  0=unknown
  1=male
  2=female

Birthday

string


10

yyyy-MM-dd

WeibNo

string


0~32

Member's Weibo ID

QqNo

string


0~32

Member's QQ number

TbNo

string


0~32

Member's Taobao user ID

Email

string


0~20

Member's Email

RegShop

string

Yes

0~16

Member's registration shop
  will check if existed

RegDate

string

Yes

10

Member's registration date:
  yyyy-MM-dd

ServShop

string


0~16

Member's service store No.

ServUser

string


0~16

Member's service assistant No.

Province

string


0~64


City

string


0~64


County

string


0~64


 

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)

 

Example Request (JSON)

{

    "OldCode": "EZ00001230",

    "NickName": "小桂子",

    "MobileNo": "18988888888",

    "Name": "刘桂",

    "Sex": "1",

    "Birthday": "1982-10-17",

    "WxNo": "",

    "WxUnionId": "",

    "WeibNo": "",

    "QqNo": "",

    "TbNo": "",

    "Email": "12345678@qq.com",

    "RegShop": "HQS0001",

    "RegDate": "2015-05-17 09:30:30",

    "Province": "",

    "City": "",

    "County": ""

}


Example Result by EZR (JSON)

{

    "Status": true,

    "StatusCode": 200,

    "Msg": "成功",

    "Timestamp": "20150622093101",

    "Sign": "6ECC9BF07C69E80F6D8552FF7B2E7A8FCA2CC80E",

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

}


3022