ThirdCallBack
获取令牌
BASIC
Path: /api/third_call_back/get_token/{phoneNumber}/{password}
Method: POST
Desc:
令牌需要追加到请求头(RequestHeader)的Authorization字段里
REQUEST
Path Params:
name | value | desc |
---|---|---|
phoneNumber | 13810101010 | 手机号 |
password | 1020AB | 密码 |
Headers:
name | value | required | desc |
---|---|---|---|
Content-Type | application/x-www-form-urlencoded | YES |
RESPONSE
Header:
name | value | required | desc |
---|---|---|---|
content-type | application/json;charset=UTF-8 | YES |
Body:
name | type | desc |
---|---|---|
Code | string | 返回内容判定 OK–正常; ERROR–不正常; AuthFailed–认证失败; |
Msg | string | 返回内容描述信息 |
Content | object | 接口返回数据(或数据集合) |
|─token | string | TOKEN |
|─isNew | boolean | |
|─user | string | 用户的信息 |
Response Demo:
{
"Code": "", //接口正常返回OK 错误返回ERROR;其他的请判断http status code 下边不在重复叙述
"Msg": "",
"Content": {
"token": "",
"isNew": false, //这个您不用理会
"user": "" //一般为空
}
}
第三方 返回 实际核销的消费券
BASIC
Path: /api/third_call_back/write_off_coupon
Method: POST
REQUEST
Headers:
name | value | required | desc |
---|---|---|---|
Content-Type | application/json | YES |
RequestBody
name | type | desc |
---|---|---|
array | 消费卷的集合 | |
|─amount | integer | 消费券面值 |
|─createBy | string | 消费卷的拥有人姓名(微信昵称) |
|─created | string | 创建日期 |
|─expired | string | 有效期 |
|─mobile | string | 手机号 |
|─ticketCode | string | 消费卷号 |
Request Demo:
[
{
"amount": 0,
"createBy": "",
"created": "",
"expired": "",
"mobile": "",
"ticketCode": ""
}
]
RESPONSE
Header:
name | value | required | desc |
---|---|---|---|
content-type | application/json;charset=UTF-8 | NO |
Body:
name | type | desc |
---|---|---|
Code | string | 返回内容判定 OK–正常; ERROR–不正常; AuthFailed–认证失败; |
Msg | string | 返回内容描述信息 |
Content | string | 接口返回数据(或数据集合) |
Response Demo:
{
"Code": "",
"Msg": "",
"Content": ""
}
第三方 返回 撤销消费卷预核销
BASIC
Path: /api/third_call_back/cancel_write_off_coupon
Method: POST
REQUEST
Headers:
name | value | required | desc |
---|---|---|---|
Content-Type | application/json | YES |
RequestBody
name | type | desc |
---|---|---|
array | 消费卷的集合 | |
|─amount | integer | 消费券面值 |
|─createBy | string | 消费卷的拥有人姓名(微信昵称) |
|─created | string | 创建日期 |
|─expired | string | 有效期 |
|─mobile | string | 手机号 |
|─ticketCode | string | 消费卷号 |
Request Demo:
[
{
"amount": 0,
"createBy": "",
"created": "",
"expired": "",
"mobile": "",
"ticketCode": ""
}
]
RESPONSE
Header:
name | value | required | desc |
---|---|---|---|
content-type | application/json;charset=UTF-8 | NO |
Body:
name | type | desc |
---|---|---|
Code | string | 返回内容判定 OK–正常; ERROR–不正常; AuthFailed–认证失败; |
Msg | string | 返回内容描述信息 |
Content | string | 接口返回数据(或数据集合) |
Response Demo:
{
"Code": "",
"Msg": "",
"Content": ""
}