SmartProxy OpenAPI DocSmartProxy OpenAPI Doc
  • English
  • zh-CN
  • English
  • zh-CN
  • Authentication Method
  • Response Format
  • Proxy Account
  • Traffic Log
  • Product Query
  • IP Extract
  • Order Management
  • User Management
  • Payment Management
  • Marketing/Activity

SmartProxy.org

app_key 认证密钥请登录后在个人中心首页查看。

请安全保存密钥,密钥拥有您的账户管理员权限。

认证方式

App Key 认证

POST 参数:

app_key: {your_app_key}

或作为查询参数:

?app_key={your_app_key}

响应格式

所有接口返回统一的 JSON 格式:

{
	"code": 200,
	"message": "操作成功",
	"data": {}
}
  • code: 状态码,200 表示成功,其他值表示失败
  • message: 响应消息(中文)
  • data: 响应数据

Base URLs:

  • https://api.smartproxy.org: https://api.smartproxy.org

Authentication

  • HTTP Authentication, scheme: bearer
  • API Key (apiKeyAuth)
    • Parameter Name: app_key, in: query. 支持GET/POST,name 支持

代理账户管理

GET 代理账户列表

GET /pub/whitelist-account/list

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"id": 0,
				"username": "string",
				"password": "string",
				"created_at": "string",
				"remark": "string",
				"product_type": 9,
				"usage_flow": 0,
				"limit_flow": 102400,
				"status": 0
			}
		]
	}
}

返回结果

状态码状态码含义说明数据模型
200OK请求成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» coderesponseCodefalsenone状态码,200 成功、3 app_key 无效
» msgstringfalsenone状态消息
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» idintegerfalsenone账户编号
»»» usernamestringfalsenone代理账户名
»»» passwordstringfalsenone代理账户密码
»»» created_atstringfalsenone添加时间
»»» remarkstringfalsenone备注
»»» product_typeproductTypesfalsenone套餐类型,9 动态住宅流量套餐、11 动态住宅IP、14静态数据中心IP、25 静态住宅IP
»»» usage_flowintegerfalsenone已使用流量,单位:KB
»»» limit_flowintegerfalsenone自定义流量上限:单位GB最大102400,0 不限制
»»» statusintegerfalsenone启用状态:1启用,0停用

枚举值

属性值
product_type9
product_type11
product_type14
product_type25

POST 添加代理账户。

POST /pub/whitelist-account/add

Body 请求参数

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01:pass,user02:pass,user03:pass",
	"remark": "",
	"product_type": 9
}

请求参数

名称位置类型必选说明
bodybodyobject否none
» app_keybodystring否授权密钥
» accountsbodystring否账户密码,请按格式 username:password 填写,账户和密码仅支持数字和字母,禁止输入任何特殊符号或空格,冒号隔开账户和密码。支持批量添加,英文逗号(,)分隔代理账户。
» remarkbodystring否代理账户描述
» product_typebodyproductTypes否套餐类型,9 动态住宅流量套餐、11 动态住宅IP、14静态数据中心IP、25 静态住宅IP

枚举值

属性值
» product_type9
» product_type11
» product_type14
» product_type25

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

返回结果

状态码状态码含义说明数据模型
200OK请求成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» datanullfalsenonenone

POST 删除代理账户

POST /pub/whitelist-account/delete

请注意删除后无法恢复,已使用流量等无法查询。删除约有5分钟等待时间,在此期间仍可能产生费用。

Body 请求参数

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01,user02"
}

请求参数

名称位置类型必选说明
bodybodyobject否none
» app_keybodystring否授权密钥
» accountsbodystring否代理账户,仅支持数字和字母。支持批量操作,英文逗号(,)分隔代理账户

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» datanullfalsenonenone

POST 禁用代理账户

POST /pub/whitelist-account/disable

禁用约有5分钟等待时间,在此期间仍可能产生费用。

Body 请求参数

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01,user02"
}

请求参数

名称位置类型必选说明
bodybodyobject否none
» app_keybodystring否授权密钥
» accountsbodystring否代理账户,仅支持数字和字母。支持批量操作,英文逗号(,)分隔代理账户

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» datanullfalsenonenone

POST 启用代理账户

POST /pub/whitelist-account/enable

Body 请求参数

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01,user02"
}

请求参数

名称位置类型必选说明
bodybodyobject否none
» app_keybodystring否授权密钥
» accountsbodystring否代理账户,仅支持数字和字母。支持批量操作,英文逗号(,)分隔代理账户

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» datanullfalsenonenone

POST 修改代理账户密码

POST /pub/whitelist-account/change-password

