文档
测试

积分兑换

POST
/api/merchants/redeem/postRedeem

请求头

参数名
类型
描述
必填
token
必填

请求参数

参数名
类型
描述
必填
url_token
string
加密参数
必填
project_name
string
项目名称
必填
integral
int
兑换积分数额
必填
remark
string
备注(非必填)
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:success
必填
data
object
数据字典
必填
id
int
示例:1
必填
brand_id
int
示例:1
必填
brand_shop_id
int
示例:1
必填
user_id
int
示例:11111
必填
real_name
string
示例:DSASD
必填
nickname
string
示例:SDFAyyyyyyyyyyy
必填
phone_prefix
string
示例:86
必填
phone
int
示例:15112692950
必填
email
string
示例:741@qq.com
必填
user_img
string
示例:http://apitest.hisport.cloud/public/redeem/20210918/K1V4vKMlhaiZ3BLH2DhNmTzU8y8Wl3yfr45bVtav.png
必填
access_token
string
示例:78a55488bd51460e2164c26939e5696e
必填
created_at
string
示例:2021-09-16 06:31:44
必填
brand
object
数据字典
必填
id
int
示例:1
必填
logo
string
示例:https://api.hisport.cloud/wx_sources/default_user.png
必填
brand_name
string
示例:高新园羽毛球馆
必填
contact_person
string
示例:张三
必填
phone
string
示例:15112692950
必填
created_at
string
示例:2021-09-15 06:33:26
必填
brand_shop
object
数据字典
必填
id
int
示例:1
必填
brand_id
int
示例:1
必填
shop_name
string
示例:高新园1店
必填
shop_address
string
示例:高新园超多维科技大厦1楼
必填
shop_integral
int
示例:160
必填
created_at
string
示例:2021-09-15 06:58:34
必填

说明 / 示例

```json { "code": 1, "msg": "success", "data": { "id": 1, "brand_id": 1, "brand_shop_id": 1, "user_id": 11111, "real_name": "DSASD", "nickname": "SDFAyyyyyyyyyyy", "phone_prefix": "86", "phone": 15112692950, "email": "741@qq.com", "user_img": "http://apitest.hisport.cloud/public/redeem/20210918/K1V4vKMlhaiZ3BLH2DhNmTzU8y8Wl3yfr45bVtav.png", "access_token": "78a55488bd51460e2164c26939e5696e", "created_at": "2021-09-16 06:31:44", "brand": { "id": 1, "logo": "https://api.hisport.cloud/wx_sources/default_user.png", "brand_name": "高新园羽毛球馆", "contact_person": "张三", "phone": "15112692950", "created_at": "2021-09-15 06:33:26" }, "brand_shop": { "id": 1, "brand_id": 1, "shop_name": "高新园1店", "shop_address": "高新园超多维科技大厦1楼", "shop_integral": 160, "created_at": "2021-09-15 06:58:34" } } } ```