911Proxy OpenAPI
支援透過網站 OpenAPI 前綴管理個人帳戶、代理資源和團隊帳單。
認證方式以各操作的 security 定義為準:
- apiKeyAuth:透過查詢參數 app_key 傳入個人或團隊 API Key;後端也相容於 key、appkey、openid 參數及 POST 請求體傳參。
- bearerAuth:Authorization: Bearer <JWT>,用於網頁登入令牌。請勿把 API Key 當作 JWT。
- 團隊 API Key 綁定固定團隊;支援團隊空間的介面可省略 team_id,明確傳入必須與 Key 綁定團隊一致。
- 僅支援個人空間的介面會拒絕團隊 API Key;團隊操作仍遵循持有成員的資源權限。
JSON 回應包含 code、msg、data、request_id。 code=200 表示業務成功;HTTP 200 也可能攜帶業務錯誤碼。 msg 隨請求語言變化,客戶端應使用 code 判斷結果。部分匯出介面另支援文字、CSV 或 XML,詳見操作定義。 金額、流量、日期及分頁欄位以各介面 Schema 為準。
基礎 URL:
驗證
- HTTP 驗證,方案:bearer
- API Key(apiKeyAuth)
- 參數名稱: app_key, in: query. 個人或團隊 API Key。建議查詢參數 app_key;也相容於 key/appkey/openid 及 POST 請求體。團隊 Key 只能存取綁定團隊的受支援介面。
代理帳戶管理
代理帳戶列表 (GET /api-gate-way/whitelist-account/list)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/whitelist-account/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/whitelist-account/list
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串;團隊 Key 可省略,傳入時必須與 Key 一致 |
回應範例
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
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | responseCode | false | 無 | 狀態碼,200 成功、3 app_key 無效 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | none |
| »»» id | integer | false | 無 | 帳戶編號 |
| »»» username | string | false | 無 | 代理帳戶名 |
| »»» password | string | false | 無 | 代理帳戶密碼 |
| »»» created_at | string | false | 無 | 添加時間 |
| »»» remark | string | false | 無 | 備註 |
| »»» product_type | productTypes | false | 無 | 套餐類型,9 動態住宅流量套餐、11 動態住宅IP、14靜態資料中心IP、25 靜態住宅IP |
| »»» usage_flow | integer | false | 無 | 已使用流量,單位:KB |
| »»» limit_flow | integer | false | 無 | 自訂流量上限:單位GB最大102400,0 不限制 |
| »»» status | integer | false | 無 | 啟用狀態:1啟用,0停用 |
列舉值
| 屬性 | 值 |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 14 |
| product_type | 25 |
檢測代理帳戶可設定的流量限制
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/check \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/check
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"account": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » account | body | string | false | 編輯已有代理帳戶時傳入帳號名稱 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"isAgent": 0,
"trendMax": 0,
"staticMax": 0,
"maxLimit": 0,
"minLimit": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| isAgent | 0 |
| isAgent | 1 |
取得動態代理子帳號配額與已使用數量
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/whitelist-account/child-account \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/whitelist-account/child-account
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"totalChildAccount": 0,
"usedChildAccount": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
新增代理帳戶。 (POST /api-gate-way/whitelist-account/add)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/add \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/add
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01:pass,user02:pass,user03:pass",
"remark": "",
"product_type": 9
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » accounts | body | string | true | 帳號密碼,請按格式 username:password 填寫,帳號和密碼僅支援數字和字母,禁止輸入任何特殊符號或空格,冒號隔開帳號和密碼。支援批量添加,英文逗號(,)分隔代理帳戶。 |
| » remark | body | string | false | 代理帳戶描述 |
| » product_type | body | productTypes | false | 套餐類型,9 動態住宅流量套餐、11 動態住宅IP、14靜態資料中心IP、25 靜態住宅IP |
列舉值
| Parameter | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 14 |
| » product_type | 25 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
刪除代理帳戶 (POST /api-gate-way/whitelist-account/delete)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/delete
請注意刪除後無法恢復,已使用流量等無法查詢。刪除約5分鐘等待時間,期間仍可能產生費用。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » accounts | body | string | true | 代理帳戶,僅支援數字和字母。支援批次操作,英文逗號(,)分隔代理帳戶 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
停用代理帳戶 (POST /api-gate-way/whitelist-account/disable)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/disable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/disable
禁用約5分鐘等待時間,在此期間仍可能產生費用。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » accounts | body | string | true | 代理帳戶,僅支援數字和字母。支援批次操作,英文逗號(,)分隔代理帳戶 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
啟用代理帳戶 (POST /api-gate-way/whitelist-account/enable)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/enable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/enable
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » accounts | body | string | true | 代理帳戶,僅支援數字和字母。支援批次操作,英文逗號(,)分隔代理帳戶 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
修改代理帳戶密碼
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/change-password \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/change-password
請注意修改後有5分鐘等待時間,在此期間舊密碼仍可能正常使用。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"account": "user",
"password": "pass"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » account | body | string | true | 代理帳戶,僅支援數字和字母。 |
| » password | body | string | true | 代理帳戶新密碼,僅支援數字和字母。 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
修改代理帳戶備註
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/change-remark \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/change-remark
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"account": "user",
"remark": ""
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » account | body | string | true | 代理帳戶,僅支援數字和字母。 |
| » remark | body | string | true | 代理帳戶新備註,32個中文或64個英文以內。 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
修改代理帳戶流量上限
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/change-limit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/change-limit
請注意流量統計可能有5分鐘以內延遲,即實際消耗流量可能超過此限制。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"account": "user",
"limit": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » account | body | string | true | 代理帳戶,僅支援數字和字母。 |
| » limit | body | integer | false | 流量限制,單位:GB,0為不設上限 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
快速建立代理帳戶
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/quick-add \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/quick-add
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"product_type": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » product_type | body | integer | true | 無 |
回應範例
200 回應
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"username": "string",
"password": "string"
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 業務成功時返回新帳戶和密碼 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | none |
| » msg | string | false | 無 | none |
| » request_id | string | false | 無 | none |
| » data | any | false | 無 | none |
oneOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| »» anonymous | object | false | 無 | none |
| »»» username | string | true | 無 | none |
| »»» password | string | true | 無 | none |
xor
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| »» anonymous | null | false | 無 | none |
修改代理帳戶每日流量上限
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/change-daily-limit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/change-daily-limit
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"account": "string",
"daily_limit": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » account | body | string | true | 無 |
| » daily_limit | body | integer | false | 單位 GB |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
修改代理帳號資訊 (POST /api-gate-way/whitelist-account/change)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/change \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/change
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"account": "string",
"password": "string",
"remark": "string",
"limit": 0,
"daily_limit": 0,
"status": 0,
"udp": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » account | body | string | true | 無 |
| » password | body | string | false | 無 |
| » remark | body | string | false | 無 |
| » limit | body | integer | false | 總流量上限,單位 GB |
| » daily_limit | body | integer | false | 每日流量上限,單位 GB |
| » status | body | integer | false | 無 |
| » udp | body | integer | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
| » udp | 0 |
| » udp | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
重新整理目前資源空間的代理帳戶認證快取
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/whitelist-account/refresh \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/whitelist-account/refresh
Body parameter
{
"team_id": "A1b2C3d4E5f6"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
指定產品類型的代理帳戶配額
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/whitelist-account/quota?product_type=0 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/whitelist-account/quota
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| product_type | query | integer | true | 無 |
回應範例
200 回應
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"usage": 0,
"limit": 0,
"expand": 0
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | none |
| » msg | string | false | 無 | none |
| » request_id | string | false | 無 | none |
| » data | object | false | 無 | none |
| »» usage | integer | true | 無 | none |
| »» limit | integer | true | 無 | none |
| »» expand | integer | true | 無 | none |
所有產品類型的代理帳戶配額
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/whitelist-account/quotas \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/whitelist-account/quotas
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
回應範例
200 回應
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"list": [
{
"product_type": 0,
"limit": 0,
"usage": 0
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | none |
| » msg | string | false | 無 | none |
| » request_id | string | false | 無 | none |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | none |
| »»» product_type | integer | false | 無 | none |
| »»» limit | integer | false | 無 | none |
| »»» usage | integer | false | 無 | none |
代理帳戶列表 (GET /api-gate-way/proxy-account/list)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/proxy-account/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/proxy-account/list
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串;團隊 Key 可省略,傳入時必須與 Key 一致 |
回應範例
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
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | responseCode | false | 無 | 狀態碼,200 成功、3 app_key 無效 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | none |
| »»» id | integer | false | 無 | 帳戶編號 |
| »»» username | string | false | 無 | 代理帳戶名 |
| »»» password | string | false | 無 | 代理帳戶密碼 |
| »»» created_at | string | false | 無 | 添加時間 |
| »»» remark | string | false | 無 | 備註 |
| »»» product_type | productTypes | false | 無 | 套餐類型,9 動態住宅流量套餐、11 動態住宅IP、14靜態資料中心IP、25 靜態住宅IP |
| »»» usage_flow | integer | false | 無 | 已使用流量,單位:KB |
| »»» limit_flow | integer | false | 無 | 自訂流量上限:單位GB最大102400,0 不限制 |
| »»» status | integer | false | 無 | 啟用狀態:1啟用,0停用 |
列舉值
| 屬性 | 值 |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 14 |
| product_type | 25 |
新增代理帳戶。 (POST /api-gate-way/proxy-account/add)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/proxy-account/add \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/proxy-account/add
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01:pass,user02:pass,user03:pass",
"remark": "",
"product_type": 9
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » accounts | body | string | true | 帳號密碼,請按格式 username:password 填寫,帳號和密碼僅支援數字和字母,禁止輸入任何特殊符號或空格,冒號隔開帳號和密碼。支援批量添加,英文逗號(,)分隔代理帳戶。 |
| » remark | body | string | false | 代理帳戶描述 |
| » product_type | body | productTypes | false | 套餐類型,9 動態住宅流量套餐、11 動態住宅IP、14靜態資料中心IP、25 靜態住宅IP |
列舉值
| Parameter | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 14 |
| » product_type | 25 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
刪除代理帳戶 (POST /api-gate-way/proxy-account/delete)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/proxy-account/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/proxy-account/delete
請注意刪除後無法恢復,已使用流量等無法查詢。刪除約5分鐘等待時間,期間仍可能產生費用。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » accounts | body | string | true | 代理帳戶,僅支援數字和字母。支援批次操作,英文逗號(,)分隔代理帳戶 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
啟用代理帳戶 (POST /api-gate-way/proxy-account/enable)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/proxy-account/enable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/proxy-account/enable
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » accounts | body | string | true | 代理帳戶,僅支援數字和字母。支援批次操作,英文逗號(,)分隔代理帳戶 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
停用代理帳戶 (POST /api-gate-way/proxy-account/disable)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/proxy-account/disable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/proxy-account/disable
禁用約5分鐘等待時間,在此期間仍可能產生費用。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » accounts | body | string | true | 代理帳戶,僅支援數字和字母。支援批次操作,英文逗號(,)分隔代理帳戶 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
修改代理帳號資訊 (POST /api-gate-way/proxy-account/change)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/proxy-account/change \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/proxy-account/change
修改代理帳戶密碼、備註、流量限制、每日流量限制、啟用狀態或 UDP 開關。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"account": "string",
"password": "string",
"remark": "string",
"limit": 0,
"daily_limit": 0,
"status": 0,
"udp": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » account | body | string | true | 代理帳戶名 |
| » password | body | string | false | 新密碼,6-16 位數字或字母;不傳則不修改 |
| » remark | body | string | false | 新備註 |
| » limit | body | integer | false | 流量上限,單位 GB,0 表示不限制 |
| » daily_limit | body | integer | false | 每日流量上限,單位 GB,0 表示不限制 |
| » status | body | integer | false | 啟用狀態 |
| » udp | body | integer | false | UDP 支援開關,僅對套餐類型 14、16、21、25 生效 |
列舉值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
| » udp | 0 |
| » udp | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
產生代理連接訊息
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/whitelist-account/format?ac=0 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/whitelist-account/format
支援個人和團隊 API Key。僅傳回目前資源空間內有權存取的代理帳號,支援套餐類型 9、11、12。 JSON/XML 傳回結構化帳密清單;txt/csv 傳回依 f 格式拼接的連線字串。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| ac | query | integer,string | true | 代理帳號 ID 或使用者名稱;相容參數 account |
| ae | query | string | false | 無 |
| st | query | string | false | 無 |
| ct | query | string | false | 無 |
| lf | query | integer | false | 無 |
| n | query | integer | false | 無 |
| f | query | integer | false | 僅影響 txt/csv 的連接串格式 |
| type | query | string | false | 無 |
| lb | query | string | false | 無 |
| ep | query | string | false | 無 |
| team_id | query | ResourceSpaceId | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| f | 1 |
| f | 2 |
| f | 3 |
| f | 4 |
| f | 5 |
| type | json |
| type | xml |
| type | txt |
| type | csv |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"username": "string",
"password": "string",
"server": "string",
"port": 0
}
]
},
"request_id": "string"
}
"string"
<?xml version="1.0" encoding="UTF-8" ?>
<WebV1SuccessResponse>
<code>200</code>
<msg>SUCCESS</msg>
<data/>
<request_id>string</request_id>
</WebV1SuccessResponse>
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | WebV1SuccessResponse |
訂單管理
訂單建立、查詢、取消等
訂單列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/order/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/order/list
團隊空間訂單額外返回 creator,表示實際下單成員;管理員和超級管理員可見完整聯絡方式,其他角色返回脫敏聯絡方式。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 訂單資源空間識別;個人空間省略或傳空字串 |
| page_no | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
| trade_no | query | string | false | 訂單編號 |
| start_time | query | string(date-time) | false | 開始時間(內含),如 2024-01-01 00:00:00 |
| end_time | query | string(date-time) | false | 結束時間(不含) |
| status | query | integer | false | 訂單狀態 |
| product_type | query | integer | false | 產品類型 |
| invoice | query | integer | false | 發票狀態:0不限制 1已開發票 -1未開發票(可補) |
| pay_fee_status | query | integer | false | 長短款篩選:1超額支付 2短款支付 |
Detailed descriptions
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 |
列舉值
| Parameter | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| product_type | 3 |
| product_type | 9 |
| product_type | 11 |
| product_type | 12 |
| product_type | 14 |
| product_type | 16 |
| product_type | 17 |
| product_type | 18 |
| product_type | 19 |
| product_type | 21 |
| product_type | 24 |
| product_type | 25 |
| product_type | 26 |
| product_type | 27 |
| product_type | 28 |
| invoice | -1 |
| invoice | 0 |
| invoice | 1 |
| pay_fee_status | 1 |
| pay_fee_status | 2 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
}
],
"pagination": {
"total": 0,
"page_no": 0,
"page_size": 0,
"total_pages": 0
}
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 成功 | Inline |
回應結構
建立訂單
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/order/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/order/create
因套餐種類較多,且每種套餐有不同的配置,請依實際情況填寫參數。不正當填寫參數可能導致訂單建立失敗。
examples:
續費靜態IP
{
"pid": 套餐ID, // 從 /openapi/product 介面取得
"upids": "1,2,3,4,5,6", // 從 /openapi/ip/get-static-ip 介面取得對應的 id 字段
"pm_id": 1 // 從 /openapi/payment/list 或 /openapi/payment/groups 介面取得
}
靜態住宅IP購買
{
"pid": 套餐ID, // 從 /openapi/product 介面取得
"pm_id": 支付方式ID, // 從 /openapi/payment/list 或 /openapi/payment/groups 介面取得
"region_list": "JP,15,333|DE,10,444|US,5,555" // 格式:地區,數量,ASN|地區,數量,ASN(ASN編號可選)
}
靜態資料中心IP購買
{
"pid": 套餐ID, // 從 /openapi/product 介面取得
"pm_id": 支付方式ID, // 從 /openapi/payment/list 或 /openapi/payment/groups 介面取得
"region_list": "JP,15,333|DE,10,444|US,5,555" // 格式:地區,數量,ASN|地區,數量,ASN(ASN編號可選)
}
動態住宅流量購買
{
"pid": 套餐ID, // 從 /openapi/product 介面取得
"pm_id": 支付方式ID // 從 /openapi/payment/list 或 /openapi/payment/groups 介面取得
}
靜態輪換流量購買
{
"pid": 套餐ID, // 從 /openapi/product 介面取得
"pm_id": 支付方式ID // 從 /openapi/payment/list 或 /openapi/payment/groups 介面取得
}
動態無限流量購買
{
"pid": 套餐ID, // 從 /openapi/product 介面取得
"pm_id": 支付方式ID, // 從 /openapi/payment/list 或 /openapi/payment/groups 介面取得
"product_sku_bandwidth_id": 頻寬規格ID,
"product_sku_concurrency_id": 並發規格ID
}
餘額儲值
{
"pid": 套餐ID, // 從 /openapi/product 介面取得
"pm_id": 支付方式ID, // 從 /openapi/payment/list 或 /openapi/payment/groups 介面取得
"recharge_amount": 儲值金額
}
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"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,
"product_sku_duration_id": 0,
"etd": 1,
"recharge_amount": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » pid | body | integer | true | 套餐ID,來自 /openapi/product 介面返回的 id 字段 |
| » upids | body | string | false | 續費套餐ID清單(逗號分隔),來自 /openapi/user-product/list 或 /openapi/ip/get-static-ip 介面傳回的 id 字段 |
| » amount | body | number | false | 新購套餐數量 |
| » pm_id | body | integer | true | 支付方式ID,來自 /openapi/payment/list 或 /openapi/payment/groups 介面傳回的 id 字段 |
| » region_list | body | string | false | 購買靜態IP時指定區域+數量+ASN編號,格式:地區,數量,ASN |
| » coupon_sn | body | string | false | 優惠券編號 |
| » use_invitation_registration_discount | body | boolean | false | 是否使用邀請註冊優惠 |
| » renew_duration | body | integer | false | 續費時長-靜態IP可選 |
| » product_sku_bandwidth_id | body | integer | false | 套餐11:頻寬套餐ID |
| » product_sku_concurrency_id | body | integer | false | 套餐11:並發套餐ID |
| » product_sku_duration_id | body | integer | false | 套餐type=11必填:時長規格ID |
| » etd | body | integer | false | 時長倍數,從套餐 extension_of_time_days 獲取,2代表天數×2,價格上浮 |
| » recharge_amount | body | integer | false | 套餐3:儲值金額 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 創建成功 | Inline |
回應結構
取消訂單
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/order/close \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/order/close
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"trade_no": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » trade_no | body | string | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
訂單詳情
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/order/info?trade_no=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/order/info
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| trade_no | query | string | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
訂單詳情 V2
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/order/info-v2?order_id=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/order/info-v2
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| order_id | query | string | true | 用戶端加密後的訂單 ID |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;訂單已支付或已取消時可能以業務錯誤 code 攜帶訂單數據 | Inline |
回應結構
歷史訂單補開發票
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/order/reissue-invoice \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/order/reissue-invoice
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"trade_no_list": [
"string"
]
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » trade_no_list | body | [string] | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
訂單預檢
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/order/check \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/order/check
建立訂單前調用,用於預覽價格、折扣、IP續費明細等,不會實際建立訂單。 參數與 /openapi/order/create 完全一致。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"pid": 0,
"upids": "string",
"amount": 1,
"pm_id": 0,
"region_list": "string",
"coupon_sn": "string",
"renew_duration": "1m",
"product_sku_bandwidth_id": 0,
"product_sku_concurrency_id": 0,
"product_sku_duration_id": 0,
"etd": 1,
"recharge_amount": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » pid | body | integer | true | 套餐ID |
| » upids | body | string | false | IP續費:用戶套餐ID列表,逗號分隔 |
| » amount | body | integer | false | 購買數量 |
| » pm_id | body | integer | true | 付款方式ID |
| » region_list | body | string | false | 靜態IP購買地區+數量,格式:地區ID,數量 |
| » coupon_sn | body | string | false | 優惠券編號 |
| » renew_duration | body | string | false | IP續費時間:1m=1個月,2m=2個月,em=下個月月底 |
| » product_sku_bandwidth_id | body | integer | false | 套餐type=11必填:頻寬規格ID |
| » product_sku_concurrency_id | body | integer | false | 套餐type=11必填:並發規格ID |
| » product_sku_duration_id | body | integer | false | 套餐type=11必填:時長規格ID |
| » etd | body | integer | false | 長度倍數,從套餐 extension_of_time_days 獲取 |
| » recharge_amount | body | number | false | 套餐type=3必填:儲值金額 |
列舉值
| Parameter | Value |
|---|---|
| » renew_duration | 1m |
| » renew_duration | 2m |
| » renew_duration | em |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"product_id": 0,
"amount": 0,
"discount_fee": 0.1,
"total_fee": 0.1,
"pay_fee": 0.1,
"product_type": 0,
"title": "string",
"detail": "string",
"ip_result": [
{
"ip": "string",
"price": 0.1,
"country_code": "string",
"current_time": "2019-08-24T14:15:22Z",
"renewal_time": "2019-08-24T14:15:22Z",
"country": {
"name_zh_cn": "string",
"flag": "string",
"square_flag": "string"
}
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 預檢成功 | Inline |
回應結構
API Key 管理
個人和團隊資源空間的 API Key 管理
API Key 列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/api-keys \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/api-keys
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串 |
| page | query | integer | false | 無 |
| pageSize | query | integer | false | 無 |
回應範例
200 回應
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"list": [
{
"id": 1,
"api_key": "string",
"team_user_id": 0,
"remark": "string",
"status": 0,
"created_at": "string",
"updated_at": "string"
}
],
"total": 0,
"page": 1,
"pageSize": 1
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | none |
| » msg | string | true | 無 | none |
| » request_id | string | true | 無 | none |
| » data | object | true | 無 | none |
| »» list | [UserApiKeyMetadata] | true | 無 | none |
| »»» id | integer | true | 無 | API Key ID |
| »»» api_key | string | true | 無 | 建立響應為完整 Key;團隊清單中為脫敏值 |
| »»» team_user_id | integer | true | 無 | 團隊 Key 實際持有成員 ID,個人 Key 為 0 |
| »»» remark | string | true | 無 | 備註 |
| »»» status | integer | true | 無 | 0=停用,1=啟用 |
| »»» created_at | string | true | 無 | 創建時間 |
| »»» updated_at | string,null | false | 無 | 更新時間 |
| »» total | integer | true | 無 | none |
| »» page | integer | true | 無 | none |
| »» pageSize | integer | true | 無 | none |
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
建立 API Key
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/api-keys/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/api-keys/create
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"remark": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » remark | body | string | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"api_key": "string",
"team_user_id": 0,
"remark": "string",
"status": 0,
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 業務成功時返回完整 API Key,僅此一次 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
啟用 API Key
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/api-keys/enable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/api-keys/enable
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » id | body | integer | true | API Key ID |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
停用 API Key
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/api-keys/disable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/api-keys/disable
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » id | body | integer | true | API Key ID |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
刪除 API Key
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/api-keys/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/api-keys/delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » id | body | integer | true | API Key ID |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
修改 API Key 備註
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/api-keys/update-remark \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/api-keys/update-remark
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1,
"remark": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » id | body | integer | true | 無 |
| » remark | body | string | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
每月續費帳單
每月匯總續費的即時帳單、預檢、下單和歷史記錄
當月每月匯總續費帳單
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/monthly-renewal-bill \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/monthly-renewal-bill
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"batch": {
"type": "current",
"start_at": "string",
"end_at": "string",
"target_expired_at": "string",
"timezone": "string"
},
"currency": "string",
"total_fee": 0,
"items": [
{
"id": 0,
"user_product_id": 1,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"title": "string",
"expired_at": "string",
"target_expired_at": "string",
"renew_days": 1,
"unit_month_price": 0,
"pay_fee": 0,
"currency": "string",
"bandwidth": 0,
"bandwidth_mbsp": 0,
"concurrency": 0,
"ip": "string",
"country_code": "string",
"paid_at": "string",
"refunded_at": "string",
"created_at": "string",
"updated_at": "string"
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| type | current |
| type | next |
檢查月度匯總續費訂單
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/monthly-renewal-bill/check \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/monthly-renewal-bill/check
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"user_coupon_id": 1,
"coupon_sn": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | MonthlyRenewalRequest | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » user_product_ids | body | any | true | 使用者套餐 ID 數組,也相容於英文逗號分隔字串 |
| »» anonymous | body | [integer] | false | 無 |
| »» anonymous | body | string | false | 無 |
| » user_coupon_id | body | integer | false | 無 |
| » coupon_sn | body | string | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"batch": {
"type": "current",
"start_at": "string",
"end_at": "string",
"target_expired_at": "string",
"timezone": "string"
},
"currency": "string",
"total_fee": 0,
"discount_fee": 0,
"pay_fee": 0,
"items": [
{
"id": 0,
"user_product_id": 1,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"title": "string",
"expired_at": "string",
"target_expired_at": "string",
"renew_days": 1,
"unit_month_price": 0,
"pay_fee": 0,
"currency": "string",
"bandwidth": 0,
"bandwidth_mbsp": 0,
"concurrency": 0,
"ip": "string",
"country_code": "string",
"paid_at": "string",
"refunded_at": "string",
"created_at": "string",
"updated_at": "string"
}
],
"user_coupon_id": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| type | current |
| type | next |
建立每月匯總續費訂單
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/monthly-renewal-bill/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/monthly-renewal-bill/create
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"user_coupon_id": 1,
"coupon_sn": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | MonthlyRenewalRequest | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » user_product_ids | body | any | true | 使用者套餐 ID 數組,也相容於英文逗號分隔字串 |
| »» anonymous | body | [integer] | false | 無 |
| »» anonymous | body | string | false | 無 |
| » user_coupon_id | body | integer | false | 無 |
| » coupon_sn | body | string | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"trade_no": "string",
"total_fee": 0,
"discount_fee": 0,
"pay_fee": 0,
"currency": "string",
"user_coupon_id": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
每月匯總續費歷史帳單
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/monthly-renewal-bill/history \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/monthly-renewal-bill/history
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| trade_no | query | string | false | 無 |
| start_date | query | string(date) | false | 無 |
| end_date | query | string(date) | false | 無 |
| page | query | integer | false | 無 |
| size | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"total": 0,
"page": 1,
"size": 1,
"list": [
{
"id": 1,
"trade_no": "string",
"status": 0,
"pay_fee": 0,
"currency": "string",
"pay_at": "string",
"created_at": "string",
"pay_method": 0,
"pm_id": 0,
"pay_channel": 0,
"pm_title": "string",
"pm_logo": "string",
"items": [
{
"id": 0,
"user_product_id": 1,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"title": "string",
"expired_at": "string",
"target_expired_at": "string",
"renew_days": 1,
"unit_month_price": 0,
"pay_fee": 0,
"currency": "string",
"bandwidth": 0,
"bandwidth_mbsp": 0,
"concurrency": 0,
"ip": "string",
"country_code": "string",
"paid_at": "string",
"refunded_at": "string",
"created_at": "string",
"updated_at": "string"
}
]
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
發票管理
發票抬頭、開立發票申請和可開立發票訂單
發票抬頭詳情
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-invoice/info \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-invoice/info
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| invoice_code | query | string | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invoice_code": "string",
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 1,
"invoice_type": 0,
"vat_id": "string",
"tax_no": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"bank_name": "string",
"bank_account": "string",
"is_def": true
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
創建或修改發票抬頭
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-invoice/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-invoice/create
Body parameter
{
"invoice_code": "string",
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 1,
"invoice_type": 0,
"vat_id": "string",
"tax_no": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"bank_name": "string",
"bank_account": "string",
"is_def": true,
"team_id": "A1b2C3d4E5f6",
"new_invoice_code": false
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | any | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功,data 為 null | Inline |
回應結構
發票抬頭列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-invoice/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-invoice/list
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"invoice_code": "string",
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 1,
"invoice_type": 0,
"vat_id": "string",
"tax_no": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"bank_name": "string",
"bank_account": "string",
"is_def": true,
"created_at": 0
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
刪除發票抬頭
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-invoice/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-invoice/delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invoice_code": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » invoice_code | body | string | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功,data 為 null | Inline |
回應結構
開立發票記錄列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-invoice/record-list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-invoice/record-list
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| status | query | integer | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"invoice_no": "string",
"invoice_amount": 0,
"invoice_download_url": "string",
"status": 0,
"remark": "string",
"order_ids": [
0
],
"created_at": 0,
"invoice_info": {
"invoice_code": "string",
"name": "string",
"org_name": "string",
"role_type": 1,
"invoice_type": 0
}
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
提交開立發票申請
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-invoice/submit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-invoice/submit
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invoice_code": "string",
"order_ids": [
0
]
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » invoice_code | body | string | true | 無 |
| » order_ids | body | [integer] | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invoice_id": 1
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
取消開票申請
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-invoice/cancel \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-invoice/cancel
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invoice_id": 1,
"reason": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » invoice_id | body | integer | true | 無 |
| » reason | body | string | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功,data 為 null | Inline |
回應結構
開票金額統計
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-invoice/statistics \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-invoice/statistics
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invoiceable_amount": 0,
"invoiced_amount": 0,
"processing_amount": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
可開立發票訂單列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-invoice/invoiceable-orders \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-invoice/invoiceable-orders
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"order_no": "string",
"pay_fee": 0,
"created_at": 0
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
團隊管理
團隊創建、查詢、改名和解散
創建團隊
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/create
Body parameter
{
"name": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » name | body | string | true | 團隊名稱 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
目前使用者可存取的團隊列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/team/list
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
團隊詳情
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/detail?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/team/detail
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
修改團隊名稱
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/update-name \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/update-name
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"name": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » name | body | string | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
解散團隊
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/dissolve \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/dissolve
僅團隊超級管理員可調用。請求中的 name 必須與團隊目前名稱完全一致。 此介面強制執行操作二次驗證:未處於 15 分鐘信任狀態時回傳 code=348, 呼叫方應根據回應 data 中的可用方式取得驗證碼後,攜帶 verify_type 和 verify_code 重試。 可重複呼叫以繼續未完成的解散流程。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"name": "华东研发团队",
"verify_type": "email",
"verify_code": "123456"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » name | body | string | true | 團隊名稱確認,必須與團隊目前名稱完全一致 |
| » verify_type | body | string | false | 二次驗證方式;需要驗證時與 verify_code 一起提交 |
| » verify_code | body | string | false | 二次驗證碼;處於 15 分鐘信任狀態時可不傳 |
列舉值
| Parameter | Value |
|---|---|
| » verify_type | phone |
| » verify_type | |
| » verify_type | |
| » verify_type | totp |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
查詢團隊解散狀態
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/dissolve-status?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/team/dissolve-status
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
團隊成員
團隊成員清單、角色調整、移除和退出
團隊成員列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/members?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/team/members
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
團隊人員統一列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/people?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/team/people
返回有效成員;超級管理員和管理員也會看到待處理邀請。其他邀請狀態僅保留在邀請歷史清單中。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"record_type": "member",
"record_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 0,
"inviter_user_id": 0,
"invite_type": 0,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 0,
"role": 1,
"status": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string",
"joined_at": "string",
"expired_at": "string",
"created_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| record_type | member |
| record_type | invitation |
| invite_type | 0 |
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 0 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
調整成員角色
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/members/update-role \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/members/update-role
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"team_member_id": 1,
"role": 2
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » team_member_id | body | integer | true | 無 |
| » role | body | integer | true | 無 |
列舉值
| Parameter | Value |
|---|---|
| » role | 2 |
| » role | 3 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
移除團隊成員
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/members/remove \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/members/remove
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"team_member_id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » team_member_id | body | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data.status=3 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
退出團隊
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/members/leave \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/members/leave
Body parameter
{
"team_id": "A1b2C3d4E5f6"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data.status=2 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
團隊邀請
團隊成員邀請的創建、查詢和處理
創建團隊邀請
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/invitations/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/invitations/create
按已註冊用戶、郵箱或手機號碼建立邀請。當郵箱或手機號碼符合到本站使用者時,回應會規範化為 invite_type=1。 前端可提交本站邀請 URL 相對路徑模板,服務端僅將其中的 替換為一次性邀請令牌。 未註冊目標使用受邀手機號碼註冊,或使用受邀信箱完成驗證後,服務端會將仍有效的邀請綁定到新用戶、輪換 token,並只補發一條未讀站內信;原郵件或短信中的舊 token 隨即失效。若信箱邀請尚未完成自動綁定,使用受邀信箱註冊的目前帳號可直接接受,無需等待 email_verify。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invite_type": 1,
"role": 2,
"user_id": 1,
"email": "[email protected]",
"country_code": 1,
"phone": "string",
"invitation_url_template": "/team/invitation/{{token}}"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » invite_type | body | integer | true | 1=已註冊用戶,2=郵箱,3=手機號 |
| » role | body | integer | true | 2=管理員,3=普通成員 |
| » user_id | body | integer | false | invite_type=1 時必填 |
| body | string(email) | false | invite_type=2 時必填 | |
| » country_code | body | integer | false | invite_type=3 時必填 |
| » phone | body | string | false | invite_type=3 時必填 |
| » invitation_url_template | body | string | false | 本站前端定義的相對路徑範本;必須以單一 / 開頭、不得包含網域名稱或換行,且必須且只能包含一個 佔位符 |
| » anonymous | body | object | false | 無 |
| »» invite_type | body | any | false | 無 |
| » anonymous | body | object | false | 無 |
| »» invite_type | body | any | false | 無 |
| » anonymous | body | object | false | 無 |
| »» invite_type | body | any | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| » invite_type | 1 |
| » invite_type | 2 |
| » invite_type | 3 |
| » role | 2 |
| » role | 3 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"invitation_token": "string",
"invitation_url": "http://example.com",
"notification_channels": {
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code,200 為業務成功 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
| queued | |
| failed | |
| skipped | |
| sms | queued |
| sms | failed |
| sms | skipped |
| site_inner_message | created |
| site_inner_message | exists |
| site_inner_message | failed |
團隊邀請列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/invitations?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/team/invitations
僅團隊超級管理員或管理員可存取;返回前會將已到期的待處理邀請更新為已過期。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 團隊公開標識 |
| page | query | integer | false | 頁碼,從 1 開始 |
| page_size | query | integer | false | 每頁數量 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
預覽團隊邀請
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/invitations/preview?invitation_token=string \
-H 'Accept: application/json'
GET /api-gate-way/team/invitations/preview
使用一次性 invitation_token 匿名預覽邀請;連結中不使用邀請數字 ID。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| invitation_token | query | string | true | 邀請連結攜帶的非空明文一次性令牌 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_name": "string",
"role": 2,
"status": 0,
"expired_at": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
重發團隊邀請通知
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/invitations/resend \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/invitations/resend
重投原始發送管道;已註冊用戶同時發送站內信。重發會輪換令牌,之前的所有邀請連結立即失效。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invitation_id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » invitation_id | body | integer | true | 邀請 ID |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"invitation_url": "http://example.com",
"notification_channels": {
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
| queued | |
| failed | |
| skipped | |
| sms | queued |
| sms | failed |
| sms | skipped |
| site_inner_message | created |
| site_inner_message | exists |
| site_inner_message | failed |
接受團隊邀請
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/invitations/accept \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/invitations/accept
目前登入使用者使用一次性 invitation_token 接受邀請,必須與邀請目標相符且屬於邀請所屬站點;不需要傳 team_id。
Body parameter
{
"invitation_token": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » invitation_token | body | string | true | 明文一次性邀請令牌 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 為成員對象 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
拒絕團隊邀請
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/invitations/reject \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/invitations/reject
目前登入使用者使用一次性 invitation_token 拒絕與本人相符的邀請;不需要傳 team_id。
Body parameter
{
"invitation_token": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » invitation_token | body | string | true | 明文一次性邀請令牌 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data.status=2 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
取消團隊邀請
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/invitations/cancel \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/invitations/cancel
取消指定團隊內的待處理邀請,操作人必須有權邀請該目標角色。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invitation_id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » invitation_id | body | integer | true | 邀請 ID |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data.status=3 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
團隊資產
團隊資產查詢與個人/團隊空間劃轉
團隊套餐資訊
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/product-info?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/team/product-info
傳回指定團隊資源空間的套餐摘要,欄位與 /web_v1/user/info 的套餐欄位保持一致, 不回傳團隊超級管理員的個人資料、餘額或內部數位團隊 ID。積分套餐詳細資訊請使用 /web_v1/credit/info。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"product_types": [
0
],
"product_residence_remain_count": 0,
"product_residence_total_count": 0,
"pdrue2_timestamp": 0,
"remain": 0,
"total_amount": 0,
"scraping_remain": 0,
"scraping_total_amount": 0,
"scraping_timestamp": "string",
"scraping_timestamp2": 0,
"common_scraping_remain": 0,
"common_scraping_total_amount": 0,
"common_scraping_timestamp": "string",
"common_scraping_timestamp2": 0,
"pdidcr_count": 0,
"pdidcr_total": 0,
"pdidcr_traffic_remain": 0,
"pdidcr_traffic_total": 0,
"p_sitai_ip_count": 0,
"p_sitai_ip": 0,
"p_sitai_ip_total": 0,
"p_sitai_remain": 0,
"p_sitai_total": 0,
"pdidc_count": 0,
"pdidc_total": 0,
"pdidc_ip_count": 0,
"pdidc_ip_all_count": 0,
"pdispr_count": 0,
"pdispr_total": 0,
"pdispr_traffic_remain": 0,
"pdispr_traffic_total": 0,
"product_datacenter_isp_traffic_ip_count": 0,
"product_datacenter_isp_traffc_ip": 0,
"product_datacenter_isp_traffc_ip_total": 0,
"product_datacenter_isp_traffic_ip": 0,
"product_datacenter_isp_traffic_ip_total": 0,
"product_datacenter_isp_traffc_remain": 0,
"product_datacenter_isp_traffc_total": 0,
"product_datacenter_isp_traffic_remain": 0,
"product_datacenter_isp_traffic_total": 0,
"product_datacenter_isp_ip": 0,
"product_datacenter_isp_ip_total": 0,
"product_datacenter_isp_ip_count": 0,
"product_datacenter_isp_ip_all_count": 0,
"product_datacenter_isp_ip_traffic_remain": 0,
"product_datacenter_isp_ip_traffic_total": 0,
"product_agent_residence_remain_count": 0,
"product_agent_residence_total_count": 0,
"product_serp_remain": 0,
"product_serp_total": 0,
"product_serp_timestamp": "string",
"product_serp_timestamp2": 0,
"product_video_remain": 0,
"product_video_total": 0,
"product_video_timestamp": "string",
"product_video_timestamp2": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
團隊資產列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/assets?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/team/assets
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
可劃入團隊的個人資產
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/assets/personal-candidates?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/team/assets/personal-candidates
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
個人資產劃入團隊
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/assets/move-in \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/assets/move-in
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » user_product_id | body | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
團隊資產移回個人
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/assets/move-out \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/assets/move-out
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » user_product_id | body | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
積分管理
積分套餐資訊、自動補充、消耗記錄和統計
獲取積分套餐信息 (GET /web_v1/credit/info)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/credit/info \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/info
查詢目前資源空間的積分套餐摘要。團隊空間要求 USE_ASSETS 權限;此介面同時支援登入態、個人 API Key 和團隊 API Key。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串;團隊 API Key 可省略,傳入時必須與 Key 一致 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 為積分等級、總量、剩餘量、重置時間和自動補充狀態 | Inline |
回應結構
設定餘額自動補充積分
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/web_v1/credit/update-auto-supplement \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /web_v1/credit/update-auto-supplement
登入態設定目前資源空間的自動補充開關。團隊空間要求 USE_OWNER_PAYMENT_CAPABILITIES 權限,目前僅團隊超級管理員可操作;團隊空間預設為關閉。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"status": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » status | body | integer | true | 0=關閉,1=開啟 |
列舉值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;當業務成功時 data.status 為更新後的開關狀態 | Inline |
回應結構
取得積分消耗記錄 (GET /web_v1/credit/consumption-logs)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/credit/consumption-logs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/consumption-logs
登入態或 API Key 分頁查詢目前資源空間的積分消耗記錄。團隊空間需求 VIEW_BILLING 權限。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
| start_date | query | string(date) | false | 開始日期,依站點時區解釋 |
| end_date | query | string(date) | false | 結束日期,依站點時區解釋 |
| consumption_type | query | string | false | 消耗類型 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;當業務成功時 data 包含 list、page、page_size、total_count 和 total_page | Inline |
回應結構
取得積分重置記錄 (GET /web_v1/credit/reset-logs)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/credit/reset-logs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/reset-logs
登入態或 API Key 分頁查詢目前資源空間的積分重設記錄。團隊空間需求 VIEW_BILLING 權限。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含積分重置記錄及分頁資訊 | Inline |
回應結構
取得積分統計 (GET /web_v1/credit/stats)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/credit/stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/stats
登入態或 API Key 查詢目前資源空間按消耗類型聚合的積分統計。團隊空間需求 VIEW_BILLING 權限。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| start_date | query | string(date) | false | 開始日期,依站點時區解釋 |
| end_date | query | string(date) | false | 結束日期,依站點時區解釋 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含 by_type 和 total | Inline |
回應結構
取得按天積分統計 (GET /web_v1/credit/daily-stats)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/credit/daily-stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/daily-stats
登入態或 API Key 查詢目前資源空間的按天積分消耗,預設最近 7 天。團隊普通成員僅返回本人實際消費;具備 VIEW_BILLING 權限的管理員、超級管理員和財務成員返回團隊全量資料。歷史未記錄消費成員的團隊日誌僅對全量檢視可見。 API Key 查詢最多包含 31 個自然日(含首尾),開始日期不得晚於結束日期。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| start_date | query | string(date) | false | 開始日期,預設 6 天前 |
| end_date | query | string(date) | false | 結束日期,預設今天 |
| consumption_type | query | string | false | 可選消耗類型 |
| fill_gaps | query | integer | false | 是否補齊缺失日期 |
列舉值
| Parameter | Value |
|---|---|
| fill_gaps | 0 |
| fill_gaps | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含 daily_stats 和 summary | Inline |
回應結構
取得按小時積分統計 (GET /web_v1/credit/hourly-stats)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/credit/hourly-stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/hourly-stats
登入態或 API Key 查詢目前資源空間的按小時積分消耗,預設最近 7 天。團隊空間需求 VIEW_BILLING 權限。 API Key 查詢最多包含 31 個自然日(含首尾),開始日期不得晚於結束日期。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| start_date | query | string(date) | false | 開始日期,預設 6 天前 |
| end_date | query | string(date) | false | 結束日期,預設今天 |
| consumption_type | query | string | false | 可選消耗類型 |
| fill_gaps | query | integer | false | 是否補齊缺失小時 |
列舉值
| Parameter | Value |
|---|---|
| fill_gaps | 0 |
| fill_gaps | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含 hourly_stats 和 summary | Inline |
回應結構
獲取積分套餐信息 (GET /api-gate-way/credit/info)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/credit/info \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/credit/info
查詢目前資源空間的積分套餐摘要。團隊空間要求 USE_ASSETS 權限;此介面同時支援登入態、個人 API Key 和團隊 API Key。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串;團隊 API Key 可省略,傳入時必須與 Key 一致 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 為積分等級、總量、剩餘量、重置時間和自動補充狀態 | Inline |
回應結構
取得積分消耗記錄 (GET /api-gate-way/credit/consumption-logs)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/credit/consumption-logs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/credit/consumption-logs
登入態或 API Key 分頁查詢目前資源空間的積分消耗記錄。團隊空間需求 VIEW_BILLING 權限。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
| start_date | query | string(date) | false | 開始日期,依站點時區解釋 |
| end_date | query | string(date) | false | 結束日期,依站點時區解釋 |
| consumption_type | query | string | false | 消耗類型 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;當業務成功時 data 包含 list、page、page_size、total_count 和 total_page | Inline |
回應結構
取得積分重置記錄 (GET /api-gate-way/credit/reset-logs)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/credit/reset-logs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/credit/reset-logs
登入態或 API Key 分頁查詢目前資源空間的積分重設記錄。團隊空間需求 VIEW_BILLING 權限。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含積分重置記錄及分頁資訊 | Inline |
回應結構
取得積分統計 (GET /api-gate-way/credit/stats)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/credit/stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/credit/stats
登入態或 API Key 查詢目前資源空間按消耗類型聚合的積分統計。團隊空間需求 VIEW_BILLING 權限。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| start_date | query | string(date) | false | 開始日期,依站點時區解釋 |
| end_date | query | string(date) | false | 結束日期,依站點時區解釋 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含 by_type 和 total | Inline |
回應結構
取得按天積分統計 (GET /api-gate-way/credit/daily-stats)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/credit/daily-stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/credit/daily-stats
登入態或 API Key 查詢目前資源空間的按天積分消耗,預設最近 7 天。團隊普通成員僅返回本人實際消費;具備 VIEW_BILLING 權限的管理員、超級管理員和財務成員返回團隊全量資料。歷史未記錄消費成員的團隊日誌僅對全量檢視可見。 API Key 查詢最多包含 31 個自然日(含首尾),開始日期不得晚於結束日期。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| start_date | query | string(date) | false | 開始日期,預設 6 天前 |
| end_date | query | string(date) | false | 結束日期,預設今天 |
| consumption_type | query | string | false | 可選消耗類型 |
| fill_gaps | query | integer | false | 是否補齊缺失日期 |
列舉值
| Parameter | Value |
|---|---|
| fill_gaps | 0 |
| fill_gaps | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含 daily_stats 和 summary | Inline |
回應結構
取得按小時積分統計 (GET /api-gate-way/credit/hourly-stats)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/credit/hourly-stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/credit/hourly-stats
登入態或 API Key 查詢目前資源空間的按小時積分消耗,預設最近 7 天。團隊空間需求 VIEW_BILLING 權限。 API Key 查詢最多包含 31 個自然日(含首尾),開始日期不得晚於結束日期。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| start_date | query | string(date) | false | 開始日期,預設 6 天前 |
| end_date | query | string(date) | false | 結束日期,預設今天 |
| consumption_type | query | string | false | 可選消耗類型 |
| fill_gaps | query | integer | false | 是否補齊缺失小時 |
列舉值
| Parameter | Value |
|---|---|
| fill_gaps | 0 |
| fill_gaps | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含 hourly_stats 和 summary | Inline |
回應結構
Xcrawl Activity Log
Xcrawl 單任務與批次任務的記錄、詳情和總結查詢
取得 Xcrawl 近期任務列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/xcrawl-activity-log/recent-runs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/recent-runs
登入態查詢目前資源空間的單一任務清單和總和。團隊空間要求 USE_ASSETS;一般成員只能查看自己建立憑證產生的任務,管理員和超級管理員可查看全團隊任務。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
| endpoint | query | string | false | 端點類型 |
| status | query | string | false | 無 |
| start_time | query | string | false | 用戶時區時間,格式 Y-m-d H:i:s |
| end_time | query | string | false | 使用者時區時間,包含結束邊界 |
| url | query | string | false | 目標 URL 或 Data scraper 標識 |
| job_id | query | string | false | 任務 ID 前綴 |
列舉值
| Parameter | Value |
|---|---|
| status | pending |
| status | crawling |
| status | completed |
| status | failed |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含分頁 list 和 metadata | Inline |
回應結構
取得 Xcrawl Crawl Result
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/xcrawl-activity-log/crawl-result?job_id=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/crawl-result
登入態查詢目前資源空間指定任務的 Crawl Result。團隊空間要求 USE_ASSETS,並依成員可見憑證範圍校驗任務歸屬。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| job_id | query | string | true | 任務 ID |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;當業務成功時 data 包含 job_id 和 crawl_result | Inline |
回應結構
取得 Xcrawl 任務詳情與日誌
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/xcrawl-activity-log/activity-logs?job_id=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/activity-logs
登入態查詢目前資源空間指定單一任務及其結果詳情。團隊空間要求 USE_ASSETS,並依成員可見憑證範圍校驗任務歸屬。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| job_id | query | string | true | 任務 ID |
| page | query | integer | false | crawl/data 子結果頁碼 |
| page_size | query | integer | false | crawl/data 子結果分頁數量 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含 job 和按 endpoint 變更的 detail | Inline |
回應結構
取得 Data URL 聚合統計
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/xcrawl-activity-log/data-url-summary \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/data-url-summary
登入態聚合目前資源空間的 Data scraper 任務。團隊空間要求 USE_ASSETS,結果遵循成員可見憑證範圍。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| limit | query | integer | false | 返回數量;0 返回空列表 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data.list 為 scraper 聚合結果 | Inline |
回應結構
取得大量爬取近期任務列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/xcrawl-activity-log/batch-recent-runs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/batch-recent-runs
登入態查詢目前資源空間的批次任務清單和總和。團隊空間要求 USE_ASSETS;一般成員只能查看自己建立憑證產生的任務,管理員和超級管理員可查看全團隊任務。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
| endpoint | query | string | false | 端點類型,通常為 batch_scrape |
| status | query | string | false | 無 |
| start_time | query | string | false | 用戶時區時間,格式 Y-m-d H:i:s |
| end_time | query | string | false | 使用者時區時間,包含結束邊界 |
| batch_id | query | string | false | 批次任務 ID 前綴 |
列舉值
| Parameter | Value |
|---|---|
| status | pending |
| status | crawling |
| status | completed |
| status | failed |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含分頁 list 和 metadata | Inline |
回應結構
取得大量爬取任務詳情與日誌
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/web_v1/xcrawl-activity-log/batch-activity-logs?batch_id=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/batch-activity-logs
登入態查詢目前資源空間指定批次任務及其子項結果。團隊空間要求 USE_ASSETS,並依成員可見憑證範圍校驗任務歸屬。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| batch_id | query | string | true | 批次任務 ID |
| page | query | integer | false | 子項頁碼 |
| page_size | query | integer | false | 子項分頁數量 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;業務成功時 data 包含 job 和批次任務 detail | Inline |
回應結構
帳戶管理
取得個人帳戶概覽
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/account/profile \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/account/profile
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"username": "string",
"nickname": "string",
"email": "string",
"balance": "string",
"gift_balance": "string",
"currency": "string",
"language": "string",
"timezone": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
查詢個人餘額流水
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/wallet/change-list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/wallet/change-list
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| re_type | query | integer | false | 無 |
| transaction_type | query | integer | false | 無 |
| balance_type | query | integer | false | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| re_type | 0 |
| re_type | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"re_type": 0,
"transaction_type": 0,
"balance_type": 0,
"fee": "string"
}
],
"page": 0,
"page_size": 0,
"total_count": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
日誌匯出
建立代理日誌匯出任務
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-usage-flow-log-export/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-usage-flow-log-export/create
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。 開始時間必須早於結束時間,時間跨度不超過 31 天;同一用戶只允許一個等待或處理中的匯出任務,日誌上限為 500 萬條。
Body parameter
{
"start_time": 0,
"end_time": 0,
"type": "dynamic"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » start_time | body | integer | true | 開始 Unix 時間戳,秒 |
| » end_time | body | integer | true | 結束 Unix 時間戳,秒 |
| » type | body | string | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| » type | dynamic |
| » type | host_pool |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"task_id": 0,
"status": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
查詢日誌匯出任務詳情
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-usage-flow-log-export/detail?task_id=1 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-usage-flow-log-export/detail
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| task_id | query | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"user_id": 0,
"start_time": "string",
"end_time": "string",
"status": "pending",
"file_size": 0,
"record_count": 0,
"created_at": "string",
"completed_at": "string",
"file_url": "string",
"download_url": "string",
"error_message": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| status | pending |
| status | processing |
| status | completed |
| status | failed |
| status | canceled |
| status | no_data |
查詢日誌匯出任務列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-usage-flow-log-export/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-usage-flow-log-export/list
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| page | query | integer | false | 無 |
| size | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"user_id": 0,
"start_time": "string",
"end_time": "string",
"status": "pending",
"file_size": 0,
"record_count": 0,
"created_at": "string",
"completed_at": "string",
"file_url": "string",
"download_url": "string",
"error_message": "string"
}
],
"total": 0,
"page": 0,
"size": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| status | pending |
| status | processing |
| status | completed |
| status | failed |
| status | canceled |
| status | no_data |
取消尚未執行的日誌匯出任務
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-usage-flow-log-export/cancel \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-usage-flow-log-export/cancel
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。 只能取消佇列中處於等待狀態的任務,已執行的任務無法取消。
Body parameter
{
"task_id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » task_id | body | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
優惠券
查詢個人優惠券列表
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-coupon/list \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-coupon/list
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
Body parameter
{
"status": 0,
"page": 1,
"size": 20
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » status | body | integer | false | 無 |
| » page | body | integer | false | 無 |
| » size | body | integer | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
| » status | 2 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"coupon_id": 0,
"type": 0,
"status": 0,
"source": 0,
"title": "string",
"title_en": "string",
"description": "string",
"description_en": "string",
"start_amount": "string",
"start_amount_usd": "string",
"start_amount_hkd": "string",
"deduction_amount": "string",
"deduction_amount_usd": "string",
"deduction_amount_hkd": "string",
"discount_rate": "string",
"discount_ceiling_amount": "string",
"discount_ceiling_amount_usd": "string",
"discount_ceiling_amount_hkd": "string",
"created_at": "string",
"effect_at": "string",
"expired_at": "string",
"used_at": "string",
"product_types": "string",
"created_timestamp": 0,
"effect_timestamp": 0,
"expired_timestamp": 0,
"used_timestamp": 0,
"is_expired": true
}
],
"page": 0,
"page_size": 0,
"page_count": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
查詢個人優惠券詳情
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-coupon/info \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-coupon/info
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
Body parameter
{
"id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » id | body | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"coupon_id": 0,
"type": 0,
"status": 0,
"source": 0,
"title": "string",
"title_en": "string",
"description": "string",
"description_en": "string",
"start_amount": "string",
"start_amount_usd": "string",
"start_amount_hkd": "string",
"deduction_amount": "string",
"deduction_amount_usd": "string",
"deduction_amount_hkd": "string",
"discount_rate": "string",
"discount_ceiling_amount": "string",
"discount_ceiling_amount_usd": "string",
"discount_ceiling_amount_hkd": "string",
"created_at": "string",
"effect_at": "string",
"expired_at": "string",
"used_at": "string",
"product_types": "string",
"created_timestamp": 0,
"effect_timestamp": 0,
"expired_timestamp": 0,
"used_timestamp": 0,
"is_expired": true
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
通知管理
查詢站內通知
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/notify/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/notify/list
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| page | query | integer | false | 無 |
| size | query | integer | false | 無 |
| read | query | integer | false | 無 |
| type | query | integer | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| read | 0 |
| read | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"title": "string",
"content": "string",
"type": 0,
"read_status": 0,
"created_at": "string",
"created_timestamp": 0
}
],
"page": 0,
"size": 0,
"total": 0,
"total_unread_count": 0,
"unread_count_by_type": {}
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| read_status | 0 |
| read_status | 1 |
查詢站內通知詳情
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/notify/detail?id=1 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/notify/detail
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| id | query | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"title": "string",
"content": "string",
"type": 0,
"read_status": 0,
"created_at": "string",
"created_timestamp": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| read_status | 0 |
| read_status | 1 |
將站內通知標記為已讀
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/notify/read \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/notify/read
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
Body parameter
{
"id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » id | body | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
批量標記站內通知為已讀
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/notify/batch-read \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/notify/batch-read
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
Body parameter
{
"ids": [
1
]
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » ids | body | [integer] | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
查詢通知頻道配置
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-notify \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-notify
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"scene": 0,
"email_notify": true,
"phone_notify": true,
"browser_notify": true,
"site_inner_message_notify": true,
"webhook_notify": true,
"telegram_notify": true
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
查詢通知郵箱
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-notification-email/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-notification-email/list
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"email": "string",
"created_at": 0
}
],
"max_count": 0,
"current_count": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
查詢通知場景
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-notification-email/scenes \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-notification-email/scenes
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"name": "string",
"description": "string"
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
查詢郵箱訂閱場景
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-notification-email/email-scenes?id=1 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-notification-email/email-scenes
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| id | query | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"scenes": [
0
],
"subscribe_all": true
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
代理配置
查詢個人代理快取開關
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/proxy-cache/status \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/proxy-cache/status
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"status": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
設定個人代理快取開關
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/proxy-cache/change \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/proxy-cache/change
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
Body parameter
{
"status": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » status | body | integer | true | 無 |
列舉值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
查詢個人代理 UDP 開關
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-proxy-config/udp \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-proxy-config/udp
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"enabled": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| enabled | 0 |
| enabled | 1 |
設定個人代理 UDP 開關
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-proxy-config/udp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-proxy-config/udp
僅支援個人空間的登入態或個人 API Key;團隊 API Key 不支援。
Body parameter
{
"udp": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » udp | body | integer | true | 無 |
列舉值
| Parameter | Value |
|---|---|
| » udp | 0 |
| » udp | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"enabled": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請檢查業務 code,200 為成功。 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| enabled | 0 |
| enabled | 1 |
團隊錢包
查詢團隊錢包
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/wallet/detail?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/team/wallet/detail
需要 VIEW_BILLING 權限。團隊錢包獨立於超級管理員和成員的個人餘額。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
查詢團隊錢包流水
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/team/wallet/records?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/team/wallet/records
需要 VIEW_BILLING 權限。流水金額始終為正數,資金增減由 direction 欄位表示。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 無 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"operator_user_id": 0,
"creator": {
"user_id": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string"
},
"direction": 0,
"transaction_type": 1,
"amount": 0.1,
"after_balance": 0.1,
"link_id": 0,
"request_id": "string",
"remark": "string",
"created_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| direction | 0 |
| direction | 1 |
| transaction_type | 1 |
| transaction_type | 2 |
| transaction_type | 3 |
| transaction_type | 4 |
| transaction_type | 5 |
個人餘額轉入團隊錢包
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/wallet/transfer-in \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/wallet/transfer-in
僅團隊超級管理員具有 TRANSFER_BALANCE 權限。原子扣減其個人儲值餘額後增加團隊錢包;轉入金額不計入 total_recharge_fee,且不支援轉回個人餘額。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"amount": 9999999999.9999
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » amount | body | number(double) | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
團隊餘額轉回個人帳戶
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/team/wallet/transfer-out \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/team/wallet/transfer-out
僅超級管理員登入態可呼叫。原子扣減團隊錢包並增加其個人儲值餘額;不改變團隊或個人的累積儲值金額。解散中的團隊可用於回收餘額,已解散團隊無法呼叫。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"amount": 9999999999.9999
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | TeamPublicId | true | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » amount | body | number(double) | true | 不得超過團隊目前可用餘額 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;請繼續判斷回應體 code | Inline |
回應結構
IP擷取
提取IP (GET /api-gate-way/ip/get-ip)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/get-ip?app_key=pa%24%24word \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/get-ip
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 團隊 Key 可省略;傳入時必須與 Key 綁定團隊一致 |
| app_key | query | string(password) | true | 存取密鑰 |
| cc | query | string | false | 國家或地區 |
| state | query | string | false | 省或州 |
| city | query | string | false | 城市 |
| format | query | string | false | 取得格式 |
| lb | query | string | false | 間隔符,僅text格式有效 |
| num | query | number | false | 提取數量 |
| life | query | number | false | 保持週期-分鐘 |
| ep | query | string | false | 代理商網路 |
列舉值
| Parameter | Value |
|---|---|
| ep | us |
| ep | hk |
| ep | de |
回應範例
200 回應
{
"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"
]
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | true | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [any] | false | 無 | none |
城市列表 (GET /api-gate-way/ip/dynamic-area-city-list)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/dynamic-area-city-list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/dynamic-area-city-list
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"name_zh_cn": "美国",
"name_en": "United States",
"continent_code": "NA",
"country_code": "US",
"items": [
{
"city": "Arlington",
"state": "alabama",
"continent_code": "NA",
"country_code": "US"
}
]
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | true | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | 清單 |
| »»» name_zh_cn | string | false | 無 | 國家或地區名稱 |
| »»» name_en | string | false | 無 | 國家或地區名稱 |
| »»» continent_code | string | false | 無 | 大洲代碼 |
| »»» country_code | string | false | 無 | 國家或地區代碼 |
| »»» items | [any] | false | 無 | 省或州 |
| »»»» city | string | false | 無 | 城市名稱 |
| »»»» state | string | false | 無 | 省或州名稱代碼 |
| »»»» continent_code | string | false | 無 | 大洲代碼 |
| »»»» country_code | string | false | 無 | 國家或地區代碼 |
IP 擷取數量按天統計
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-extract-ip/days \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-extract-ip/days
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| start_date | query | string(date) | false | 預設 6 天前 |
| end_date | query | string(date) | false | 預設今天 |
| product_type | query | integer | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| product_type | 9 |
| product_type | 17 |
| product_type | 22 |
回應範例
200 回應
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"list": [
{
"count": 0,
"date": "2019-08-24"
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | none |
| » msg | string | false | 無 | none |
| » request_id | string | false | 無 | none |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | none |
| »»» count | integer | true | 無 | none |
| »»» date | string(date) | true | 無 | none |
提取IP (GET /api-gate-way/ip/v3)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/v3?app_key=pa%24%24word \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/v3
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 團隊 Key 可省略;傳入時必須與 Key 綁定團隊一致 |
| app_key | query | string(password) | true | 存取密鑰 |
| cc | query | string | false | 國家或地區 |
| state | query | string | false | 省或州 |
| city | query | string | false | 城市 |
| format | query | string | false | 取得格式 |
| lb | query | string | false | 間隔符,僅text格式有效 |
| num | query | number | false | 提取數量 |
| life | query | number | false | 保持週期-分鐘 |
| ep | query | string | false | 代理商網路 |
列舉值
| Parameter | Value |
|---|---|
| ep | us |
| ep | hk |
| ep | de |
回應範例
200 回應
{
"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"
]
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | true | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [any] | false | 無 | none |
動態地區城市列表V4
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/dcl4?username=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/dcl4
按使用者名稱取得城市列表,需要登入認證,且帳戶必須屬於目前用戶
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| username | query | string | true | 代理帳戶用戶名 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": {
"cache": true,
"list": [
{
"City": "Los Angeles",
"Area": "US",
"State": "California"
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» cache | boolean | false | 無 | 是否來自緩存 |
| »» list | [object] | false | 無 | none |
| »»» City | string | false | 無 | 城市 |
| »»» Area | string | false | 無 | 地區 |
| »»» State | string | false | 無 | 州/省 |
動態地區州/省列表V4
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/dsl4?username=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/dsl4
按使用者名稱取得州/省列表,需要登入認證,且帳戶必須屬於當前用戶
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| username | query | string | true | 代理帳戶用戶名 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": {
"cache": true,
"list": [
{
"City": "Los Angeles",
"Area": "US",
"State": "California"
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» cache | boolean | false | 無 | 是否來自緩存 |
| »» list | [object] | false | 無 | none |
| »»» City | string | false | 無 | 城市 |
| »»» Area | string | false | 無 | 地區 |
| »»» State | string | false | 無 | 州/省 |
動態地區州/省城市融合清單V4
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/dal4?username=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/dal4
按使用者名稱取得州/省和城市的融合列表,按地區分組。需要登入認證,且帳戶必須屬於目前用戶
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| username | query | string | true | 代理帳戶用戶名 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": {
"cache": true,
"list": [
{
"Area": "US",
"states": [
{
"State": "California",
"cities": [
"Los Angeles"
]
}
]
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» cache | boolean | false | 無 | 是否來自緩存 |
| »» list | [object] | false | 無 | 地區列表 |
| »»» Area | string | false | 無 | 地區代碼 |
| »»» states | [object] | false | 無 | 州/省列表 |
| »»»» State | string | false | 無 | 州/省名稱 |
| »»»» cities | [string] | false | 無 | 城市列表 |
城市列表 (GET /api-gate-way/ip/dynamic-citys)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/dynamic-citys \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/dynamic-citys
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"name_zh_cn": "美国",
"name_en": "United States",
"continent_code": "NA",
"country_code": "US",
"items": [
{
"city": "Arlington",
"state": "alabama",
"continent_code": "NA",
"country_code": "US"
}
]
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | true | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | 清單 |
| »»» name_zh_cn | string | false | 無 | 國家或地區名稱 |
| »»» name_en | string | false | 無 | 國家或地區名稱 |
| »»» continent_code | string | false | 無 | 大洲代碼 |
| »»» country_code | string | false | 無 | 國家或地區代碼 |
| »»» items | [any] | false | 無 | 省或州 |
| »»»» city | string | false | 無 | 城市名稱 |
| »»»» state | string | false | 無 | 省或州名稱代碼 |
| »»»» continent_code | string | false | 無 | 大洲代碼 |
| »»»» country_code | string | false | 無 | 國家或地區代碼 |
城市搜尋
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/dynamic-citys/search?country_code=string&state=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/dynamic-citys/search
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| country_code | query | string | true | 國家或地區代碼 |
| state | query | string | true | 州或省代碼 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": {
"list": [
"string"
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | true | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [string] | false | 無 | 清單 |
州列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/dynamic-states \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/dynamic-states
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"name_zh_cn": "美国",
"name_en": "United States",
"continent_code": "NA",
"country_code": "US",
"items": [
{
"state": "alabama",
"continent_code": "NA",
"country_code": "US"
}
]
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | true | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | 清單 |
| »»» name_zh_cn | string | false | 無 | 國家或地區名稱 |
| »»» name_en | string | false | 無 | 國家或地區名稱 |
| »»» continent_code | string | false | 無 | 大洲代碼 |
| »»» country_code | string | false | 無 | 國家或地區代碼 |
| »»» items | [any] | false | 無 | 省或州 |
| »»»» state | string | false | 無 | 省或州名稱代碼 |
| »»»» continent_code | string | false | 無 | 大洲代碼 |
| »»»» country_code | string | false | 無 | 國家或地區代碼 |
州/省搜索
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/dynamic-states/search?country_code=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/dynamic-states/search
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| country_code | query | string | true | 國家或地區代碼 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": {
"list": [
"string"
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | true | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [string] | false | 無 | 清單 |
取得已指派的資料中心靜態 IP 列表
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/ip/get-datacenter-assign-ip-list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/ip/get-datacenter-assign-ip-list
已廢棄,推薦使用 /openapi/user-product/datacenter-isp-ip-list。為相容於舊客戶端,本介面使用 POST 方法,但篩選參數均從 query 讀取。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串;團隊 Key 可省略,傳入時必須與 Key 一致 |
| area | query | string | false | 國家/地區代碼 |
| status | query | integer | false | 0=所有,1=有效,2=過期 |
| trade_no | query | string | false | 訂單編號 |
| created_at | query | array[string] | false | 創建時間範圍,必須同時傳開始和結束時間 |
列舉值
| Parameter | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"total": 0,
"list": [
{
"id": 1,
"ip": "string",
"country_code": "string",
"up_id": 1,
"expired_at": "string",
"created_at": "string",
"country_name_zh_cn": "string",
"country_name_en": "string",
"country_continent_code": "string",
"port": 1
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
提取已購買靜態IP列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/get-static-ip \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/get-static-ip
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| country_code | query | string | false | 國家或地區代碼 |
| product_type | query | number | false | 產品類型, 25:靜態住宅IP, 14: 資料中心IP |
| trade_no | query | string | false | 透過訂單號碼篩選IP |
| page | query | number | false | 頁碼 |
| size | query | number | false | 每頁數量 |
| status | query | number | false | 狀態, 1:有效, 2:無效, 3:即將過期, 4:維護中 |
列舉值
| Parameter | Value |
|---|---|
| product_type | 14 |
| product_type | 25 |
| status | 1 - 2 - 3 - 4 |
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|
取得在售地區靜態IP數量
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/ip/static-ip-region \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/ip/static-ip-region
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| isp | query | integer | false | ISP 篩選,不傳則不篩選(站點 1/4/5 除外預設為 1) |
| asn | query | integer | false | 是否返回 ASN 分組數據 |
| exclusive | query | integer | false | 是否依獨享庫存統計 |
Detailed descriptions
isp: ISP 篩選,不傳則不篩選(站點 1/4/5 除外預設為 1)
| 值 | 說明 |
|---|---|
| 0 | 資料中心靜態IP(IDC) |
| 1 | 家庭住宅靜態IP(ISP) |
asn: 是否返回 ASN 分組數據
| 值 | 說明 |
|---|---|
| 0 | 不傳回 ASN 分組資料(預設) |
| 1 | 返回 ASN 分組資料 |
exclusive: 是否依獨享庫存統計
| 值 | 說明 |
|---|---|
| 0 | 依目前使用者/共享群組口徑統計(預設) |
| 1 | 排除所有已分配IP,僅統計可用庫存 |
列舉值
| Parameter | Value |
|---|---|
| isp | 0 |
| isp | 1 |
| asn | 0 |
| asn | 1 |
| exclusive | 0 |
| exclusive | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "请求成功",
"data": {
"list": [
{
"code": "US",
"number": 55
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | 狀態碼,200 成功 |
| » msg | string | true | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [any] | false | 無 | none |
| »»» code | string | true | 無 | 國家或地區代碼 |
| »»» number | integer | true | 無 | 數量 |
取得 host_pool 支援國家/地區
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/host-pool/regions \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/host-pool/regions
查詢 host_pool 服務目前網站支援的國家/地區清單。
此介面面向資料中心 IP 按流量積分的隨機擷取場景,僅按目前站點可用資料中心 IP 庫存統計國家/地區。
回應範例
200 回應
{
"code": 200,
"msg": "请求成功",
"data": {
"list": [
{
"code": "US",
"number": 55,
"name_zh_cn": "美国",
"name_en": "United States",
"square_flag": "https://example.com/static/flags/us.png"
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | 狀態碼,200 成功 |
| » msg | string | true | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | none |
| »»» code | string | true | 無 | 國家或地區代碼,ISO 3166-1 alpha-2 |
| »»» number | integer | true | 無 | 目前站點可用資料中心 IP 數量 |
| »»» name_zh_cn | string | false | 無 | 國家或地區中文名稱 |
| »»» name_en | string | false | 無 | 國家或地區英文名稱 |
| »»» square_flag | string | false | 無 | 方形旗幟圖片 URL |
IP白名單
IP 白名單列表 (GET /api-gate-way/proxy-ip/list)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/proxy-ip/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/proxy-ip/list
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串 |
| product_type | query | integer | false | 套餐類型編號 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"ip": "1.1.1.1",
"remark": "string",
"product_type": 0,
"created_at": "string"
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | none |
| »»» ip | string | false | 無 | 白名單 IP |
| »»» remark | string | false | 無 | 備註 |
| »»» product_type | integer | false | 無 | 套餐類型 |
| »»» created_at | string | false | 無 | 創建時間 |
新增 IP 白名單 (POST /api-gate-way/proxy-ip/add)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/proxy-ip/add \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/proxy-ip/add
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"ips": "1.1.1.1,2.2.2.2",
"remark": "string",
"product_type": 0,
"user_product_id": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » ips | body | string | true | 需要新增的白名單 IP,多個用英文逗號或換行分隔 |
| » remark | body | string | false | 備註 |
| » product_type | body | integer | false | 套餐類型編號 |
| » user_product_id | body | integer | false | 用戶套餐 ID,套餐類型為 11 時必填 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
刪除 IP 白名單 (POST /api-gate-way/proxy-ip/delete)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/proxy-ip/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/proxy-ip/delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"ips": "1.1.1.1,2.2.2.2",
"verify_type": "string",
"verify_code": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » ips | body | string | true | 需要刪除的白名單 IP,多個以英文逗號分隔 |
| » verify_type | body | string | false | 驗證類型:phone、email、wechat、totp |
| » verify_code | body | string | false | 驗證碼 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
IP 白名單列表 (GET /api-gate-way/white-ip/list)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/white-ip/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/white-ip/list
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串 |
| product_type | query | integer | false | 套餐類型編號 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"ip": "1.1.1.1",
"remark": "string",
"product_type": 0,
"created_at": "string"
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | none |
| »»» ip | string | false | 無 | 白名單 IP |
| »»» remark | string | false | 無 | 備註 |
| »»» product_type | integer | false | 無 | 套餐類型 |
| »»» created_at | string | false | 無 | 創建時間 |
新增 IP 白名單 (POST /api-gate-way/white-ip/add)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/white-ip/add \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/white-ip/add
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"ips": "1.1.1.1,2.2.2.2",
"remark": "string",
"product_type": 0,
"user_product_id": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » ips | body | string | true | 需要新增的白名單 IP,多個用英文逗號或換行分隔 |
| » remark | body | string | false | 備註 |
| » product_type | body | integer | false | 套餐類型編號 |
| » user_product_id | body | integer | false | 用戶套餐 ID,套餐類型為 11 時必填 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
刪除 IP 白名單 (POST /api-gate-way/white-ip/delete)
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/white-ip/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/white-ip/delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"ips": "1.1.1.1,2.2.2.2",
"verify_type": "string",
"verify_code": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » app_key | body | string | false | 授權密鑰 |
| » ips | body | string | true | 需要刪除的白名單 IP,多個以英文逗號分隔 |
| » verify_type | body | string | false | 驗證類型:phone、email、wechat、totp |
| » verify_code | body | string | false | 驗證碼 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": null
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | null | false | 無 | none |
修改 IP 白名單備註
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/white-ip/change-remark \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/white-ip/change-remark
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"ip": "192.168.0.1",
"remark": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » ip | body | string(ipv4) | true | 無 |
| » remark | body | string | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
刷新目前資源空間 IP 白名單認證快取
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/white-ip/refresh \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/white-ip/refresh
Body parameter
{
"team_id": "A1b2C3d4E5f6"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
指定產品類型的 IP 白名單配額
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/white-ip/quota?product_type=0 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/white-ip/quota
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| product_type | query | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
所有產品類型的 IP 白名單配額
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/white-ip/quotas \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/white-ip/quotas
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
流量日誌查詢
近期使用流量按天匯總
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-usage-flow/days \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-usage-flow/days
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"days": 7,
"product_type": 0,
"username": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » days | body | integer | false | 無 |
| » product_type | body | integer | false | 無 |
| » username | body | string | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"days": "2019-08-24",
"flow": 0
}
],
"days": 1
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
代理帳戶歷史使用流量
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-usage-flow/username-total \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-usage-flow/username-total
Body parameter
{
"team_id": "A1b2C3d4E5f6"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"username": "string",
"flow": 0
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
匯出代理帳戶月度使用流量
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-usage-flow/export-csv \
-H 'Content-Type: application/json' \
-H 'Accept: text/csv' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-usage-flow/export-csv
Body parameter
{
"team_id": "A1b2C3d4E5f6"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
回應範例
200 回應
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | GBK 編碼 CSV 文件 | string |
套餐流量總量與剩餘量
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-usage-flow/flow-total \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-usage-flow/flow-total
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| unit | query | string | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| unit | KB |
| unit | MB |
| unit | GB |
| unit | TB |
| unit | PB |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"limit": 0,
"total": 0,
"remain": 0,
"unit": "KB",
"timestamp": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| unit | KB |
| unit | MB |
| unit | GB |
| unit | TB |
| unit | PB |
每日速率圖
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-usage-flow/rate-graph \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-usage-flow/rate-graph
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| start | query | string(date) | false | 無 |
| end | query | string(date) | false | 無 |
| username | query | string | false | 無 |
| user_product_id | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"date": "2019-08-24",
"rate": 0,
"corrent": 0
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
每日快取流量統計
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-usage-flow/cache-total \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-usage-flow/cache-total
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| start_time | query | string | false | 無 |
| end_time | query | string | false | 無 |
| product_type | query | integer | false | 無 |
| username | query | string | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"day": "2019-08-24",
"cache_flow": 0,
"cache_reduce_flow": 0
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
使用流量按天匯總
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-usage-flow/total?app_key=pa%24%24word \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-usage-flow/total
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串 |
| app_key | query | string(password) | true | 認證金鑰 |
| start_time | query | string(Y-m-d H:i:s) | false | 起始時間,可精確到秒。請注意,日誌記錄有5分鐘以內延遲。預設7天以內。 |
| end_time | query | string(Y-m-d H:i:s) | false | 截止時間,可精確到秒。請注意,日誌記錄有5分鐘以內延遲。預設當前時間。 |
| username | query | string | false | 子帳戶名稱,預設查詢所有帳戶,可指定子帳戶。請注意如果您新增了相同名稱的子帳戶,此查詢將傳回同名代理帳戶的所有使用記錄。 |
| product_type | query | number | false | 套餐類型 |
回應範例
200 回應
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"day": "2022-08-01",
"flow": 0
}
]
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | true | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | none |
| »»» day | string | false | 無 | 日期 |
| »»» flow | integer | false | 無 | 消耗流量,單位KB |
代理日誌
用戶端 IP 代理存取統計
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/http-t-dom/list-v2 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/http-t-dom/list-v2
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| start_time | query | string(date) | false | 無 |
| end_time | query | string(date) | false | 無 |
| export | query | string | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| export | csv |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"visit_count": 0,
"client_ip": "string",
"time": "2019-08-24",
"country_code": "string",
"country": "string"
}
],
"cache": true,
"ttl": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | JSON 統計結果;export=csv 時傳回 CSV 文件 | string |
用戶端 IP 存取佔比
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/http-t-dom/client-ip-proportion \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/http-t-dom/client-ip-proportion
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| start_time | query | string(date) | false | 無 |
| end_time | query | string(date) | false | 無 |
| export | query | string | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| export | csv |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"username": "string",
"client_ip": "string",
"visit_count": 0,
"visit_percentage": "string",
"country": "string",
"country_code": "string"
}
],
"cache": true,
"ttl": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | JSON 佔比結果;export=csv 時傳回 CSV 文件 | string |
套餐查詢
已購套餐列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-product/list?app_key=pa%24%24word \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-product/list
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串 |
| app_key | query | string(password) | true | 認證金鑰 |
| trade_no | query | string | false | 訂單編號,請輸入完整訂單編號。不支援模糊搜尋。 |
| page | query | number | false | 分頁,預設:1 |
| size | query | number | false | 分頁顯示數量,預設:20 |
| product_type | query | number | false | 套餐類型 |
回應範例
200 回應
{
"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
}
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | true | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» list | [object] | false | 無 | none |
| »»» id | integer | false | 無 | 套餐編號 |
| »»» created_at | string | false | 無 | 套餐生效時間 |
| »»» expired_at | string | false | 無 | 套餐過期時間,過期後流量無法使用。 |
| »»» product_type | productTypes | false | 無 | 套餐類型,9 動態住宅流量套餐、11 動態住宅IP、14靜態資料中心IP、25 靜態住宅IP |
| »»» trade_no | string | false | 無 | 訂單交易編號 |
| »»» order | object | false | 無 | none |
| »»»» created_at | string | false | 無 | 訂單創建時間 |
| »»»» pay_at | string | false | 無 | 訂單支付時間 |
| »»»» title | string | false | 無 | 訂單描述 |
| »» page | integer | true | 無 | 目前分頁 |
| »» page_size | integer | false | 無 | 分頁大小 |
| »» total_count | integer | false | 無 | 總記錄數量 |
| »» total_page | integer | false | 無 | 總分頁數量 |
列舉值
| 屬性 | 值 |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 14 |
| product_type | 25 |
用戶套餐數據匯總
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-product/summary?app_key=pa%24%24word \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-product/summary
獲取用戶套餐的統計匯總信息,包括總量、有效量、臨期量、過期量等
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串 |
| app_key | query | string(password) | true | 認證金鑰 |
| product_type | query | integer | false | 產品類型,僅支援 9(動態流量套餐)、12(長效IDC流量套餐) |
列舉值
| Parameter | Value |
|---|---|
| product_type | 9 |
| product_type | 12 |
回應範例
200 回應
{
"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 | OK | 請求成功 | Inline |
回應結構
Status Code 200
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效、156 帳戶未實名認證 |
| » msg | string | false | 無 | 狀態訊息 |
| » data | object | false | 無 | none |
| »» total | integer | false | 無 | 流量/IP總量(單位:KB) |
| »» total_count | integer | false | 無 | 套餐總個數 |
| »» effective | integer | false | 無 | 有效剩餘量(單位:KB) |
| »» effective_count | integer | false | 無 | 有效套餐數 |
| »» effective_total | integer | false | 無 | 有效總量(單位:KB) |
| »» effective_used | integer | false | 無 | 有效已使用量(單位:KB) |
| »» temporary | integer | false | 無 | 臨期總量(7天內到期,單位:KB) |
| »» temporary_count | integer | false | 無 | 臨期套餐個數(7天內到期) |
| »» expired | integer | false | 無 | 過期剩餘量(單位:KB) |
| »» expired_count | integer | false | 無 | 過期套餐數 |
| »» used | integer | false | 無 | 已使用總量(單位:KB) |
靜態 IP 列表
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/datacenter-isp-ip-list \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/datacenter-isp-ip-list
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"status": 0,
"page": 1,
"size": 20,
"user_product_id": 1,
"country_code": "string",
"product_type": 0,
"ip": "192.168.0.1",
"auto_renewal": 0,
"support_renewal": 0,
"remaining_days": 0,
"limit_days": 0,
"sort": "exp_asc",
"remark": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » status | body | integer | false | 無 |
| » page | body | integer | false | 無 |
| » size | body | integer | false | 無 |
| » user_product_id | body | integer | false | 無 |
| » country_code | body | string | false | 無 |
| » product_type | body | integer | false | 無 |
| » ip | body | string(ipv4) | false | 無 |
| » auto_renewal | body | integer | false | 無 |
| » support_renewal | body | integer | false | 無 |
| » remaining_days | body | integer | false | 無 |
| » limit_days | body | integer | false | 無 |
| » sort | body | string | false | 無 |
| » remark | body | string | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| » auto_renewal | 0 |
| » auto_renewal | 1 |
| » support_renewal | 0 |
| » support_renewal | 1 |
| » sort | exp_asc |
| » sort | exp_desc |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
刪除已過期套餐
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » id | body | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
大量刪除已過期套餐
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/batch-delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/batch-delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"ids": [
1
]
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » ids | body | [integer] | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
修改套餐備註
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/change-remark \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/change-remark
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1,
"remark": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » id | body | integer | true | 無 |
| » remark | body | string | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
批次設定靜態 IP UDP 開關
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/set-ip-udp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/set-ip-udp
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"ids": [
1
],
"udp": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » ids | body | [integer] | true | 無 |
| » udp | body | integer | true | 無 |
列舉值
| Parameter | Value |
|---|---|
| » udp | 0 |
| » udp | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
套餐管理
更換資料中心 ISP 靜態 IP
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/change-datacenter-isp-ip \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/change-datacenter-isp-ip
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1,
"country_code": "string",
"ip": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » id | body | integer | true | 用戶套餐 ID |
| » country_code | body | string | false | 目標國家代碼;不傳時優先沿用目前 IP 國家/地區 |
| » ip | body | string | false | 目標 IP 前綴篩選 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"ip_id": 1,
"ip": "string",
"country_code": "string"
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
取得靜態 IP 更換記錄
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/user-product/ip-change-log \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/user-product/ip-change-log
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 資源空間標識;個人空間省略或傳空字串 |
| page | query | integer | false | 無 |
| page_size | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"old": "string",
"new": "string",
"created_at": "string",
"created_timestamp": 0
}
],
"page": 1,
"page_size": 1,
"total_count": 0,
"page_count": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
設定單一套餐的自動續費開關
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/set-auto-renewal \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/set-auto-renewal
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1,
"status": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » user_product_id | body | integer | true | 無 |
| » status | body | integer | false | 0=停用,1=啟用 |
列舉值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
大量設定套餐自動續費開關
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/batch-set-auto-renewal \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/batch-set-auto-renewal
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"status": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » user_product_ids | body | [integer] | true | 無 |
| » status | body | integer | false | 0=停用,1=啟用 |
列舉值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"results": [
{
"user_product_id": 1,
"success": true,
"id": 1
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功;每個套餐獨立返回處理結果 | Inline |
回應結構
設定產品類型的預設自動續費參數
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/set-auto-renewal-default-config \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/set-auto-renewal-default-config
days_before_expire、traffic_threshold、renewal_cycle_days 至少傳一個;值為 0 表示重置對應配置。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"product_type": 9,
"days_before_expire": 30,
"traffic_threshold": 100,
"renewal_cycle_days": 0
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » product_type | body | integer | true | 無 |
| » days_before_expire | body | integer | false | 無 |
| » traffic_threshold | body | integer | false | 單位 GB,僅 9/12/24 支持 |
| » renewal_cycle_days | body | integer | false | 僅 11/14/16/25 支持,且必須是當前在售產品週期 |
| » anonymous | body | object | false | 無 |
| » anonymous | body | object | false | 無 |
| » anonymous | body | object | false | 無 |
列舉值
| Parameter | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 12 |
| » product_type | 14 |
| » product_type | 16 |
| » product_type | 24 |
| » product_type | 25 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功,data 為 null | Inline |
回應結構
取得產品類型的預設自動續費參數
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/get-auto-renewal-default-config \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/get-auto-renewal-default-config
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"product_type": 9
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » product_type | body | integer | false | 不傳則回傳全部支援類型 |
列舉值
| Parameter | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 12 |
| » product_type | 14 |
| » product_type | 16 |
| » product_type | 24 |
| » product_type | 25 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"configs": [
{
"product_type": 9,
"days_before_expire": 0,
"source": "user",
"renewal_cycle": {
"days": 1,
"unit": "day",
"source": "user"
},
"traffic_threshold": 0,
"traffic_source": "user"
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 12 |
| product_type | 14 |
| product_type | 16 |
| product_type | 24 |
| product_type | 25 |
| source | user |
| source | system |
| source | user |
| source | system |
| traffic_source | user |
| traffic_source | system |
取得單一套餐自動續費配置和續費預覽
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/get-auto-renewal \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/get-auto-renewal
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » user_product_id | body | integer | true | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"expired_at": "string",
"time_days": 0,
"time_unit": "day",
"next_expired_at": "string",
"agreed_price": 0,
"currency": "string",
"config": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_type": 0,
"left_traffic": 0,
"left_days": 0,
"user_product_id": 1,
"product_id": 0,
"status": 0,
"currency": "string",
"agreed_price": 0,
"agreed_bandwidth_price": 0,
"agreed_concurrency_price": 0,
"bandwidth_id": 0,
"concurrency_id": 0,
"duration": 0,
"renew_product_id": 0,
"days_before_expire": 0,
"traffic_threshold": 0,
"parent_product_type": 0,
"created_at": "string",
"updated_at": "string"
},
"traffic_threshold": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| time_unit | day |
| time_unit | hour |
| status | 0 |
| status | 1 |
取得自動續費執行記錄
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/user-product/auto-renewal-logs \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/user-product/auto-renewal-logs
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1,
"page": 1,
"size": 20
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » user_product_id | body | integer | false | 不傳則查詢目前空間全部記錄 |
| » page | body | integer | false | 無 |
| » size | body | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"config_id": 0,
"user_product_id": 1,
"product_type": 0,
"renew_product_id": 0,
"order_id": 0,
"fee": 0,
"currency": "string",
"before_expired_at": "string",
"after_expired_at": "string",
"before_remain": 0,
"after_remain": 0,
"trigger_type": 0,
"status": 1,
"revoke_at": "string",
"revoke_remark": "string",
"created_at": "string",
"updated_at": "string"
}
],
"page": 1,
"page_size": 1,
"total_page": 0,
"total_count": 0
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
列舉值
| 屬性 | 值 |
|---|---|
| trigger_type | 0 |
| trigger_type | 1 |
| status | 1 |
| status | 2 |
| status | 3 |
支付管理
拉起訂單支付
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/pay?trade_no=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/pay
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| trade_no | query | string | true | 無 |
| pm_id | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
後台開單未支付訂單拉起支付
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/pay/index-choose \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/pay/index-choose
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"trade_no": "string",
"pay_method": 0,
"pm_id": 0,
"trade_type": "string"
}
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 無 |
| » team_id | body | any | false | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| »» anonymous | body | string | false | 無 |
| »» anonymous | body | TeamPublicId | false | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| » trade_no | body | string | true | 無 |
| » pay_method | body | integer | false | 無 |
| » pm_id | body | integer | false | 無 |
| » trade_type | body | string | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
支付校驗和費用預覽
程式碼範例
# 也可以使用 wget
curl -X POST https://api.911proxy.com/api-gate-way/pay/pay-check?trade_no=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /api-gate-way/pay/pay-check
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| trade_no | query | string | true | 無 |
| pm_id | query | integer | false | 無 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"trade_no": "string",
"pm_id": 0,
"pay_method": 0,
"trade_type": "string",
"country_code": "string",
"currency": "string",
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0,
"pay_method_info": {
"id": 0,
"type": 0,
"title": "string",
"group": "string",
"handling_rate": 0,
"handling_fee": 0,
"handling_fee_currency": "usd",
"handling_fee_converted": 0
},
"origin": {
"pm_id": 0,
"pay_method": 0,
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0
}
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 請求成功 | Inline |
回應結構
直接渲染 Web 支付頁
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/pay/web-direct-pay?trade_no=string \
-H 'Accept: text/html' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/pay/web-direct-pay
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 無 |
| trade_no | query | string | true | 無 |
| pm_id | query | integer | false | 無 |
回應範例
200 回應
"string"
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | HTML 付款頁 | string |
取得付款方式列表 (GET /api-gate-way/payment/list)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/payment/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/payment/list
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| trade_no | query | string | false | 訂單號碼 - 部分訂單需要取得特定付款方式時可傳入 |
| currency | query | string | false | 貨幣單位 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"title": "string",
"logo": "string",
"group": "string",
"handling_rate": 0,
"handling_fee": 0,
"disabled": false,
"min": 0,
"max": 0
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 獲取成功 | Inline |
回應結構
取得付款方式列表 (GET /api-gate-way/payment/groups)
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/payment/groups \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/payment/groups
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| trade_no | query | string | false | 訂單號碼 - 部分訂單需要取得特定付款方式時可傳入 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"name": "string",
"logos": [
"string"
],
"items": [
{
"id": 0,
"title": "string",
"logo": "string",
"group": "string",
"disabled": false,
"min": 0,
"max": 0
}
]
}
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | 獲取成功 | Inline |
回應結構
行銷
儲值贈金比例
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/activity/balance-recharge-gift-ratio \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/activity/balance-recharge-gift-ratio
儲值贈金比例
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
null
]
},
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | OK | Inline |
回應結構
產品
產品列表
程式碼範例
# 也可以使用 wget
curl -X GET https://api.911proxy.com/api-gate-way/product \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /api-gate-way/product
取得目前網站可購買的套餐列表,支援按類型、有效期限等條件篩選。
參數
| 名稱 | 位置 | 類型 | 必填 | 描述 |
|---|---|---|---|---|
| type | query | integer | false | 套餐類型,請參閱 Product.type 列舉說明。不傳則傳回所有類型。 |
| parent_product_type | query | integer | false | 父套餐類型,僅 type=19(IP續費)時有效,用於篩選產品線:14=資料中心 25=住宅 |
| time_days | query | any | false | 有效期天數篩選,支援單值或數組,如 30 / [30,90,365] |
| show_type | query | any | false | 展示類型篩選,支援單值或數組 |
列舉值
| Parameter | Value |
|---|---|
| parent_product_type | 14 |
| parent_product_type | 25 |
回應範例
200 回應
{
"code": 200,
"msg": "SUCCESS",
"data": [
{
"id": 0,
"title": "string",
"type": 0,
"show_type": 0,
"status": 0,
"price": 0.1,
"usd_price": 0.1,
"price_hkd": 0.1,
"original_price": 0.1,
"original_usd_price": 0.1,
"original_price_hkd": 0.1,
"local_price": 0.1,
"local_original_price": 0.1,
"preferred_currency": "string",
"support_currencies": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"balance_value": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"time_days": 0,
"tip1": "string",
"tip2": "string",
"introduce": [
"string"
],
"region_list_id": 0,
"renew_product_list": "string",
"parent_product_type": 0,
"total_count": 0,
"remain_count": 0,
"extension_of_time_days": [
0
],
"time_days_price_rate": 0.1,
"desc": {
"subtitle": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"tip1": "string",
"tip2": "string",
"introduce": [
"string"
]
},
"sku": {
"bandwidth_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
],
"duration_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
],
"concurrency_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
]
}
}
],
"request_id": "string"
}
回應
| 狀態碼 | 含義 | 描述 | 資料模型 |
|---|---|---|---|
| 200 | OK | OK | Inline |
回應結構
資料結構
OpenApiAccountProfile
{
"id": 0,
"username": "string",
"nickname": "string",
"email": "string",
"balance": "string",
"gift_balance": "string",
"currency": "string",
"language": "string",
"timezone": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | true | 無 | 使用者 ID |
| username | string | true | 無 | 使用者名稱 |
| nickname | string | true | 無 | 暱稱 |
| string | true | 無 | 綁定信箱 | |
| balance | string | true | 無 | 儲值餘額,十進位字串 |
| gift_balance | string | true | 無 | 當前贈送餘額,十進位字串 |
| currency | string | true | 無 | 站點幣種 |
| language | string | true | 無 | 使用者語言,未設定時使用網站語言 |
| timezone | string | true | 無 | 使用者時區,未配置時使用站點時區 |
OpenApiBalanceRecord
{
"id": 0,
"re_type": 0,
"transaction_type": 0,
"balance_type": 0,
"fee": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer,string | false | 無 | 資料庫數值可能序列化為字串 |
| re_type | integer,string | false | 無 | 0 支出,1 收入 |
| transaction_type | integer,string | false | 無 | 交易類型 |
| balance_type | integer,string | false | 無 | 餘額類型 |
| fee | string,number | false | 無 | 變動金額,站點幣種 |
OpenApiLogExportTask
{
"id": 0,
"user_id": 0,
"start_time": "string",
"end_time": "string",
"status": "pending",
"file_size": 0,
"record_count": 0,
"created_at": "string",
"completed_at": "string",
"file_url": "string",
"download_url": "string",
"error_message": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer,string | false | 無 | 資料庫數值可能序列化為字串 |
| user_id | integer,string | false | 無 | 詳情介面返回 |
| start_time | string | false | 無 | Y-m-d H:i:s;非 RFC 3339 日期 |
| end_time | string | false | 無 | Y-m-d H:i:s;非 RFC 3339 日期 |
| status | string | false | 無 | none |
| file_size | integer,string,null | false | 無 | none |
| record_count | integer,string,null | false | 無 | none |
| created_at | string | false | 無 | Y-m-d H:i:s;非 RFC 3339 日期 |
| completed_at | string | false | 無 | Y-m-d H:i:s;非 RFC 3339 日期 |
| file_url | string | false | 無 | 完成後詳情介面返回 |
| download_url | string | false | 無 | 完成後返回,有效期 24 小時的簽名下載地址 |
| error_message | string | false | 無 | 失敗時詳情介面可能返回 |
列舉值
| 屬性 | 值 |
|---|---|
| status | pending |
| status | processing |
| status | completed |
| status | failed |
| status | canceled |
| status | no_data |
OpenApiCoupon
{
"id": 0,
"coupon_id": 0,
"type": 0,
"status": 0,
"source": 0,
"title": "string",
"title_en": "string",
"description": "string",
"description_en": "string",
"start_amount": "string",
"start_amount_usd": "string",
"start_amount_hkd": "string",
"deduction_amount": "string",
"deduction_amount_usd": "string",
"deduction_amount_hkd": "string",
"discount_rate": "string",
"discount_ceiling_amount": "string",
"discount_ceiling_amount_usd": "string",
"discount_ceiling_amount_hkd": "string",
"created_at": "string",
"effect_at": "string",
"expired_at": "string",
"used_at": "string",
"product_types": "string",
"created_timestamp": 0,
"effect_timestamp": 0,
"expired_timestamp": 0,
"used_timestamp": 0,
"is_expired": true
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer,string | false | 無 | 資料庫數值可能序列化為字串 |
| coupon_id | integer,string | false | 無 | 資料庫數值可能序列化為字串 |
| type | integer,string | false | 無 | 資料庫數值可能序列化為字串 |
| status | integer,string | false | 無 | 資料庫數值可能序列化為字串 |
| source | integer,string | false | 無 | 資料庫數值可能序列化為字串 |
| title | string | false | 無 | none |
| title_en | string | false | 無 | none |
| description | string | false | 無 | none |
| description_en | string | false | 無 | none |
| start_amount | string,number,null | false | 無 | none |
| start_amount_usd | string,number,null | false | 無 | none |
| start_amount_hkd | string,number,null | false | 無 | none |
| deduction_amount | string,number,null | false | 無 | none |
| deduction_amount_usd | string,number,null | false | 無 | none |
| deduction_amount_hkd | string,number,null | false | 無 | none |
| discount_rate | string,number,null | false | 無 | none |
| discount_ceiling_amount | string,number,null | false | 無 | none |
| discount_ceiling_amount_usd | string,number,null | false | 無 | none |
| discount_ceiling_amount_hkd | string,number,null | false | 無 | none |
| created_at | string,null | false | 無 | Y-m-d H:i:s |
| effect_at | string,null | false | 無 | Y-m-d H:i:s |
| expired_at | string,null | false | 無 | Y-m-d H:i:s |
| used_at | string,null | false | 無 | Y-m-d H:i:s |
| product_types | string,null | false | 無 | 適用套餐類型 |
| created_timestamp | integer,null | false | 無 | none |
| effect_timestamp | integer,null | false | 無 | none |
| expired_timestamp | integer,null | false | 無 | none |
| used_timestamp | integer,null | false | 無 | none |
| is_expired | boolean | false | 無 | 列表介面返回 |
OpenApiNotification
{
"id": 0,
"title": "string",
"content": "string",
"type": 0,
"read_status": 0,
"created_at": "string",
"created_timestamp": 0
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer,string | false | 無 | 資料庫數值可能序列化為字串 |
| title | string | false | 無 | none |
| content | string | false | 無 | 按請求語言渲染的內容 |
| type | integer,string | false | 無 | 資料庫數值可能序列化為字串 |
| read_status | integer | false | 無 | none |
| created_at | string | false | 無 | Y-m-d H:i:s;非 RFC 3339 日期 |
| created_timestamp | integer | false | 無 | none |
列舉值
| 屬性 | 值 |
|---|---|
| read_status | 0 |
| read_status | 1 |
productTypes
9
套餐類型,9 動態住宅流量套餐、11 動態住宅IP、14靜態資料中心IP、25 靜態住宅IP
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | integer | false | 無 | 套餐類型,9 動態住宅流量套餐、11 動態住宅IP、14靜態資料中心IP、25 靜態住宅IP |
列舉值
| 屬性 | 值 |
|---|---|
| anonymous | 9 |
| anonymous | 11 |
| anonymous | 14 |
| anonymous | 25 |
apiKey
"pa$$word"
API Key;使用 apiKeyAuth 或操作聲明的請求參數傳遞
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | string(password) | false | 無 | API Key;使用 apiKeyAuth 或操作聲明的請求參數傳遞 |
responseCode
200
狀態碼,200 成功、3 app_key 無效
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | integer | false | 無 | 狀態碼,200 成功、3 app_key 無效 |
responseMsg
"success"
response message
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | string | false | 無 | response message |
SuccessResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
屬性
None
ErrorResponse
{
"code": 2,
"msg": "parameter error",
"data": {},
"request_id": "string"
}
屬性
None
WebV1SuccessResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| code | integer | true | 無 | none |
| msg | string | true | 無 | none |
| data | object,array,string,number,boolean,null | true | 無 | 業務數據,具體類型由介面定義 |
| request_id | string | true | 無 | 請求鏈路追蹤 ID |
WebV1ErrorResponse
{
"code": 2,
"msg": "parameter error",
"data": {},
"request_id": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| code | integer | true | 無 | 業務錯誤碼 |
not
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » anonymous | any | false | 無 | none |
continued
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| msg | string | true | 無 | 錯誤描述 |
| data | object,array,null | true | 無 | 錯誤附加數據,無附加數據時為 null |
| request_id | string | true | 無 | 請求鏈路追蹤 ID |
TeamPublicId
"A1b2C3d4E5f6"
團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | string | false | 無 | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
ResourceSpaceId
"A1b2C3d4E5f6"
公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識
屬性
oneOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | string | false | 無 | none |
xor
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | TeamPublicId | false | 無 | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
Team
{
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | TeamPublicId | true | 無 | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| name | string | true | 無 | 團隊名稱 |
| super_admin_user_id | integer | true | 無 | 超級管理員用戶 ID |
| status | integer | true | 無 | 團隊狀態:0=禁用,1=有效,2=解散中,3=已解散 |
| current_role | integer,null | true | 無 | 當前使用者在團隊中的角色;無法確定時為 null |
| dissolving_at | string,null | true | 無 | 開始解散時間 |
| dissolved_at | string,null | true | 無 | 解散完成時間 |
| created_at | string | true | 無 | 創建時間 |
| updated_at | string | true | 無 | 更新時間 |
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
TeamAsset
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | true | 無 | 用戶套餐 ID |
| user_id | integer | true | 無 | 資源所有人使用者 ID |
| team_id | ResourceSpaceId | true | 無 | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| team_user_id | integer | true | 無 | 實際建立成員使用者 ID |
| product_id | integer | true | 無 | 產品 ID |
| product_type | integer | true | 無 | 產品類型 |
| parent_product_type | integer | true | 無 | 父產品類型 |
| status | integer | true | 無 | 套餐狀態 |
| total_amount | integer(int64) | true | 無 | 總量 |
| remain | integer(int64) | true | 無 | 剩餘量 |
| bandwidth | integer | false | 無 | 頻寬(Mbps);僅 product_type=19 或 11 返回 |
| concurrency | integer | false | 無 | 並發數;僅 product_type=11 返回 |
| expired_at | string,null | true | 無 | 過期時間 |
| created_at | string | true | 無 | 創建時間 |
| ip | string | false | 無 | 靜態 IP 位址;僅 product_type=19 返回 |
| country_code | string | false | 無 | 靜態 IP 國家代碼;僅 product_type=19 返回 |
| country_name | string | false | 無 | 靜態 IP 國家名稱;僅 product_type=19 傳回 |
| asn | string | false | 無 | 靜態 IP ASN;僅 product_type=19 返回 |
| port | integer | false | 無 | 靜態 IP 代理埠;僅 product_type=19 返回 |
TeamProductInfo
{
"team_id": "A1b2C3d4E5f6",
"product_types": [
0
],
"product_residence_remain_count": 0,
"product_residence_total_count": 0,
"pdrue2_timestamp": 0,
"remain": 0,
"total_amount": 0,
"scraping_remain": 0,
"scraping_total_amount": 0,
"scraping_timestamp": "string",
"scraping_timestamp2": 0,
"common_scraping_remain": 0,
"common_scraping_total_amount": 0,
"common_scraping_timestamp": "string",
"common_scraping_timestamp2": 0,
"pdidcr_count": 0,
"pdidcr_total": 0,
"pdidcr_traffic_remain": 0,
"pdidcr_traffic_total": 0,
"p_sitai_ip_count": 0,
"p_sitai_ip": 0,
"p_sitai_ip_total": 0,
"p_sitai_remain": 0,
"p_sitai_total": 0,
"pdidc_count": 0,
"pdidc_total": 0,
"pdidc_ip_count": 0,
"pdidc_ip_all_count": 0,
"pdispr_count": 0,
"pdispr_total": 0,
"pdispr_traffic_remain": 0,
"pdispr_traffic_total": 0,
"product_datacenter_isp_traffic_ip_count": 0,
"product_datacenter_isp_traffc_ip": 0,
"product_datacenter_isp_traffc_ip_total": 0,
"product_datacenter_isp_traffic_ip": 0,
"product_datacenter_isp_traffic_ip_total": 0,
"product_datacenter_isp_traffc_remain": 0,
"product_datacenter_isp_traffc_total": 0,
"product_datacenter_isp_traffic_remain": 0,
"product_datacenter_isp_traffic_total": 0,
"product_datacenter_isp_ip": 0,
"product_datacenter_isp_ip_total": 0,
"product_datacenter_isp_ip_count": 0,
"product_datacenter_isp_ip_all_count": 0,
"product_datacenter_isp_ip_traffic_remain": 0,
"product_datacenter_isp_ip_traffic_total": 0,
"product_agent_residence_remain_count": 0,
"product_agent_residence_total_count": 0,
"product_serp_remain": 0,
"product_serp_total": 0,
"product_serp_timestamp": "string",
"product_serp_timestamp2": 0,
"product_video_remain": 0,
"product_video_total": 0,
"product_video_timestamp": "string",
"product_video_timestamp2": 0
}
套餐統計欄位與 /web_v1/user/info 保持一致;取消、退款或軟刪除記錄不計入摘要;除 team_id、product_types 外,僅傳回目前網站支援產品類型對應的字段
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| team_id | TeamPublicId | true | 無 | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| product_types | [integer] | true | 無 | 團隊資源空間未取消、未軟體刪除且目前網站支援的套餐類型 |
| product_residence_remain_count | integer(int64) | false | 無 | 類型 9 剩餘流量 |
| product_residence_total_count | integer(int64) | false | 無 | 類型 9 總流量 |
| pdrue2_timestamp | integer(int64) | false | 無 | 類型 11 最晚過期時間戳記;無團隊套餐時為 0 |
| remain | integer,string | false | 無 | 類型 17 剩餘數量 |
| total_amount | integer,string | false | 無 | 類型 17 總數量 |
| scraping_remain | integer(int64) | false | 無 | 類型 18 剩餘次數 |
| scraping_total_amount | integer(int64) | false | 無 | 類型 18 總次數 |
| scraping_timestamp | string | false | 無 | 類型 18 最晚過期時間;無套餐時為 "-" |
| scraping_timestamp2 | integer(int64) | false | 無 | 類型 18 最晚過期時間戳 |
| common_scraping_remain | integer(int64) | false | 無 | 類型 29 剩餘次數 |
| common_scraping_total_amount | integer(int64) | false | 無 | 類型 29 總次數 |
| common_scraping_timestamp | string | false | 無 | 類型 29 最晚過期時間;無套餐時為 "-" |
| common_scraping_timestamp2 | integer(int64) | false | 無 | 類型 29 最晚過期時間戳 |
| pdidcr_count | integer | false | 無 | 類型 12 有效套餐數量 |
| pdidcr_total | integer | false | 無 | 類型 12 套餐總數 |
| pdidcr_traffic_remain | integer(int64) | false | 無 | 類型 12 剩餘流量 |
| pdidcr_traffic_total | integer(int64) | false | 無 | 類型 12 總流量 |
| p_sitai_ip_count | integer | false | 無 | 類型 13 有效 IP 數量 |
| p_sitai_ip | integer | false | 無 | 類型 13 有效套餐數量 |
| p_sitai_ip_total | integer | false | 無 | 類型 13 套餐總數 |
| p_sitai_remain | integer(int64) | false | 無 | 類型 13/24 剩餘流量 |
| p_sitai_total | integer(int64) | false | 無 | 類型 13/24 總流量 |
| pdidc_count | integer | false | 無 | 類型 14 有效套餐數量 |
| pdidc_total | integer | false | 無 | 類型 14 套餐總數 |
| pdidc_ip_count | integer | false | 無 | 類型 14 有效 IP 數量 |
| pdidc_ip_all_count | integer | false | 無 | 類型 14 IP 總數 |
| pdispr_count | integer | false | 無 | 類型 15 有效套餐數量 |
| pdispr_total | integer | false | 無 | 類型 15 套餐總數 |
| pdispr_traffic_remain | integer(int64) | false | 無 | 類型 15 剩餘流量 |
| pdispr_traffic_total | integer(int64) | false | 無 | 類型 15 總流量 |
| product_datacenter_isp_traffic_ip_count | integer | false | 無 | 類型 16 有效 IP 數量 |
| product_datacenter_isp_traffc_ip | integer | false | 無 | 類型 16 有效套餐數量;歷史相容拼字 |
| product_datacenter_isp_traffc_ip_total | integer | false | 無 | 類型 16 套餐總數;歷史相容拼寫 |
| product_datacenter_isp_traffic_ip | integer | false | 無 | 類型 16 有效套餐數量 |
| product_datacenter_isp_traffic_ip_total | integer | false | 無 | 類型 16 套餐總數 |
| product_datacenter_isp_traffc_remain | integer(int64) | false | 無 | 類型 16/24 剩餘流量;歷史相容拼字 |
| product_datacenter_isp_traffc_total | integer(int64) | false | 無 | 類型 16/24 總流量;歷史相容拼字 |
| product_datacenter_isp_traffic_remain | integer(int64) | false | 無 | 類型 16/24 剩餘流量 |
| product_datacenter_isp_traffic_total | integer(int64) | false | 無 | 類型 16/24 總流量 |
| product_datacenter_isp_ip | integer | false | 無 | 類型 21 或 25 有效套餐數量 |
| product_datacenter_isp_ip_total | integer | false | 無 | 類型 21 或 25 套餐總數 |
| product_datacenter_isp_ip_count | integer | false | 無 | 類型 21 或 25 有效 IP 數量 |
| product_datacenter_isp_ip_all_count | integer | false | 無 | 類型 21 或 25 IP 總數 |
| product_datacenter_isp_ip_traffic_remain | integer(int64) | false | 無 | 類型 21 對應類型 24 剩餘流量 |
| product_datacenter_isp_ip_traffic_total | integer(int64) | false | 無 | 類型 21 對應類型 24 總流量 |
| product_agent_residence_remain_count | integer(int64) | false | 無 | 類型 22 剩餘流量 |
| product_agent_residence_total_count | integer(int64) | false | 無 | 類型 22 總流量 |
| product_serp_remain | integer(int64) | false | 無 | 類型 27 剩餘次數 |
| product_serp_total | integer(int64) | false | 無 | 類型 27 總次數 |
| product_serp_timestamp | string | false | 無 | 類型 27 最晚過期時間;無套餐時為 "-" |
| product_serp_timestamp2 | integer(int64) | false | 無 | 類型 27 最晚過期時間戳 |
| product_video_remain | integer(int64) | false | 無 | 類型 28 剩餘流量 |
| product_video_total | integer(int64) | false | 無 | 類型 28 總流量 |
| product_video_timestamp | string | false | 無 | 類型 28 最晚過期時間;無套餐時為 "-" |
| product_video_timestamp2 | integer(int64) | false | 無 | 類型 28 最晚過期時間戳 |
TeamWallet
{
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
}
團隊錢包,與超級管理員個人餘額隔離;金額使用目前網站預設貨幣,最多 4 位小數。
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| team_id | TeamPublicId | true | 無 | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| balance | number(double) | true | 無 | 目前可用團隊餘額 |
| total_recharge_fee | number(double) | true | 無 | 目前未消費的團隊儲值本金,不含個人餘額轉入金額 |
| updated_at | string | true | 無 | 錢包最近變更時間 |
TeamWalletRecord
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"operator_user_id": 0,
"creator": {
"user_id": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string"
},
"direction": 0,
"transaction_type": 1,
"amount": 0.1,
"after_balance": 0.1,
"link_id": 0,
"request_id": "string",
"remark": "string",
"created_at": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | true | 無 | none |
| team_id | TeamPublicId | true | 無 | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| operator_user_id | integer | true | 無 | 操作人,系統退款為 0 |
| creator | TeamCreator | false | 無 | none |
| direction | integer | true | 無 | 0=支出,1=收入 |
| transaction_type | integer | true | 無 | 1=充值入賬,2=個人餘額轉入,3=餘額消費,4=退款或儲值退款扣回,5=轉回個人餘額 |
| amount | number(double) | true | 無 | 本次變動金額,方向由 direction 表示 |
| after_balance | number(double) | true | 無 | 變動後的團隊錢包餘額 |
| link_id | integer | true | 無 | 關聯訂單 ID;個人餘額轉入時為操作使用者 ID |
| request_id | string | true | 無 | none |
| remark | string | true | 無 | none |
| created_at | string | true | 無 | none |
列舉值
| 屬性 | 值 |
|---|---|
| direction | 0 |
| direction | 1 |
| transaction_type | 1 |
| transaction_type | 2 |
| transaction_type | 3 |
| transaction_type | 4 |
| transaction_type | 5 |
TeamCreator
{
"user_id": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| user_id | integer | true | 無 | 操作人使用者 ID;系統操作為 0 |
| display_name | string | true | 無 | 展示名稱,依序取暱稱、使用者名稱、信箱、手機號 |
| nickname | string | true | 無 | none |
| username | string | true | 無 | none |
| string | true | 無 | 非管理員視角為脫敏值 | |
| phone | string | true | 無 | 非管理員視角為脫敏值 |
TeamResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | Team | false | 無 | none |
TeamListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | object | false | 無 | none |
| »» list | [Team] | true | 無 | none |
| »» total | integer | true | 無 | none |
| »» page | integer | true | 無 | none |
| »» page_size | integer | true | 無 | none |
TeamMemberListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | object | false | 無 | none |
| »» list | [TeamMember] | true | 無 | none |
| »» total | integer | true | 無 | none |
| »» page | integer | true | 無 | none |
| »» page_size | integer | true | 無 | none |
TeamPersonListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"record_type": "member",
"record_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 0,
"inviter_user_id": 0,
"invite_type": 0,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 0,
"role": 1,
"status": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string",
"joined_at": "string",
"expired_at": "string",
"created_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | object | false | 無 | none |
| »» list | [TeamPerson] | true | 無 | none |
| »» total | integer | true | 無 | none |
| »» page | integer | true | 無 | none |
| »» page_size | integer | true | 無 | none |
TeamAssetResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | TeamAsset | false | 無 | none |
TeamProductInfoResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"product_types": [
0
],
"product_residence_remain_count": 0,
"product_residence_total_count": 0,
"pdrue2_timestamp": 0,
"remain": 0,
"total_amount": 0,
"scraping_remain": 0,
"scraping_total_amount": 0,
"scraping_timestamp": "string",
"scraping_timestamp2": 0,
"common_scraping_remain": 0,
"common_scraping_total_amount": 0,
"common_scraping_timestamp": "string",
"common_scraping_timestamp2": 0,
"pdidcr_count": 0,
"pdidcr_total": 0,
"pdidcr_traffic_remain": 0,
"pdidcr_traffic_total": 0,
"p_sitai_ip_count": 0,
"p_sitai_ip": 0,
"p_sitai_ip_total": 0,
"p_sitai_remain": 0,
"p_sitai_total": 0,
"pdidc_count": 0,
"pdidc_total": 0,
"pdidc_ip_count": 0,
"pdidc_ip_all_count": 0,
"pdispr_count": 0,
"pdispr_total": 0,
"pdispr_traffic_remain": 0,
"pdispr_traffic_total": 0,
"product_datacenter_isp_traffic_ip_count": 0,
"product_datacenter_isp_traffc_ip": 0,
"product_datacenter_isp_traffc_ip_total": 0,
"product_datacenter_isp_traffic_ip": 0,
"product_datacenter_isp_traffic_ip_total": 0,
"product_datacenter_isp_traffc_remain": 0,
"product_datacenter_isp_traffc_total": 0,
"product_datacenter_isp_traffic_remain": 0,
"product_datacenter_isp_traffic_total": 0,
"product_datacenter_isp_ip": 0,
"product_datacenter_isp_ip_total": 0,
"product_datacenter_isp_ip_count": 0,
"product_datacenter_isp_ip_all_count": 0,
"product_datacenter_isp_ip_traffic_remain": 0,
"product_datacenter_isp_ip_traffic_total": 0,
"product_agent_residence_remain_count": 0,
"product_agent_residence_total_count": 0,
"product_serp_remain": 0,
"product_serp_total": 0,
"product_serp_timestamp": "string",
"product_serp_timestamp2": 0,
"product_video_remain": 0,
"product_video_total": 0,
"product_video_timestamp": "string",
"product_video_timestamp2": 0
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | TeamProductInfo | false | 無 | 套餐統計欄位與 /web_v1/user/info 保持一致;取消、退款或軟刪除記錄不計入摘要;除 team_id、product_types 外,僅傳回目前網站支援產品類型對應的字段 |
TeamWalletResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | TeamWallet | false | 無 | 團隊錢包,與超級管理員個人餘額隔離;金額使用目前網站預設貨幣,最多 4 位小數。 |
TeamWalletRecordListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"operator_user_id": 0,
"creator": {
"user_id": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string"
},
"direction": 0,
"transaction_type": 1,
"amount": 0.1,
"after_balance": 0.1,
"link_id": 0,
"request_id": "string",
"remark": "string",
"created_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | object | false | 無 | none |
| »» list | [TeamWalletRecord] | true | 無 | none |
| »» total | integer | true | 無 | none |
| »» page | integer | true | 無 | none |
| »» page_size | integer | true | 無 | none |
TeamAssetListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | object | false | 無 | none |
| »» list | [TeamAsset] | true | 無 | none |
| »» total | integer | true | 無 | none |
| »» page | integer | true | 無 | none |
| »» page_size | integer | true | 無 | none |
UserApiKeyMetadata
{
"id": 1,
"api_key": "string",
"team_user_id": 0,
"remark": "string",
"status": 0,
"created_at": "string",
"updated_at": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | true | 無 | API Key ID |
| api_key | string | true | 無 | 建立響應為完整 Key;團隊清單中為脫敏值 |
| team_user_id | integer | true | 無 | 團隊 Key 實際持有成員 ID,個人 Key 為 0 |
| remark | string | true | 無 | 備註 |
| status | integer | true | 無 | 0=停用,1=啟用 |
| created_at | string | true | 無 | 創建時間 |
| updated_at | string,null | false | 無 | 更新時間 |
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
InvoiceInfo
{
"invoice_code": "string",
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 1,
"invoice_type": 0,
"vat_id": "string",
"tax_no": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"bank_name": "string",
"bank_account": "string",
"is_def": true
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| invoice_code | string | false | 無 | none |
| name | string | false | 無 | none |
| org_name | string | false | 無 | none |
| first_name | string | false | 無 | none |
| last_name | string | false | 無 | none |
| phone | string | false | 無 | none |
| string(email) | false | 無 | none | |
| role_type | integer | false | 無 | none |
| invoice_type | integer | false | 無 | none |
| vat_id | string | false | 無 | none |
| tax_no | string | false | 無 | none |
| address_country | string | false | 無 | none |
| address_city | string | false | 無 | none |
| address_line1 | string | false | 無 | none |
| address_line2 | string | false | 無 | none |
| address_postal_code | string | false | 無 | none |
| bank_name | string | false | 無 | none |
| bank_account | string | false | 無 | none |
| is_def | boolean | false | 無 | none |
列舉值
| 屬性 | 值 |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
MonthlyRenewalRequest
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"user_coupon_id": 1,
"coupon_sn": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| team_id | ResourceSpaceId | false | 無 | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| user_product_ids | any | true | 無 | 使用者套餐 ID 數組,也相容於英文逗號分隔字串 |
oneOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » anonymous | [integer] | false | 無 | none |
xor
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » anonymous | string | false | 無 | none |
continued
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| user_coupon_id | integer | false | 無 | none |
| coupon_sn | string | false | 無 | none |
TeamInvitation
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | true | 無 | 邀請 ID |
| team_id | TeamPublicId | true | 無 | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| inviter_user_id | integer | true | 無 | 邀請人用戶 ID |
| invitee_user_id | integer | true | 無 | 受邀用戶 ID,尚未比對註冊用戶時為 0 |
| invite_type | integer | true | 無 | 邀請類型:1=已註冊用戶,2=信箱,3=手機號 |
| invite_country_code | integer | true | 無 | 手機號國家或地區碼,非手機號邀請為 0 |
| invite_target | string | true | 無 | 標準化後的邀請目標;已註冊使用者為 user:{user_id} |
| delivery_type | integer | true | 無 | 原始投遞管道:1=已註冊用戶,2=郵箱,3=手機號碼;郵箱或手機號碼匹配到已註冊用戶時仍保留原始頻道 |
| role | integer | true | 無 | 目標角色:2=管理員,3=普通成員 |
| status | integer | true | 無 | 邀請狀態:0=待處理,1=已接受,2=已拒絕,3=已取消,4=過期 |
| accepted_by_user_id | integer | true | 無 | 接受人用戶 ID,未接受時為 0 |
| expired_at | string | true | 無 | 過期時間,格式 YYYY-MM-DD HH:mm:ss |
| accepted_at | string,null | true | 無 | 接受時間 |
| rejected_at | string,null | true | 無 | 拒絕時間 |
| cancelled_at | string,null | true | 無 | 取消時間 |
| created_at | string | true | 無 | 建立時間,格式 YYYY-MM-DD HH:mm:ss |
列舉值
| 屬性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
TeamMember
{
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| team_member_id | integer | true | 無 | 會員關係 ID |
| team_id | TeamPublicId | true | 無 | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| user_id | integer | true | 無 | 成員用戶 ID |
| role | integer | true | 無 | 角色:1=超級管理員,2=管理員,3=普通成員,4=財務成員 |
| status | integer | true | 無 | 成員狀態:0=停用,1=有效,2=已退出,3=已移除 |
| joined_at | string,null | true | 無 | 加入時間,格式 YYYY-MM-DD HH:mm:ss |
| nickname | string | true | 無 | 成員暱稱 |
| username | string | true | 無 | 會員使用者名稱 |
列舉值
| 屬性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
TeamPerson
{
"record_type": "member",
"record_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 0,
"inviter_user_id": 0,
"invite_type": 0,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 0,
"role": 1,
"status": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string",
"joined_at": "string",
"expired_at": "string",
"created_at": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| record_type | string | true | 無 | 記錄類型;member 為有效成員,invitation 為待處理邀請 |
| record_id | integer | true | 無 | 會員關係 ID 或邀請 ID |
| team_id | TeamPublicId | true | 無 | 團隊公開標識,首字為 ASCII 字母,其餘字元僅包含 ASCII 字母和數字;不下發資料庫數字主鍵 |
| user_id | integer | true | 無 | 用戶 ID,未註冊受邀用戶為 0 |
| inviter_user_id | integer | true | 無 | 邀請人使用者 ID,成員記錄為 0 |
| invite_type | integer | true | 無 | 邀請類型,成員記錄為 0 |
| invite_country_code | integer | true | 無 | 手機號國家或地區碼,會員記錄為 0 |
| invite_target | string | true | 無 | 邀請目標,成員記錄為空字串 |
| delivery_type | integer | true | 無 | 原始投遞管道,成員記錄為 0 |
| role | integer | true | 無 | 角色:1=超級管理員,2=管理員,3=普通成員,4=財務成員 |
| status | integer | true | 無 | member 固定為 1,invitation 固定為 0 |
| display_name | string | true | 無 | 統一展示名稱,依序取暱稱、使用者名稱、信箱、手機號;一般成員視角下聯絡方式使用脫敏值 |
| nickname | string | true | 無 | 成員或已註冊受邀用戶暱稱 |
| username | string | true | 無 | 會員或已註冊受邀用戶名 |
| string | true | 無 | 郵箱;超級管理員和管理員傳回完整值,普通成員傳回帶有星號的脫敏值 | |
| phone | string | true | 無 | 手機號碼;超級管理員和管理員返回完整值,普通成員返回帶有星號的脫敏值 |
| joined_at | string,null | true | 無 | 成員加入時間,邀請記錄為 null |
| expired_at | string,null | true | 無 | 邀請過期時間,成員記錄為 null |
| created_at | string | true | 無 | 記錄建立時間,格式 YYYY-MM-DD HH:mm:ss |
列舉值
| 屬性 | 值 |
|---|---|
| record_type | member |
| record_type | invitation |
| invite_type | 0 |
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 0 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
TeamInvitationResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | TeamInvitation | false | 無 | none |
TeamMemberResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | TeamMember | false | 無 | none |
TeamInvitationCreateResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"invitation_token": "string",
"invitation_url": "http://example.com",
"notification_channels": {
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | object | false | 無 | none |
| »» invitation | TeamInvitation | true | 無 | none |
| »» invitation_token | string | true | 無 | 明文邀請令牌,僅為相容既有客戶端保留;新客戶端直接使用 invitation_url |
| »» invitation_url | string(uri) | true | 無 | 包含邀請令牌的前端處理鏈接 |
| »» notification_channels | TeamInvitationNotificationChannels | true | 無 | none |
TeamInvitationNotificationChannels
{
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| string | false | 無 | 郵件頻道結果 | |
| sms | string | false | 無 | 簡訊管道結果 |
| site_inner_message | string | false | 無 | 站內信通路結果 |
列舉值
| 屬性 | 值 |
|---|---|
| queued | |
| failed | |
| skipped | |
| sms | queued |
| sms | failed |
| sms | skipped |
| site_inner_message | created |
| site_inner_message | exists |
| site_inner_message | failed |
TeamInvitationPreviewResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_name": "string",
"role": 2,
"status": 0,
"expired_at": "string"
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | object | false | 無 | none |
| »» team_name | string | true | 無 | 團隊名稱 |
| »» role | integer | true | 無 | 目標角色 |
| »» status | integer | true | 無 | 邀請狀態 |
| »» expired_at | string | true | 無 | 過期時間,格式 YYYY-MM-DD HH:mm:ss |
列舉值
| 屬性 | 值 |
|---|---|
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
TeamInvitationResendResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"invitation_url": "http://example.com",
"notification_channels": {
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | object | false | 無 | none |
| »» invitation | TeamInvitation | true | 無 | none |
| »» invitation_url | string(uri) | true | 無 | 新的邀請處理連結;舊連結已失效 |
| »» notification_channels | TeamInvitationNotificationChannels | true | 無 | none |
TeamInvitationListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
屬性
allOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 無 | none |
and
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 無 | none |
| » data | object | false | 無 | none |
| »» list | [TeamInvitation] | true | 無 | none |
| »» total | integer | true | 無 | 邀請總數 |
| »» page | integer | true | 無 | 目前頁碼 |
| »» page_size | integer | true | 無 | 實際每頁數量 |
User
{
"id": 0,
"email": "[email protected]",
"phone": "string",
"balance": 0.1,
"status": 0,
"is_real_name": true,
"created_at": "2019-08-24T14:15:22Z"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | false | 無 | none |
| string(email) | false | 無 | none | |
| phone | string | false | 無 | none |
| balance | number(float) | false | 無 | none |
| status | integer | false | 無 | none |
| is_real_name | boolean | false | 無 | none |
| created_at | string(date-time) | false | 無 | none |
Order
{
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | false | 無 | 訂單ID |
| trade_no | string | false | 無 | 內部訂單編號 |
| out_trade_no | string | false | 無 | 外部訂單編號 |
| product_id | integer | false | 無 | 套餐ID |
| product_type | integer | false | 無 | 套餐類型,見產品類型枚舉 |
| amount | integer | false | 無 | 購買數量 |
| unit_price | number(float) | false | 無 | 單價 |
| total_fee | number(float) | false | 無 | 訂單總價(不含折扣,含手續費) |
| goods_fee | number(float) | false | 無 | 商品價格(含折扣,不含手續費) |
| pay_fee | number(float) | false | 無 | 實付金額(含折扣,含手續費) |
| discount_fee | number(float) | false | 無 | 優惠金額 |
| handling_fee | number(float) | false | 無 | 手續費 |
| refund_fee | number(float) | false | 無 | 退款金額 |
| pm_id | integer | false | 無 | 支付方式ID(來自 /openapi/payment/list) |
| pm_title | string | false | 無 | 付款方式名稱 |
| pm_logo | string | false | 無 | 付款方式Logo URL |
| status | integer | false | 無 | 訂單狀態 |
| title | string | false | 無 | 套餐標題 |
| detail | string | false | 無 | 套餐描述 |
| region_desc | string | false | 無 | 地區規格描述 |
| pay_at | string(date-time) | false | 無 | 支付時間 |
| pay_timestamp | integer | false | 無 | 支付時間戳 |
| created_at | string(date-time) | false | 無 | 創建時間 |
| pay_fee_status | integer | false | 無 | 長短款狀態:0正常 1長款(超額支付) 2短款 |
| invoice | object | false | 無 | 發票資訊(僅線上支付訂單有值) |
| » name | string | false | 無 | 全名 |
| » org_name | string | false | 無 | 企業名稱 |
| » first_name | string | false | 無 | none |
| » last_name | string | false | 無 | none |
| » phone | string | false | 無 | none |
| string(email) | false | 無 | none | |
| » role_type | integer | false | 無 | 1個人 2企業 |
| » vat_id | string | false | 無 | 稅號 |
| » address_country | string | false | 無 | none |
| » address_city | string | false | 無 | none |
| » address_line1 | string | false | 無 | none |
| » address_line2 | string | false | 無 | none |
| » address_postal_code | string | false | 無 | none |
OrderCheckResult
{
"product_id": 0,
"amount": 0,
"discount_fee": 0.1,
"total_fee": 0.1,
"pay_fee": 0.1,
"product_type": 0,
"title": "string",
"detail": "string",
"ip_result": [
{
"ip": "string",
"price": 0.1,
"country_code": "string",
"current_time": "2019-08-24T14:15:22Z",
"renewal_time": "2019-08-24T14:15:22Z",
"country": {
"name_zh_cn": "string",
"flag": "string",
"square_flag": "string"
}
}
]
}
訂單預檢結果
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| product_id | integer | false | 無 | 套餐ID |
| amount | integer | false | 無 | 數量 |
| discount_fee | number(float) | false | 無 | 優惠金額 |
| total_fee | number(float) | false | 無 | 訂單總額 |
| pay_fee | number(float) | false | 無 | 實付金額 |
| product_type | integer | false | 無 | 套餐類型 |
| title | string | false | 無 | 套餐標題 |
| detail | string | false | 無 | 套餐描述 |
| ip_result | [object] | false | 無 | IP批量續費結果(僅IP續費時返回) |
| » ip | string | false | 無 | none |
| » price | number(float) | false | 無 | none |
| » country_code | string | false | 無 | none |
| » current_time | string(date-time) | false | 無 | none |
| » renewal_time | string(date-time) | false | 無 | none |
| » country | object | false | 無 | none |
| »» name_zh_cn | string | false | 無 | none |
| »» flag | string | false | 無 | 圓形旗幟URL |
| »» square_flag | string | false | 無 | 方形旗幟URL |
Product
{
"id": 0,
"title": "string",
"type": 0,
"show_type": 0,
"status": 0,
"price": 0.1,
"usd_price": 0.1,
"price_hkd": 0.1,
"original_price": 0.1,
"original_usd_price": 0.1,
"original_price_hkd": 0.1,
"local_price": 0.1,
"local_original_price": 0.1,
"preferred_currency": "string",
"support_currencies": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"balance_value": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"time_days": 0,
"tip1": "string",
"tip2": "string",
"introduce": [
"string"
],
"region_list_id": 0,
"renew_product_list": "string",
"parent_product_type": 0,
"total_count": 0,
"remain_count": 0,
"extension_of_time_days": [
0
],
"time_days_price_rate": 0.1,
"desc": {
"subtitle": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"tip1": "string",
"tip2": "string",
"introduce": [
"string"
]
},
"sku": {
"bandwidth_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
],
"duration_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
],
"concurrency_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
]
}
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | false | 無 | 套餐ID |
| title | string | false | 無 | 套餐主標題 |
| type | integer | false | 無 | 套餐類型 |
| show_type | integer | false | 無 | 展示類型:1普通 2大推薦 3不可購買(需客製化) 4試用 |
| status | integer | false | 無 | 狀態:1上架 0下架 |
| price | number(float) | false | 無 | 人民幣價格 |
| usd_price | number(float) | false | 無 | 美元價格 |
| price_hkd | number(float) | false | 無 | 港幣價格 |
| original_price | number(float) | false | 無 | 原價(CNY) |
| original_usd_price | number(float) | false | 無 | 原價(USD) |
| original_price_hkd | number(float) | false | 無 | 原價(HKD) |
| local_price | number(float) | false | 無 | 在地化價格(依賴 preferred_currency) |
| local_original_price | number(float) | false | 無 | 在地化原價(依賴 preferred_currency) |
| preferred_currency | string | false | 無 | 建議顯示貨幣,如 usd / cny / hkd |
| support_currencies | string | false | 無 | 支援的貨幣列表,逗號分隔,如 usd,cny |
| flow_value | number(float) | false | 無 | 流量套餐預設流量(GB) |
| flow_give | number(float) | false | 無 | 送禮流量(GB) |
| balance_give | number(float) | false | 無 | 餘額儲值送額 |
| balance_value | number(float) | false | 無 | 儲值金額 |
| time_validity | number(float) | false | 無 | 包量套餐預設有效時長 |
| time_price | number(float) | false | 無 | 包量套餐每IP價格 |
| time_days | integer | false | 無 | 有效期限天數,如 30/90/180/365 |
| tip1 | string | false | 無 | 標籤說明1 |
| tip2 | string | false | 無 | 標籤說明2 |
| introduce | [string] | false | 無 | 文字介紹列表 |
| region_list_id | integer | false | 無 | 地區ID |
| renew_product_list | string | false | 無 | 可續訂套餐ID清單(逗號分隔) |
| parent_product_type | integer | false | 無 | 父套餐類型(type=19時有效):14或25 |
| total_count | integer | false | 無 | 總庫存,0表示不限制 |
| remain_count | integer | false | 無 | 剩餘庫存 |
| extension_of_time_days | [integer] | false | 無 | 時長倍數列表,為空或僅含1表示不支持 |
| time_days_price_rate | number(float) | false | 無 | 時長價格係數,價格 × (1 + (倍數-1) × rate) |
| desc | object | false | 無 | 套餐描述訊息 |
| » subtitle | string | false | 無 | 副標題 |
| » flow_value | number(float) | false | 無 | none |
| » flow_give | number(float) | false | 無 | none |
| » balance_give | number(float) | false | 無 | none |
| » time_validity | number(float) | false | 無 | none |
| » time_price | number(float) | false | 無 | none |
| » tip1 | string | false | 無 | none |
| » tip2 | string | false | 無 | none |
| » introduce | [string] | false | 無 | none |
| sku | object | false | 無 | 規格參數(type=11時返回) |
| » bandwidth_list | [object] | false | 無 | 頻寬規格列表 |
| »» id | integer | false | 無 | none |
| »» value | integer | false | 無 | 頻寬值(Mbps) |
| »» price | number(float) | false | 無 | none |
| »» price_usd | number(float) | false | 無 | none |
| »» price_hkd | number(float) | false | 無 | none |
| » duration_list | [object] | false | 無 | 時長規格列表 |
| »» id | integer | false | 無 | none |
| »» value | integer | false | 無 | 時長(天) |
| »» price | number(float) | false | 無 | none |
| »» price_usd | number(float) | false | 無 | none |
| »» price_hkd | number(float) | false | 無 | none |
| » concurrency_list | [object] | false | 無 | 並發規格列表 |
| »» id | integer | false | 無 | none |
| »» value | integer | false | 無 | 並發數 |
| »» price | number(float) | false | 無 | none |
| »» price_usd | number(float) | false | 無 | none |
| »» price_hkd | number(float) | false | 無 | none |
WhiteIp
{
"id": 0,
"ip": "string",
"remark": "string",
"created_at": "2019-08-24T14:15:22Z"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | false | 無 | none |
| ip | string | false | 無 | none |
| remark | string | false | 無 | none |
| created_at | string(date-time) | false | 無 | none |
WhitelistAccount
{
"id": 0,
"username": "string",
"limit": 0,
"used": 0,
"status": 0
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | false | 無 | none |
| username | string | false | 無 | none |
| limit | integer | false | 無 | none |
| used | integer | false | 無 | none |
| status | integer | false | 無 | none |
Coupon
{
"id": 0,
"name": "string",
"code": "string",
"discount": 0.1,
"expire_time": "2019-08-24T14:15:22Z"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | false | 無 | none |
| name | string | false | 無 | none |
| code | string | false | 無 | none |
| discount | number(float) | false | 無 | none |
| expire_time | string(date-time) | false | 無 | none |
Article
{
"id": 0,
"title": "string",
"content": "string",
"created_at": "2019-08-24T14:15:22Z"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | false | 無 | none |
| title | string | false | 無 | none |
| content | string | false | 無 | none |
| created_at | string(date-time) | false | 無 | none |
Pagination
{
"total": 0,
"page_no": 0,
"page_size": 0,
"total_pages": 0
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| total | integer | false | 無 | none |
| page_no | integer | false | 無 | none |
| page_size | integer | false | 無 | none |
| total_pages | integer | false | 無 | none |
AutoRenewalConfig
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_type": 0,
"left_traffic": 0,
"left_days": 0,
"user_product_id": 1,
"product_id": 0,
"status": 0,
"currency": "string",
"agreed_price": 0,
"agreed_bandwidth_price": 0,
"agreed_concurrency_price": 0,
"bandwidth_id": 0,
"concurrency_id": 0,
"duration": 0,
"renew_product_id": 0,
"days_before_expire": 0,
"traffic_threshold": 0,
"parent_product_type": 0,
"created_at": "string",
"updated_at": "string"
}
單一套餐的自動續費配置快照
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | false | 無 | none |
| user_id | integer | false | 無 | none |
| team_id | ResourceSpaceId | false | 無 | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| team_user_id | integer | false | 無 | none |
| product_type | integer | false | 無 | none |
| left_traffic | integer | false | 無 | 已廢棄字段 |
| left_days | integer | false | 無 | 已廢棄字段 |
| user_product_id | integer | false | 無 | none |
| product_id | integer | false | 無 | 已廢棄字段 |
| status | integer | false | 無 | 0=停用,1=啟用 |
| currency | string | false | 無 | none |
| agreed_price | number | false | 無 | 約定總價 |
| agreed_bandwidth_price | number | false | 無 | 套餐 11 的約定頻寬單價 |
| agreed_concurrency_price | number | false | 無 | 套餐 11 的約定並發單價 |
| bandwidth_id | integer | false | 無 | none |
| concurrency_id | integer | false | 無 | none |
| duration | integer | false | 無 | 續費時長,單位天 |
| renew_product_id | integer | false | 無 | none |
| days_before_expire | integer | false | 無 | none |
| traffic_threshold | integer | false | 無 | 流量閾值,資料庫值單位 KB |
| parent_product_type | integer | false | 無 | none |
| created_at | string | false | 無 | none |
| updated_at | string | false | 無 | none |
列舉值
| 屬性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
AutoRenewalLog
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"config_id": 0,
"user_product_id": 1,
"product_type": 0,
"renew_product_id": 0,
"order_id": 0,
"fee": 0,
"currency": "string",
"before_expired_at": "string",
"after_expired_at": "string",
"before_remain": 0,
"after_remain": 0,
"trigger_type": 0,
"status": 1,
"revoke_at": "string",
"revoke_remark": "string",
"created_at": "string",
"updated_at": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | true | 無 | none |
| user_id | integer | true | 無 | none |
| team_id | ResourceSpaceId | true | 無 | 公開資源空間標識;請求個人空間時省略 team_id 或傳空字串,回應個人空間時為空字串;數字 0 和字串 "0" 均非法,團隊空間使用 6-12 位元團隊公開標識 |
| team_user_id | integer | true | 無 | none |
| config_id | integer | true | 無 | none |
| user_product_id | integer | true | 無 | none |
| product_type | integer | true | 無 | none |
| renew_product_id | integer | true | 無 | none |
| order_id | integer | true | 無 | none |
| fee | number | true | 無 | none |
| currency | string | true | 無 | none |
| before_expired_at | string,null | false | 無 | none |
| after_expired_at | string,null | false | 無 | none |
| before_remain | integer(int64) | true | 無 | none |
| after_remain | integer(int64) | true | 無 | none |
| trigger_type | integer | true | 無 | 0=到期前,1=流量不足 |
| status | integer | true | 無 | 1=成功,2=已撤銷,3=失敗 |
| revoke_at | string,null | false | 無 | none |
| revoke_remark | string | true | 無 | none |
| created_at | string | true | 無 | none |
| updated_at | string | true | 無 | none |
列舉值
| 屬性 | 值 |
|---|---|
| trigger_type | 0 |
| trigger_type | 1 |
| status | 1 |
| status | 2 |
| status | 3 |
MonthlyRenewalBatch
{
"type": "current",
"start_at": "string",
"end_at": "string",
"target_expired_at": "string",
"timezone": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| type | string | true | 無 | none |
| start_at | string | true | 無 | none |
| end_at | string | true | 無 | none |
| target_expired_at | string | true | 無 | none |
| timezone | string | true | 無 | none |
列舉值
| 屬性 | 值 |
|---|---|
| type | current |
| type | next |
MonthlyRenewalItem
{
"id": 0,
"user_product_id": 1,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"title": "string",
"expired_at": "string",
"target_expired_at": "string",
"renew_days": 1,
"unit_month_price": 0,
"pay_fee": 0,
"currency": "string",
"bandwidth": 0,
"bandwidth_mbsp": 0,
"concurrency": 0,
"ip": "string",
"country_code": "string",
"paid_at": "string",
"refunded_at": "string",
"created_at": "string",
"updated_at": "string"
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | false | 無 | 歷史帳單明細 ID |
| user_product_id | integer | true | 無 | none |
| product_id | integer | true | 無 | none |
| product_type | integer | true | 無 | none |
| parent_product_type | integer | true | 無 | none |
| title | string | true | 無 | none |
| expired_at | string | true | 無 | none |
| target_expired_at | string | true | 無 | none |
| renew_days | integer | true | 無 | none |
| unit_month_price | number | false | 無 | none |
| pay_fee | number | true | 無 | none |
| currency | string | true | 無 | none |
| bandwidth | integer | false | 無 | none |
| bandwidth_mbsp | number | false | 無 | 頻寬換算值 |
| concurrency | integer | false | 無 | none |
| ip | string | false | 無 | 靜態 IP 套餐返回 |
| country_code | string | false | 無 | 靜態 IP 套餐返回 |
| paid_at | string,null | false | 無 | none |
| refunded_at | string,null | false | 無 | none |
| created_at | string | false | 無 | none |
| updated_at | string | false | 無 | none |
InvoiceRecord
{
"id": 1,
"invoice_no": "string",
"invoice_amount": 0,
"invoice_download_url": "string",
"status": 0,
"remark": "string",
"order_ids": [
0
],
"created_at": 0,
"invoice_info": {
"invoice_code": "string",
"name": "string",
"org_name": "string",
"role_type": 1,
"invoice_type": 0
}
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| id | integer | true | 無 | none |
| invoice_no | string | true | 無 | none |
| invoice_amount | number | true | 無 | none |
| invoice_download_url | string | true | 無 | none |
| status | integer | true | 無 | none |
| remark | string | true | 無 | none |
| order_ids | [integer] | true | 無 | none |
| created_at | integer | true | 無 | Unix 時間戳 |
| invoice_info | any | true | 無 | none |
oneOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » anonymous | object | false | 無 | none |
| »» invoice_code | string | true | 無 | none |
| »» name | string | true | 無 | none |
| »» org_name | string | true | 無 | none |
| »» role_type | integer | true | 無 | none |
| »» invoice_type | integer | true | 無 | none |
xor
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » anonymous | null | false | 無 | none |
列舉值
| 屬性 | 值 |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
PayCheckData
{
"trade_no": "string",
"pm_id": 0,
"pay_method": 0,
"trade_type": "string",
"country_code": "string",
"currency": "string",
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0,
"pay_method_info": {
"id": 0,
"type": 0,
"title": "string",
"group": "string",
"handling_rate": 0,
"handling_fee": 0,
"handling_fee_currency": "usd",
"handling_fee_converted": 0
},
"origin": {
"pm_id": 0,
"pay_method": 0,
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0
}
}
屬性
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| trade_no | string | true | 無 | none |
| pm_id | integer | true | 無 | none |
| pay_method | integer | true | 無 | none |
| trade_type | string | true | 無 | none |
| country_code | string | true | 無 | none |
| currency | string | true | 無 | none |
| goods_fee | number | true | 無 | none |
| discount_fee | number | true | 無 | none |
| handling_fee | number | true | 無 | none |
| pay_fee | number | true | 無 | none |
| total_fee | number | true | 無 | none |
| pay_method_info | any | true | 無 | none |
oneOf
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » anonymous | object | false | 無 | none |
| »» id | integer | true | 無 | none |
| »» type | integer | true | 無 | none |
| »» title | string | true | 無 | none |
| »» group | string | true | 無 | none |
| »» handling_rate | number | true | 無 | none |
| »» handling_fee | number | true | 無 | none |
| »» handling_fee_currency | string | true | 無 | none |
| »» handling_fee_converted | number | true | 無 | none |
xor
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| » anonymous | null | false | 無 | none |
continued
| 名稱 | 類型 | 必填 | 限制 | 描述 |
|---|---|---|---|---|
| origin | object | true | 無 | none |
| » pm_id | integer | true | 無 | none |
| » pay_method | integer | true | 無 | none |
| » goods_fee | number | true | 無 | none |
| » discount_fee | number | true | 無 | none |
| » handling_fee | number | true | 無 | none |
| » pay_fee | number | true | 無 | none |
| » total_fee | number | true | 無 | none |