主题
实名认证商品配置信息(前台)
产品列表
| 项目 | 内容 |
|---|---|
| 接口描述 | 产品列表 |
| 接口地址 | /console/v1/idcsmart_cert/host |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| keywords | string | - | - | 关键字,搜索范围:产品ID,商品名称,标识 |
| status | string | - | - | 状态Unpaid未付款Pending开通中Active已开通Suspended已暂停Deleted已删除Failed开通失败 |
| tab | string | - | - | 状态using使用中expiring即将到期overdue已逾期deleted已删除 |
| page | int | - | - | 页数 |
| limit | int | - | - | 每页条数 |
| orderby | string | - | id,active_time,due_time | 排序 |
| sort | string | - | asc,desc | 升/降序 |
响应参数
| name | type | default | desc |
|---|---|---|---|
| list | array | - | 产品 |
| list[].id | int | - | 产品ID |
| list[].product_id | int | - | 商品ID |
| list[].product_name | string | - | 商品名称 |
| list[].name | string | - | 标识 |
| list[].active_time | int | - | 开通时间 |
| list[].due_time | int | - | 到期时间 |
| list[].first_payment_amount | string | - | 金额 |
| list[].billing_cycle | string | - | 周期 |
| list[].status | string | - | 状态Unpaid未付款Pending开通中Active已开通Suspended已暂停Deleted已删除Failed开通失败 |
| list[].is_auto_renew | int | - | 是否自动续费(0=否,1=是) |
| count | int | - | 产品总数 |
| using_count | int | - | 使用中产品数量 |
| expiring_count | int | - | 即将到期产品数量 |
| overdue_count | int | - | 已逾期产品数量 |
| deleted_count | int | - | 已删除产品数量 |
| all_count | int | - | 全部产品数量 |
前台商品配置信息
| 项目 | 内容 |
|---|---|
| 接口描述 | 前台商品配置信息 |
| 接口地址 | /console/v1/idcsmart_cert/product/:product_id/configoption |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| product_id | int | - | require | 商品ID |
响应参数
| name | type | default | desc |
|---|---|---|---|
| common_product | object | - | 商品基础信息 |
| common_product.name | string | - | 商品名称 |
| common_product.order_page_description | string | - | 订购页面html |
| common_product.allow_qty | string | - | 是否允许选择数量:1是,0否默认 |
| common_product.pay_type | string | - | 付款类型(免费free,一次onetime,周期先付recurring_prepayment,周期后付recurring_postpaid |
| configoptions | object | - | 配置项信息 |
| configoptions.id | int | - | 配置项ID |
| configoptions.option_name | int | - | 配置项名称 |
| configoptions.option_type | int | - | 配置项类型:select下拉单选,multi_select下拉多选,radio点击单选,quantity数量输入,quantity_range数量拖动,yes_no是否,area区域 |
| configoptions.qty_min | int | - | 数量时最小值 |
| configoptions.qty_max | int | - | 数量时最大值 |
| configoptions.unit | int | - | 单位 |
| configoptions.allow_repeat | int | - | 数量类型时:是否允许重复:开启后,前台购买时,可通过点击添加按钮,自动创建一个新的配置项,取名如bw1 |
| configoptions.max_repeat | int | - | 最大允许重复数量 |
| configoptions.description | int | - | 说明 |
| configoptions.subs | array | - | 子项信息 |
| configoptions.subs.id | float | - | 子项ID |
| configoptions.subs.option_name | float | - | 子项名称 |
| configoptions.subs.qty_change | float | - | 数量变化值 |
| configoptions.subs.qty_min | float | - | 子项最小值 |
| configoptions.subs.qty_max | float | - | 子项最大值 |
| cycles | object | - | 周期({"onetime":1.00}) |
| custom_cycles | object | - | 自定义周期 |
| custom_cycles.id | int | - | 自定义周期ID |
| custom_cycles.name | string | - | 自定义周期名称 |
| custom_cycles.cycle_time | int | - | 自定义周期时长 |
| custom_cycles.cycle_unit | string | - | 自定义周期单位 |
| custom_cycles.cycle_amount | int | - | 自定义周期金额 |
前台商品配置信息计算价格
| 项目 | 内容 |
|---|---|
| 接口描述 | 前台商品配置信息计算价格 |
| 接口地址 | /console/v1/idcsmart_cert/product/:product_id/configoption/calculate |
| 请求方式 | POST |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| configoption | object | - | require | 配置信息 |
响应参数
| name | type | default | desc |
|---|---|---|---|
| cycles | object | - | 周期({"onetime":1.00}) |
| custom_cycles | object | - | 自定义周期 |
| custom_cycles.id | int | - | 自定义周期ID |
| custom_cycles.name | string | - | 自定义周期名称 |
| custom_cycles.cycle_time | int | - | 自定义周期时长 |
| custom_cycles.cycle_unit | string | - | 自定义周期单位 |
| custom_cycles.cycle_amount | int | - | 自定义周期金额 |
前台产品内页
| 项目 | 内容 |
|---|---|
| 接口描述 | 前台产品内页 |
| 接口地址 | /console/v1/idcsmart_cert/host/:host_id/configoption |
| 请求方式 | GET |
| 接口版本 | v1 |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| host_id | int | - | require | 产品ID |
响应参数
| name | type | default | desc |
|---|---|---|---|
| host | object | - | 财务信息 |
| host.create_time | int | - | 订购时间 |
| host.due_time | int | - | 到期时间 |
| host.billing_cycle | int | - | 计费方式:计费周期免费free,一次onetime,周期先付recurring_prepayment,周期后付recurring_postpaid |
| host.billing_cycle_name | int | - | 模块计费周期名称 |
| host.billing_cycle_time | int | - | 模块计费周期时间,秒 |
| host.renew_amount | int | - | 续费金额 |
| host.first_payment_amount | int | - | 首付金额 |
| configoptions | object | - | 配置项信息 |
| configoptions.id | int | - | 配置项ID |
| configoptions.option_name | int | - | 配置项名称 |
| configoptions.option_type | int | - | 配置项类型:select下拉单选,multi_select下拉多选,radio点击单选,quantity数量输入,quantity_range数量拖动,yes_no是否,area区域 |
| configoptions.unit | int | - | 单位 |
| configoptions.subs | array | - | - |
| configoptions.subs.option_name | string | - | 子项名称 |
| configoptions.qty | int | - | 数量(当类型为数量时,显示此值) |
实名日志
| 项目 | 内容 |
|---|---|
| 接口描述 | 实名日志 |
| 接口地址 | /console/v1/idcsmart_cert/host/:host_id/log |
| 请求方式 | POST |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| host_id | int | - | require | 产品ID |
| page | int | - | - | 页数 |
| limit | int | - | - | 每页条数 |
响应参数
无
实名信息
| 项目 | 内容 |
|---|---|
| 接口描述 | 实名信息 |
| 接口地址 | /console/v1/idcsmart_cert/host/:host_id/info |
| 请求方式 | GET |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| host_id | int | - | require | 产品ID |
响应参数
无
重置密钥
| 项目 | 内容 |
|---|---|
| 接口描述 | 重置密钥 |
| 接口地址 | /console/v1/idcsmart_cert/host/:host_id/reset_pass |
| 请求方式 | POST |
请求参数
| name | type | default | validate | desc |
|---|---|---|---|---|
| host_id | int | - | require | 产品ID |
| key | string | - | require | 密钥 |
响应参数
无