Member Points API

Member Points Query -wjb.jifen.member.query

description

member points query api,according member telephone or original platform id(select one),query the points information online

input params

ID Name Type Description Required
1 mobile String member mobile number N
2 uid String member original platform id ,unique N

return

ID Name Type Description
1 code Number code:0 success
2 error_message String error message
3 member JifenAccount member account information

Example:

HTTP url:

http://wop.wangjubao.com/rest/jifen?sign=F2DFA99A06C15A84CDA94BEC0CCB0CFA&sign_method=md5&timestamp=2015-08-24+17:04:11&mobile=13032040001&v=1.0&method=wjb.buyer.jifen.query&app_key=120055111&format=json&access_token=MTIwMDU1MTExOTk1MTRBOTlGMDIwRUI1MDcxMkQ0NjM1M0UzOERFMDQyNzg0OTAzNjQ

Response body:

{
  "response": {
    "code": 0,
    "member": {
      "mobile": "13876290900",
      "buyer_nick": "leo",
      "buyer_level": 1,
      "balance": 120
    }
  }
}

Synchronize Member Information -wjb.jifen.member.sync

description

synchronize member points information, will cover member points and grade information after synchronization, system will not synchronize the first phase of the points

input params

ID Name Type Description Required
1 member PointsAccount member points account information Y

return

ID Name Type Description
1 code Number result code:0 success
2 error_message String error message

Example:

Http url:

http://wop.wangjubao.com/rest/jifen?sign=F2DFA99A06C15A84CDA94BEC0CCB0CFA&sign_method=md5&timestamp=2015-08-24+17:04:11&page_size=2&v=1.0&method=wjb.jifen.member.sync&app_key=120055111&format=json&access_token=MTIwMDU1MTExOTk1MTRBOTlGMDIwRUI1MDcxMkQ0NjM1M0UzOERFMDQyNzg0OTAzNjQ

HTTP Body:

{
  "member": {
    "mobile": "13801880188",
    "balance": 500,
    "buyer_level": 2
  }
}

Modify Member Mobile -wjb.jifen.mobile.modify

description

modify member mobile.attention: if member has bind on TianMao Huiyuantong (a platform) ,we will unbind it.

input params

ID Name Type Description Required
1 uid String member original platform ID Y
2 mobile String the mobile to be updated Y

return

ID Name Type Description
1 code Number result code:0 success
2 error_message String error message

Gift Send List Query -wjb.jifen.gift.send.list

description

query the free gift send record on member bind, default query the send record in 24 hours if the begin and end time is null

input params

ID Name Type Description Required
2 start_time Date begin date,yyyy-MM-dd hh:mm:ss N
3 end_time Date end date,yyyy-MM-dd hh:mm:ss,(end_time-start_time)in 180days N
4 page_no Number page number (>0),defauklt 1 N
5 page_size Number page size <= 50,default 10 N

return

ID Name Type Description
1 code Number result code:0 success
2 error_message String error message
3 gift_orders PointsGiftOrder[] bind-send -gift record list
4 Total_result Number total record count

Member List Query -wjb.jifen.member.list

description

query the member list

input params

ID Name Type Description Required
1 is_bind Number 1:bind,0:not bind,2: unbind, default 1 N
2 start_time Date bind begin date,format yyyy-MM-dd hh:mm:ss N
3 end_time Date bind end date,format yyyy-MM-dd hh:mm:ss N
4 page_no Number page number (>0) Y
5 page_size Number page size <=50 Y

return

ID Name Type Description
1 code Number result code:0 success
2 error_message String error message
3 members PointsAccount[] integration member list
4 has_next Boolean has nex page or not

Member Increase List Query -wjb.jifen.member.increase.list

description

get the increase member list, include the change of the bind relation,points amount,member grade and so on in a period

input params

ID Name Type Description Required
1 start_time Date begin date,fformat yyyy-MM-dd hh:mm:ss N
2 end_time Date end date,format yyyy-MM-dd hh:mm:ss N
3 page_no Number page number (>0) Y
4 page_size Number page size <=50 Y

return

ID Name Type Description
1 code Number result code:0 success
2 error_message String error message
3 members JifenAccount[] integration member list
4 has_next Boolean has next page or not

Gift Exchange List Query -wjb.jifen.gift.exchange.list

description

query the member points gift exchange revcord,default query the send record in 24 hours if the begin and end time is null

input params

ID Name Type Description Required
1 start_time Date begin date,yyyy-MM-dd hh:mm:ss N
2 end_time Date end date,yyyy-MM-dd hh:mm:ss,(end_time-start_time)< 180days N
3 page_no Number page number (>0),default 1 N
4 page_size Number page size <= 50,default 10 N

return

ID Name Type Description
1 code Number return code:0 success
2 error_message String error message
3 gift_orders PointsGiftOrder[] gift exchange record list
4 Total_result Number record count

Rights Tag Add -wjb.jifen.ump.usertag.add

description

relate the right tag to member,then member could enjoy it.

input params

ID Name Type Description Required
1 tag_id String right Id Y
2 tag_name String right name Y
3 uid String outer system member id Y

return

ID Name Type Description
1 code Number result code:0 success
2 error_message String error message

Rights Tag Delete -wjb.jifen.ump.usertag.delete

description

delete the related member rights

input params

ID Name Type Description Required
1 tag_id String right Id Y
2 tag_name String right name Y
3 uid String outer system member id Y

return

ID Name Type Description
1 code Number result code:0 success
2 error_message String error message