V2 0/activity/distribute coupon
来自技术开发小组内部wiki
功能说明
领取优惠券
URL
http://[域名]//v1/activity/distribute_coupon
返回格式
支持json,xml.通过format参数来控制
HTTP请求方式
POST.可以post的数据为xml或json.
输入参数说明
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
uid |
是 | int | 用户id |
aid | 是 | int | 活动id |
version |
是 |
string |
客户端版本号 |
coupon_id |
是 |
int |
优惠券id |
请求示例
正式环境 http://api.fumubang.com/v2_0/activity/distribute_coupon 测试环境 http://api.fumubang.net/v2_0/activity/distribute_coupon 本地环境 http://dev-api.fumubang.net/v2_0/activity/distribute_coupon
返回参数说明
参数 | 说明 |
---|---|
status |
状态:success成功 |
msg |
领取成功 |
正确返回示例
{
"status": "success",
"msg": "领取成功"
}
错误返回示例
{"error_code": "300003",
"error_msg": "你已经领过了"
}