OpenAPIOpenAPI
  • English
  • 繁體中文
  • Indonesia
  • हिंदी
  • Русский
  • Tiếng Việt
  • German
  • português
  • English
  • 繁體中文
  • Indonesia
  • हिंदी
  • Русский
  • Tiếng Việt
  • German
  • português
  • 911Proxy OpenAPI

911Proxy OpenAPI

app_key 認證金鑰請登入後在個人中心首頁查看。

請安全保存金鑰,金鑰擁有您的帳戶管理員權限。

Base URLs:

https://api.911proxy.com

認證方式

App Key 認證

POST 參數:

app_key: {your_app_key}

或作為查詢參數:

?app_key={your_app_key}

響應格式

所有介面返回統一的 JSON 格式:

{
	"code": 200,
	"message": "操作成功",
	"data": {}
}
  • code: 狀態碼,200 表示成功,其他值表示失敗
  • message: 響應訊息(中文)
  • data: 響應資料

Authentication

本介面支援以下兩種鑑權方式:

1. Bearer Token(JWT)

透過 HTTP Header 傳遞 Token。

Header 範例:

Authorization: Bearer <your_jwt_token>

API Key 鑑權

本介面採用 API Key 方式進行身份驗證。

客戶端需要在請求中攜帶 app_key 參數,否則請求將被拒絕。

範例:

GET /api/example?app_key=your_app_key

POST /api/example?app_key=your_app_key
Content-Type: application/json

代理帳戶管理

GET 代理帳戶清單

GET /api-gate-way/whitelist-account/list

返回範例

成功響應(200)