请注意修改后有5分钟等待时间,在此期间旧密码仍可能正常使用。

Body 请求参数

{
	"app_key": "stringstringstringstringstringst",
	"account": "user",
	"password": "pass"
}

请求参数

名称位置类型必选说明
bodybodyobject否none
» app_keybodystring否授权密钥
» accountbodystring否代理账户,仅支持数字和字母。
» passwordbodystring否代理账户新密码,仅支持数字和字母。

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» datanullfalsenonenone

POST 修改代理账户备注

POST /pub/whitelist-account/change-remark

Body 请求参数

{
	"app_key": "stringstringstringstringstringst",
	"account": "user",
	"remark": ""
}

请求参数

名称位置类型必选说明
bodybodyobject否none
» app_keybodystring否授权密钥
» accountbodystring否代理账户,仅支持数字和字母。
» remarkbodystring否代理账户新备注,32个中文或64个英文以内。

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» datanullfalsenonenone

POST 修改代理账户流量上限

POST /pub/whitelist-account/change-limit

请注意流量统计可能有5分钟以内延迟,即实际消耗流量可能超过此限制。

Body 请求参数

{
	"app_key": "stringstringstringstringstringst",
	"account": "user",
	"limit": 0
}

请求参数

名称位置类型必选说明
bodybodyobject否none
» app_keybodystring否授权密钥
» accountbodystring否代理账户,仅支持数字和字母。
» limitbodyinteger否流量限制,单位:GB,0为不设上限

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» datanullfalsenonenone

流量日志查询

GET 使用流量按天汇总

GET /pub/user-usage-flow/total

请求参数

名称位置类型必选说明
app_keyquerystring(password)是认证密钥
start_timequerystring(Y-m-d H:i:s)否起始时间,可精确到秒。请注意,日志记录有5分钟以内延迟。默认7天以内。
end_timequerystring(Y-m-d H:i:s)否截止时间,可精确到秒。请注意,日志记录有5分钟以内延迟。默认当前时间。
usernamequerystring否子账户名称,默认查询所有账户,可指定子账户。请注意如果您添加了相同名称的子账户,此查询将返回同名代理账户的所有使用记录。
product_typequerynumber否套餐类型

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"day": "2022-08-01",
				"flow": 0
			}
		]
	}
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» daystringfalsenone日期
»»» flowintegerfalsenone消耗流量,单位KB

套餐查询

GET 已购套餐列表

GET /pub/user-product/list

请求参数

名称位置类型必选说明
app_keyquerystring(password)是认证密钥
trade_noquerystring否订单号,请输入完整订单号。不支持模糊搜索。
pagequerynumber否分页,默认:1
sizequerynumber否分页显示数量,默认:20
product_typequerynumber否套餐类型

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"id": 0,
				"created_at": "2022-05-13 12:14:15",
				"expired_at": "2022-05-13 12:14:15",
				"product_type": 9,
				"trade_no": "2022051312134339861461465434",
				"order": {
					"created_at": "2022-05-13 12:13:43",
					"pay_at": "2022-05-13 12:13:43",
					"title": "入门级"
				}
			}
		],
		"page": 1,
		"page_size": 20,
		"total_count": 0,
		"total_page": 0
	}
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» idintegerfalsenone套餐编号
»»» created_atstringfalsenone套餐生效时间
»»» expired_atstringfalsenone套餐过期时间,过期后流量无法使用。
»»» product_typeproductTypesfalsenone套餐类型,9 动态住宅流量套餐、11 动态住宅IP、14静态数据中心IP、25 静态住宅IP
»»» trade_nostringfalsenone订单交易号
»»» orderobjectfalsenonenone
»»»» created_atstringfalsenone订单创建时间
»»»» pay_atstringfalsenone订单支付时间
»»»» titlestringfalsenone订单描述
»» pageintegerfalsenone当前分页
»» page_sizeintegerfalsenone分页大小
»» total_countintegerfalsenone总记录数量
»» total_pageintegerfalsenone总分页数量

枚举值

属性值
product_type9
product_type11
product_type14
product_type25

IP提取

GET 提取IP

GET /pub/ip/v3

请求参数

名称位置类型必选说明
app_keyquerystring(password)是访问密钥
ccquerystring否国家或地区
statequerystring否省或州
cityquerystring否城市
formatquerystring否获取格式
lbquerystring否间隔符,仅text格式有效
numquerynumber否提取数量
lifequerynumber否保持周期-分钟
epquerystring否代理网络

枚举值

