[TOC]
* * * * *
### WeEngine Android、IOS Commission api
#### 立即领取
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.sale.pay
*string:openid=默认值#openid
*string:id=默认值#优惠券ID
<<<
success
{
"result": {
"logid": "46", //领取ID
}
}
<<<
error
{
"status": 0,
"result": {
"message": "错误信息"
}
}
~~~
#### 领取成功
* 卡券名称 couponname
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.sale.showcoupons
*string:openid=默认值#openid
*string:id=默认值#领取ID
<<<
success
{
"status": 1,
"result": {
"data": {
"id": "7",
"uniacid": "4",
"catid": "0",
"couponname": "优惠券",
"gettype": "1",
"getmax": "0",
"usetype": "0",
"returntype": "0",
"bgcolor": "",
"enough": "0.00",
"timelimit": "0",
"coupontype": "0",
"timedays": "10",
"timestart": "1508774400",
"timeend": "1509465599",
"discount": "1.00",
"deduct": "5.00",
"backtype": "2",
"backmoney": "1",
"backcredit": "1",
"backredpack": "1",
"backwhen": "0",
"thumb": "",
"desc": "",
"createtime": "1508815886",
"total": "100",
"status": "0",
"money": "1.00",
"respdesc": "",
"respthumb": "",
"resptitle": "",
"respurl": "",
"credit": "0",
"usecredit2": "1",
"remark": "",
"descnoset": "0",
"pwdkey": "",
"pwdsuc": "",
"pwdfail": "",
"pwdurl": "",
"pwdask": "",
"pwdstatus": "0",
"pwdtimes": "0",
"pwdfull": "",
"pwdwords": "",
"pwdopen": "0",
"pwdown": "",
"pwdexit": "",
"pwdexitstr": "",
"displayorder": "0",
"pwdkey2": "",
"merchid": "0",
"limitgoodtype": "0",
"limitgoodcatetype": "0",
"limitgoodcateids": "",
"limitgoodids": "",
"islimitlevel": "0",
"limitmemberlevels": "",
"limitagentlevels": "",
"limitpartnerlevels": "",
"limitaagentlevels": "",
"tagtitle": "",
"settitlecolor": "0",
"titlecolor": "#000000",
"limitdiscounttype": "0",
"quickget": "0"
},
}
}
<<<
error
{
"status": 0,
"result": {
"message": "错误信息"
}
}
~~~