主题
退款(会员中心)
停用页面
| 项目 | 内容 |
|---|---|
| 接口描述 | 停用页面 |
| 接口地址 | /console/v1/refund |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| host_id | int | - | validate:required | desc:产品ID |
响应参数
| name | type | default | desc |
|---|---|---|---|
| allow_refund | int | - | desc:是否允许退款 |
| reason_custom | int | - | desc:是否允许自定义原因 |
| reasons | array | - | desc:停用原因列表 |
| reasons[].id | int | - | desc:原因ID |
| reasons[].content | string | - | desc:内容 |
| host | object | - | desc:产品信息 |
| host.create_time | int | - | desc:订购时间 |
| host.first_payment_amount | float | - | desc:订购金额 |
| host.amount | float | - | desc:退款金额 |
| config_option | array | - | desc:产品配置 |
停用
| 项目 | 内容 |
|---|---|
| 接口描述 | 停用 |
| 接口地址 | /console/v1/refund |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| host_id | int | - | validate:required | desc:产品ID |
| suspend_reason | mixed | - | 可自定义时传字符串不可自定义时传停用原因ID数组validate:optional | desc:停用原因 |
| type | string | - | Expire到期Immediate立即validate:optional | desc:停用时间 |
| client_operate_password | string | - | 需要验证时传validate:optional | desc:操作密码 |
响应参数
无
取消
| 项目 | 内容 |
|---|---|
| 接口描述 | 取消 |
| 接口地址 | /console/v1/refund/:id/cancel |
| 请求方式 | PUT |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | validate:required | desc:停用申请ID |
响应参数
无
获取待审核金额
| 项目 | 内容 |
|---|---|
| 接口描述 | 获取待审核金额 |
| 接口地址 | /console/v1/refund/pending/amount |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
无
响应参数
| name | type | default | desc |
|---|---|---|---|
| amount | float | - | desc:退款待审核金额 |
获取产品停用信息
| 项目 | 内容 |
|---|---|
| 接口描述 | 获取产品停用信息 |
| 接口地址 | /console/v1/refund/host/:id/refund |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| id | int | - | validate:required | desc:产品ID |
响应参数
| name | type | default | desc |
|---|---|---|---|
| refund | object | - | desc:退款信息 |
| refund.id | int | - | desc:退款ID |
| refund.amount | float | - | desc:退款金额 |
| refund.suspend_reason | string | - | desc:停用原因 |
| refund.type | string | - | desc:类型 |
| refund.status | string | - | desc:状态 |
| refund.reject_reason | string | - | desc:驳回原因 |
| refund.create_time | int | - | desc:申请时间 |