属性值
epus
ephk
epde

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			[
				"150.109.114.72:1140",
				"150.109.114.72:1141",
				"150.109.114.72:1142",
				"150.109.114.72:1143",
				"150.109.114.72:1144",
				"150.109.114.72:1145",
				"150.109.114.72:1146",
				"150.109.114.72:1147",
				"150.109.114.72:1148",
				"150.109.114.72:1149"
			]
		]
	}
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» dataobjectfalsenonenone
»» list[any]falsenonenone

GET 城市列表

GET /pub/ip/dynamic-citys

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"name_zh_cn": "美国",
				"name_en": "United States",
				"continent_code": "NA",
				"country_code": "US",
				"items": [
					{
						"city": null,
						"state": null,
						"continent_code": null,
						"country_code": null
					}
				]
			}
		]
	}
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» dataobjectfalsenonenone
»» list[object]falsenone列表
»»» name_zh_cnstringfalsenone国家或地区名称
»»» name_enstringfalsenone国家或地区名称
»»» continent_codestringfalsenone大洲代码
»»» country_codestringfalsenone国家或地区代码
»»» items[object]falsenone省或州
»»»» citystringfalsenone城市名称
»»»» statestringfalsenone省或州名称代码
»»»» continent_codestringfalsenone大洲代码
»»»» country_codestringfalsenone国家或地区代码

GET 城市搜索

GET /pub/ip/dynamic-citys/search

请求参数

名称位置类型必选说明
country_codequerystring是国家或地区代码
statequerystring是州或省代码

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": ["string"]
	}
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» dataobjectfalsenonenone
»» list[string]falsenone列表

GET 州列表

GET /pub/ip/dynamic-states

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"name_zh_cn": "美国",
				"name_en": "United States",
				"continent_code": "NA",
				"country_code": "US",
				"items": [
					{
						"state": null,
						"continent_code": null,
						"country_code": null
					}
				]
			}
		]
	}
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» dataobjectfalsenonenone
»» list[object]falsenone列表
»»» name_zh_cnstringfalsenone国家或地区名称
»»» name_enstringfalsenone国家或地区名称
»»» continent_codestringfalsenone大洲代码
»»» country_codestringfalsenone国家或地区代码
»»» items[object]falsenone省或州
»»»» statestringfalsenone省或州名称代码
»»»» continent_codestringfalsenone大洲代码
»»»» country_codestringfalsenone国家或地区代码

GET 州/省搜索

GET /pub/ip/dynamic-states/search

请求参数

名称位置类型必选说明
country_codequerystring是国家或地区代码

返回示例

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": ["string"]
	}
}

返回结果

状态码状态码含义说明数据模型
200OK请求成Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功、3 app_key 无效、156 账户未实名认证
» msgstringfalsenone状态消息
» dataobjectfalsenonenone
»» list[string]falsenone列表

GET 提取已购买静态IP列表

GET /pub/ip/get-static-ip

请求参数

名称位置类型必选说明
country_codequerystring否国家或地区代码
product_typequerynumber否产品类型, 25:静态住宅IP, 14: 数据中心IP
trade_noquerystring否通过订单号筛选IP
pagequerynumber否页码
sizequerynumber否每页数量
statusquerynumber否状态, 1:有效, 2:无效, 3:即将过期, 4:维护中

枚举值

属性值
product_type14
product_type25
status1
status2
status3
status4

返回示例

200 Response

{}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

GET 获取在售地区静态IP数量

GET /pub/static-ip-region

请求参数

名称位置类型必选说明
ispquerystring否IP类型

详细说明

isp: IP类型

IP类型描述
1家庭住宅静态IP
0数据中心静态IP

返回示例

200 Response

{
	"code": 200,
	"msg": "请求成功",
	"data": {
		"list": [
			{
				"code": "US",
				"number": 55
			}
		]
	}
}

返回结果

状态码状态码含义说明数据模型
200OK请求成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegerfalsenone状态码,200 成功
» msgstringfalsenone状态消息
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» codestringfalsenone国家或地区代码
»»» numberintegerfalsenone数量

订单管理

GET 订单列表

GET /pub/order/list

请求参数

名称位置类型必选说明
page_noqueryinteger否none
page_sizequeryinteger否none
trade_noquerystring否订单编号
statusqueryinteger否订单状态
product_typequeryinteger否产品类型

详细说明

status: 订单状态

状态描述
0待支付
1已支付
2超时未支付已取消
3已退款

