Showing
1 changed file
with
112 additions
and
0 deletions
促销/promotion.md
0 → 100644
1 | +#用户优惠券接口 | ||
2 | + | ||
3 | +## 接口列表 | ||
4 | +| 接口名称 | 接口描述 | | ||
5 | +| --------| -------- | | ||
6 | +|[app.promotion.queryCoupon](#1)|查询优惠券的列表信息| | ||
7 | +|[app.promotion.queryBirthCoupon](#2)|查询生日券列表 发送生日券| | ||
8 | +|[app.promotion.getCoupon](#3)|用户领券| | ||
9 | + | ||
10 | + | ||
11 | +## 接口描述 | ||
12 | + | ||
13 | +### 1、查询优惠券的列表信息(app.promotion.queryCoupon) | ||
14 | + | ||
15 | +#### 请求参数 | ||
16 | +| Param Name | Param Type | Required | Param Value | Desc | | ||
17 | +| :-- | --: | --: | --: | --: | | ||
18 | +| method | String | true |app.promotion.queryCoupon| 请求方法| | ||
19 | +| couponType | int | true | 4 |券类型 1 A券 2 B券 3 公开券4 生日券5 免邮券 | | ||
20 | + | ||
21 | +#### 响应内容 | ||
22 | +```json | ||
23 | + | ||
24 | +``` | ||
25 | +### 2、查询生日券列表(app.promotion.queryBirthCoupon) | ||
26 | + | ||
27 | +#### 请求参数 | ||
28 | +| Param Name | Param Type | Required | Param Value | Desc | | ||
29 | +| :-- | --: | --: | --: | --: | | ||
30 | +| method | String | true |app.promotion.queryBirthCoupon| 请求方法| | ||
31 | +| couponType | int | true | 4 |券类型 1 A券 2 B券 3 公开券4 生日券5 免邮券 | | ||
32 | +| uid | int | true | 7893817 |用户ID | | ||
33 | + | ||
34 | + | ||
35 | +#### 响应内容 | ||
36 | +```json | ||
37 | +{ | ||
38 | + "alg": "SALT_MD5", | ||
39 | + "code": 200, | ||
40 | + "data": [ | ||
41 | + { | ||
42 | + "couponAmount": 50, | ||
43 | + "couponCode": "", | ||
44 | + "couponName": "12月生日券-满199减50", | ||
45 | + "endTime": "2017-01-31 09:45:40", | ||
46 | + "id": 2030, | ||
47 | + "startTime": "2013-12-01 00:00:00", | ||
48 | + "status": 1, | ||
49 | + "useLimit": "199", | ||
50 | + "useLimitType": "2" | ||
51 | + }, | ||
52 | + { | ||
53 | + "couponAmount": 300, | ||
54 | + "couponCode": "", | ||
55 | + "couponName": "12月生日券-满799减300", | ||
56 | + "endTime": "2017-01-31 09:45:40", | ||
57 | + "id": 2033, | ||
58 | + "startTime": "2013-12-01 00:00:00", | ||
59 | + "status": 1, | ||
60 | + "useLimit": "799", | ||
61 | + "useLimitType": "2" | ||
62 | + }, | ||
63 | + { | ||
64 | + "couponAmount": 50, | ||
65 | + "couponCode": "", | ||
66 | + "couponName": "1月生日券-满199减50", | ||
67 | + "endTime": "2017-01-31 09:45:40", | ||
68 | + "id": 2035, | ||
69 | + "startTime": "2014-01-01 00:00:00", | ||
70 | + "status": 1, | ||
71 | + "useLimit": "199", | ||
72 | + "useLimitType": "2" | ||
73 | + }, | ||
74 | + { | ||
75 | + "couponAmount": 300, | ||
76 | + "couponCode": "", | ||
77 | + "couponName": "1月生日券-满799减300", | ||
78 | + "endTime": "2017-01-31 09:45:40", | ||
79 | + "id": 2038, | ||
80 | + "startTime": "2014-01-01 00:00:00", | ||
81 | + "status": 1, | ||
82 | + "useLimit": "799", | ||
83 | + "useLimitType": "2" | ||
84 | + } | ||
85 | + ], | ||
86 | + "md5": "c957283765172838f577de4228d45a42", | ||
87 | + "message": "请求成功" | ||
88 | +} | ||
89 | +``` | ||
90 | + | ||
91 | +### 3、用户领券(app.promotion.getCoupon) | ||
92 | + | ||
93 | +#### 请求参数 | ||
94 | +| Param Name | Param Type | Required | Param Value | Desc | | ||
95 | +| :-- | --: | --: | --: | --: | | ||
96 | +| method | String | true |app.promotion.getCoupon| 请求方法| | ||
97 | +| uid | int | true | 7893817 |用户ID | | ||
98 | +| couponId | int | true |23121 |券id| | ||
99 | + | ||
100 | + | ||
101 | +#### 响应内容 | ||
102 | +```json | ||
103 | +{ | ||
104 | + "alg": "SALT_MD5", | ||
105 | + "code": 200, | ||
106 | + "data": { | ||
107 | + }, | ||
108 | + "md5": "50d19f5f5098c34607018f144baec14a", | ||
109 | + "message": "操作成功" | ||
110 | +} | ||
111 | +``` | ||
112 | + |
-
Please register or login to post a comment