{
	"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 /api-gate-way/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 /api-gate-way/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 /api-gate-way/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 /api-gate-way/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 /api-gate-way/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 /api-gate-way/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 /api-gate-way/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 /api-gate-way/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 /api-gate-way/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

GET 用戶套餐數據匯總

GET /api-gate-way/user-product/summary

獲取用戶套餐的統計匯總信息,包括總量、有效量、臨期量、過期量等

請求參數

參數名類型必填說明
app_keystring(password)是認證金鑰
product_typeinteger否產品類型,僅支援:9(動態流量套餐)、12(長效IDC流量套餐)

回傳結果

{
	"code": 200,
	"msg": "成功",
	"data": {
		"total": 1048576,
		"total_count": 5,
		"effective": 524288,
		"effective_count": 3,
		"effective_total": 786432,
		"effective_used": 262144,
		"temporary": 102400,
		"temporary_count": 1,
		"expired": 51200,
		"expired_count": 1,
		"used": 473088
	}
}

傳回資料結構

狀態碼 200

欄位類型說明
totalinteger流量/IP 總量(單位:KB)
total_countinteger套餐總個數
effectiveinteger有效剩餘量(單位:KB)
effective_countinteger有效套餐數
effective_totalinteger有效總量(單位:KB)
effective_usedinteger有效已使用量(單位:KB)
temporaryinteger臨期總量(7 天內到期,單位:KB)
temporary_countinteger臨期套餐個數(7 天內到期)
expiredinteger過期剩餘量(單位:KB)
expired_countinteger過期套餐數
usedinteger已使用總量(單位:KB)

IP 提取

GET 提取 IP

GET /api-gate-way/ip/v3

請求參數

名稱位置類型必選說明
app_keyquerystring(password)否存取金鑰
ccquerystring否國家或地區
statequerystring否省或州
cityquerystring否城市
formatquerystring否獲取格式
lbquerystring否間隔符,僅 text 格式有效
numquerynumber否提取數量
lifequerynumber否保持週期-分鐘
epquerystring否代理網路

返回範例

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 /api-gate-way/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 /api-gate-way/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 /api-gate-way/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 /api-gate-way/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 /api-gate-way/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 /api-gate-way/static-ip-region

請求參數

名稱位置類型必選說明
ispquerystring否IP類型

IP類型說明

IP類型描述
1家庭住宅靜態IP
0資料中心靜態IP

返回範例

200 Response

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

返回結果

狀態碼狀態碼含義說明資料模型
200OKnoneInline

返回資料結構

狀態碼 200

名稱類型必選約束中文名說明
» codeintegerfalsenone狀態碼,200 成功
» msgstringfalsenone狀態訊息
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» codestringfalsenone國家或地區代碼
»»» numberintegerfalsenone數量

訂單管理

GET 訂單清單

GET /api-gate-way/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數量套餐
18web-scraper
19靜態IP續費
20靜態IP更換配額
21靜態流量套餐v2
24靜態流量附加包套餐
25住宅靜態IP套餐
26補單 - 部分支付管道需要使用者手動填寫金額,如:虛擬幣,若發生短款,需要聯絡客服透過此種產品進行補支付
27Serp
28Video

列舉值

屬性值
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 /api-gate-way/order/create

因套餐種類較多,且每種套餐存在不同的設定,請根據實際情況填寫參數。不正當填寫參數可能導致訂單建立失敗。

examples:

續費靜態IP

{
	"pid": x, // 聯絡客服取得
	"upids": "1,2,3,4,5,6", // 從 /api-gate-way/ip/get-static-ip 取得對應的ID
	"pm_id": 1 // 從 /api-gate-way/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 /api-gate-way/order/close

Body 請求參數

{
	"trade_no": "string"
}

請求參數

名稱位置類型必選說明
bodybodyobject是none
» trade_nobodystring是none

返回結果

狀態碼狀態碼含義說明資料模型
200OK操作成功None

使用者管理

GET 取得使用者資訊 - 暫未開放

GET /api-gate-way/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

返回資料結構

支付管理

GET 取得支付方式清單

GET /api-gate-way/payment/groups

請求參數

名稱位置類型必選說明
trade_noquerystring否訂單號 - 部分訂單需要取得特定支付方式時可傳入

返回範例

200 Response

{
	"code": 0,
	"message": "操作成功",
	"data": {
		"list": [
			{
				"name": "支付方式分组",
				"logos": ["https://example.com/logo1.png", "https://example.com/logo2.png"],
				"items": [
					{
						"id": 1,
						"title": "title1",
						"logo": "https://example.com/logo1.png",
						"group": "online",
						"disabled": false,
						"min": 10,
						"max": 5000
					}
				]
			}
		]
	}
}

返回結果

狀態碼狀態碼含義說明資料模型
200OK取得成功Inline

返回資料結構

名稱類型必選約束中文名說明
» codeintegerfalsenone狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證
» msgstringfalsenone狀態訊息
» dataobjectfalsenonenone
»» namestringfalsenone分組名稱
»» logosstring[]falsenone分組圖示清單
»» itemsobject[]falsenone分組內項目清單
»»» idintegerfalsenone支付方式 ID
»»» titlestringfalsenone支付方式名稱
»»» logostringfalsenone支付方式 Logo
»»» groupstringfalsenone支付方式分組標識
»»» disabledbooleanfalsenone是否停用(預設 false)
»»» minnumberfalsenone最小金額
»»» maxnumberfalsenone最大金額

行銷

GET 儲值贈金比例

GET /api-gate-way/activity/balance-recharge-gift-ratio

儲值贈金比例

返回範例

200 Response

{
	"code": 0,
	"msg": "操作成功",
	"data": {
		"list": [
			{
				"amount": 100,
				"ratio": 1.2
			}
		]
	}
}

返回結果

狀態碼狀態碼含義說明資料模型
200OKOKInline

返回資料結構

名稱類型必選約束中文名說明
» codeintegerfalsenone狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證
» msgstringfalsenone狀態訊息
» dataobjectfalsenonenone
» list[object]falsenonenone
»» amountintegerfalsenone儲值金額
»» rationumberfalsenone儲值比例

資料結構說明(Schemas)

productTypes(套餐類型)

欄位類型說明
product_typeinteger套餐類型

可選值說明:

值含義
9動態住宅流量套餐
11動態住宅 IP
14靜態資料中心 IP
25靜態住宅 IP

API Key(認證金鑰)

用於介面身份認證,請透過 Query 參數傳遞。

參數名位置類型必填說明
app_keyquerystring是認證金鑰

通用響應欄位

responseCode

欄位類型範例說明
codeinteger200狀態碼(200 成功,3 表示 app_key 無效)

responseMsg

欄位類型範例說明
messagestringsuccess響應資訊

成功響應(SuccessResponse)

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

錯誤響應(ErrorResponse)

{
	"code": 400,
	"message": "參數錯誤",
	"errors": {}
}

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