product_type: 产品类型 | 产品类型 | 描述 | |---|---| |3|余额充值| |9|动态流量套餐| |11|动态全球包时套餐V2| |12|长效IDC流量套餐| |13|住宅静态IP流量套餐| |14|数据中心静态IP套餐| |15|长效ISP流量套餐| |16|静态流量套餐| |17|动态IP数量套餐| |18|web-scraper| |19|静态IP续费| |20|静态IP更换配额| |21|静态流量套餐v2| |24|静态流量附加包套餐| |25|住宅静态IP套餐| |26|补单 - 部分支付渠道需要用户手动填写金额,如:虚拟币,若发生短款,需要联系客服通过此种产品进行补支付| |27|Serp| |28|Video|

枚举值

属性值
status0
status1
status2
status3
product_type3
product_type9
product_type11
product_type12
product_type14
product_type16
product_type17
product_type18
product_type19
product_type21
product_type24
product_type25
product_type26
product_type27
product_type28

返回示例

200 Response

{
	"code": 0,
	"message": "操作成功",
	"data": {
		"list": [
			{
				"id": 0,
				"trade_no": "string",
				"product_id": 0,
				"product_name": "string",
				"total_fee": 0.1,
				"pay_fee": 0.1,
				"status": 0,
				"created_at": "2019-08-24T14:15:22Z"
			}
		],
		"pagination": {
			"total": 0,
			"page_no": 0,
			"page_size": 0,
			"total_pages": 0
		}
	}
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

POST 创建订单

POST /pub/order/create

因套餐种类较多,且每种套餐存在不同的配置,请根据实际情况填写参数。不正当填写参数可能导致订单创建失败。

examples:

续费静态IP

{
	"pid": x, // 联系客服获取
	"upids": "1,2,3,4,5,6", // 从 /pub/ip/get-static-ip 获取对应的ID
	"pm_id": 1 // 从 /pub/payment/list 获取
	"coupon_sn: "xxx", // 可选 优惠券
  }

Body 请求参数

{
	"pid": 0,
	"upids": "string",
	"amount": 0,
	"pm_id": 0,
	"region_list": "string",
	"coupon_sn": "string",
	"use_invitation_registration_discount": true,
	"renew_duration": 0,
	"product_sku_bandwidth_id": 0,
	"product_sku_concurrency_id": 0,
	"recharge_amount": 0
}

请求参数

名称位置类型必选说明
bodybodyobject是none
» pidbodyinteger是套餐ID
» upidsbodystring否续费套餐ID列表
» amountbodynumber否新购套餐数量
» pm_idbodyinteger是支付方式ID
» region_listbodystring否购买静态IP时指定区域+数量
» coupon_snbodystring否优惠券编号
» use_invitation_registration_discountbodyboolean否是否使用邀请注册优惠
» renew_durationbodyinteger否续费时长-静态IP可选
» product_sku_bandwidth_idbodyinteger否套餐11:带宽套餐ID
» product_sku_concurrency_idbodyinteger否套餐11:并发套餐ID
» recharge_amountbodyinteger否套餐3:充值金额

返回示例

200 Response

{
	"code": 0,
	"message": "操作成功",
	"data": {
		"id": 0,
		"trade_no": "string",
		"product_id": 0,
		"product_name": "string",
		"total_fee": 0.1,
		"pay_fee": 0.1,
		"status": 0,
		"created_at": "2019-08-24T14:15:22Z"
	}
}

返回结果

状态码状态码含义说明数据模型
200OK创建成功Inline

返回数据结构

POST 取消订单

POST /pub/order/close

Body 请求参数

{
	"trade_no": "string"
}

请求参数

名称位置类型必选说明
bodybodyobject是none
» trade_nobodystring是none

返回示例

200 Response

{
	"code": 0,
	"message": "操作成功",
	"data": {}
}

返回结果

状态码状态码含义说明数据模型
200OK操作成功SuccessResponse

用户管理

GET 获取用户信息 - 暂未开放

GET /pub/user/info

返回示例

200 Response

{
	"code": 0,
	"message": "操作成功",
	"data": {
		"id": 0,
		"email": "[email protected]",
		"phone": "string",
		"balance": 0.1,
		"status": 0,
		"is_real_name": true,
		"created_at": "2019-08-24T14:15:22Z"
	}
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

Response Data Structure

Payment Management

GET Get Payment Method List

GET /pub/payment/groups

Request Parameters

NameLocationTypeRequiredDescription
trade_noquerystringNoOrder number - can be passed when specific payment methods need to be obtained for certain orders

Response Example

200 Response

{
	"code": 0,
	"message": "Operation successful",
	"data": {
		"list": [
			{
				"name": "string",
				"logos": [null],
				"items": [null]
			}
		]
	}
}

Response Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRetrieved successfullyInline

Response Data Structure

Marketing

GET Recharge Gift Ratio

GET /pub/activity/balance-recharge-gift-ratio

Get recharge gift ratio

Response Example

200 Response

{
	"code": 0,
	"message": "Operation successful",
	"data": {
		"list": [null]
	}
}

Response Result

Status CodeStatus Code MeaningDescriptionData Model
200OKOKInline

Response Data Structure

Data Models

productTypes

9

Package type: 9 Dynamic Residential Traffic Package, 11 Dynamic Residential IP, 14 Static Datacenter IP, 25 Static Residential IP

Properties

NameTypeRequiredConstraintChinese NameDescription
anonymousintegerfalsenonePackage type: 9 Dynamic Residential Traffic Package, 11 Dynamic Residential IP, 14 Static Datacenter IP, 25 Static Residential IP

Enumeration Values

PropertyValue
anonymous9
anonymous11
anonymous14
anonymous25

apiKey

null

认证密钥

属性

None

responseCode

200

状态码,200 成功、3 app_key 无效

属性

名称类型必选约束中文名说明
anonymousintegerfalsenone状态码,200 成功、3 app_key 无效

responseMsg

"success"

response message

属性

名称类型必选约束中文名说明
anonymousstringfalsenoneresponse message

SuccessResponse

{
	"code": 0,
	"message": "操作成功",
	"data": {}
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
messagestringfalsenonenone
dataobjectfalsenonenone

ErrorResponse

{
	"code": 400,
	"message": "参数错误",
	"errors": {}
}

属性

名称类型必选约束中文名说明
codeintegerfalsenonenone
messagestringfalsenonenone
errorsobjectfalsenonenone

User

{
	"id": 0,
	"email": "[email protected]",
	"phone": "string",
	"balance": 0.1,
	"status": 0,
	"is_real_name": true,
	"created_at": "2019-08-24T14:15:22Z"
}

属性

名称类型必选约束中文名说明
idintegerfalsenonenone
emailstring(email)falsenonenone
phonestringfalsenonenone
balancenumber(float)falsenonenone
statusintegerfalsenonenone
is_real_namebooleanfalsenonenone
created_atstring(date-time)falsenonenone

Order

{
	"id": 0,
	"trade_no": "string",
	"product_id": 0,
	"product_name": "string",
	"total_fee": 0.1,
	"pay_fee": 0.1,
	"status": 0,
	"created_at": "2019-08-24T14:15:22Z"
}

属性

名称类型必选约束中文名说明
idintegerfalsenonenone
trade_nostringfalsenonenone
product_idintegerfalsenonenone
product_namestringfalsenonenone
total_feenumber(float)falsenonenone
pay_feenumber(float)falsenonenone
statusintegerfalsenonenone
created_atstring(date-time)falsenonenone

Product

{
	"id": 0,
	"name": "string",
	"type": 0,
	"price": 0.1,
	"description": "string"
}

属性

名称类型必选约束中文名说明
idintegerfalsenonenone
namestringfalsenonenone
typeintegerfalsenonenone
pricenumber(float)falsenonenone
descriptionstringfalsenonenone

WhiteIp

{
	"id": 0,
	"ip": "string",
	"remark": "string",
	"created_at": "2019-08-24T14:15:22Z"
}

属性

名称类型必选约束中文名说明
idintegerfalsenonenone
ipstringfalsenonenone
remarkstringfalsenonenone
created_atstring(date-time)falsenonenone

WhitelistAccount

{
	"id": 0,
	"username": "string",
	"limit": 0,
	"used": 0,
	"status": 0
}

属性

名称类型必选约束中文名说明
idintegerfalsenonenone
usernamestringfalsenonenone
limitintegerfalsenonenone
usedintegerfalsenonenone
statusintegerfalsenonenone

Coupon

{
	"id": 0,
	"name": "string",
	"code": "string",
	"discount": 0.1,
	"expire_time": "2019-08-24T14:15:22Z"
}

属性

名称类型必选约束中文名说明
idintegerfalsenonenone
namestringfalsenonenone
codestringfalsenonenone
discountnumber(float)falsenonenone
expire_timestring(date-time)falsenonenone

Article

{
	"id": 0,
	"title": "string",
	"content": "string",
	"created_at": "2019-08-24T14:15:22Z"
}

属性

名称类型必选约束中文名说明
idintegerfalsenonenone
titlestringfalsenonenone
contentstringfalsenonenone
created_atstring(date-time)falsenonenone

Pagination

{
	"total": 0,
	"page_no": 0,
	"page_size": 0,
	"total_pages": 0
}

属性

名称类型必选约束中文名说明
totalintegerfalsenonenone
page_nointegerfalsenonenone
page_sizeintegerfalsenonenone
total_pagesintegerfalsenonenone