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

title: NSocks language_tabs:

  • shell: Shell
  • http: HTTP
  • javascript: JavaScript
  • ruby: Ruby
  • python: Python
  • php: PHP
  • java: Java
  • go: Go toc_footers: [] includes: [] search: true code_clipboard: true highlight_theme: darkula headingLevel: 2 generator: "@tarslib/widdershins v4.0.30"

NSocks

app_key Please log in and view the authentication key on the homepage of your personal center.

Please keep your key safe; you have administrator privileges for your account.

Authentication methods

App Key 认证

POST parameters:

app_key: {your_app_key}

Or as a query parameter:

?app_key={your_app_key}

Response format

All interfaces return a unified JSON format:

{
"code": 200,
"message": "操作成功",
"data": {}
}
  • code: Status code. 200 means successful, other values indicate failure
  • message: Response message (Chinese)
  • data: Response data

Base URLs:

  • https://api.nsocks.com: https://api.nsocks.com

Authentication

  • HTTP Authentication, scheme: bearer

  • API Key (apiKeyAuth)

    • Parameter Name: app_key, in: query. 支持GET/POST,name 支持

Agency account management

GET proxy account list

GET /ep/whitelist-account/list

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» coderesponseCodefalsenoneStatus code: 200 successful, 3 app_key invalid
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» Art[object]falsenonenone
»»» idintegerfalsenoneAccount number
»»» usernamestringfalsenoneAgent account name
»»» passwordstringfalsenoneProxy account password
»»» created_atstringfalsenoneAdd time
»»» remarkstringfalsenoneNote
»»» product_typeproductTypesfalsenonePackage types: 9 dynamic residential data packages, 11 dynamic residential IPs, 14 static data center IPs, 25 static residential IPs
»»» usage_flowintegerfalsenoneUsage data, unit: KB
»»» limit_flowintegerfalsenoneCustom data limit: Unit GB, maximum 102,400, no limit
»»» statusintegerfalsenoneEnabled status: 1 Enable, 0 Deactivated

Enumeration value

AttributesValue
product_type9
product_type11
product_type14
product_type25

POST Add proxy accounts.

POST /ep/whitelist-account/add

Body requests parameters

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

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization key
» accountsbodystringNoFor account passwords, please enter them in the username:password format. The account and password only support numbers and letters; do not enter any special symbols or spaces. The colon separates the account and password. Supports batch adding, with English commas (,) separating proxy accounts.
» remarkbodystringNoProxy account description
» product_typebodyproductTypesNoPackage types: 9 dynamic residential data packages, 11 dynamic residential IPs, 14 static data center IPs, 25 static residential IPs

Enumeration value

AttributesValue
» product_type9
» product_type11
» product_type14
» product_type25

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» datanullfalsenonenone

POST Delete proxy account

POST /ep/whitelist-account/delete

Please note that deletion cannot be restored, and data usage cannot be checked. There is about a 5-minute waiting time for deletion, during which fees may still apply.

Body requests parameters

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

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization key
» accountsbodystringNoProxy accounts, only supporting numbers and letters. Supports batch operations, with English commas (,) separating proxy accounts

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» datanullfalsenonenone

POST Disable proxy accounts

POST /ep/whitelist-account/disable

There is about a 5-minute waiting time to disable it, during which fees may still apply.

Body requests parameters

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

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization key
» accountsbodystringNoProxy accounts, only supporting numbers and letters. Supports batch operations, with English commas (,) separating proxy accounts

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» datanullfalsenonenone

POST enables proxy accounts

POST /ep/whitelist-account/enable

Body requests parameters

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

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization key
» accountsbodystringNoProxy accounts, only supporting numbers and letters. Supports batch operations, with English commas (,) separating proxy accounts

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» datanullfalsenonenone

POST Change proxy account password

POST /ep/whitelist-account/change-password

Please note that there is a 5-minute waiting period after modification, during which the old password may still be used normally.

Body requests parameters

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

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization key
» accountbodystringNoProxy accounts, only supporting numbers and letters.
» passwordbodystringNoThe proxy account has a new password, supporting only numbers and letters.

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» datanullfalsenonenone

POST: Modify the agent account notes

POST /ep/whitelist-account/change-remark

Body requests parameters

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

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization key
» accountbodystringNoProxy accounts, only supporting numbers and letters.
» remarkbodystringNoNew notes for agent accounts: up to 32 Chinese or 64 English words.

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» datanullfalsenonenone

POST modifies the proxy account traffic limit

POST /ep/whitelist-account/change-limit

Please note that data statistics may have delays of up to 5 minutes, meaning actual data consumption may exceed this limit.

Body requests parameters

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

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization key
» accountbodystringNoProxy accounts, only supporting numbers and letters.
» limitbodyintegerNoTraffic limits, unit: GB, 0 means no upper limit

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» datanullfalsenonenone

POST: Modify agent account information

POST /ep/proxy-account/change

Change proxy account passwords, notes, traffic limits, daily traffic limits, enabled status, or the UDP switch.

Body requests parameters

{
  "app_key": "string",
  "account": "string",
  "password": "string",
  "remark": "string",
  "limit": 0,
  "daily_limit": 0,
  "status": 0,
  "udp": 0
}

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization key
» accountbodystringNoAgent account name
» passwordbodystringNoNew passwords, 6-16 digits or letters; If it is not transmitted, then it will not be revised
» remarkbodystringNoNew notes
» limitbodyintegerNoTraffic limit, measured in GB, 0 means no limit
» daily_limitbodyintegerNoDaily data limit, measured in GB, 0 means no limit
» statusbodyintegerNoEnabled status
» udpbodyintegerNoUDP supports toggling and is only effective for package types 14, 16, 21, and 25

Enumeration value

AttributesValue
» status0
» status1
» udp0
» udp1

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code, 200, success
» msgstringfalsenoneStatus messages
» datanullfalsenonenone

IP whitelist

GET IP whitelist list

GET /ep/proxy-ip/list

Request parameters

NameLocationTypemust be selectedExplanation
product_typequeryintegerNoPackage type number

Return to example

200 Response

{
  "code": 200,
  "msg": "string",
  "data": {
    "list": [
      {
        "ip": "1.1.1.1",
        "remark": "string",
        "product_type": 0,
        "created_at": "string"
      }
    ]
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code, 200, success
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» Art[object]falsenonenone
»»» ipstringfalsenoneWhitelist IP
»»» remarkstringfalsenoneNote
»»» product_typeintegerfalsenoneTypes of packages
»»» created_atstringfalsenoneCreation date

POST Add IP whitelist

POST /ep/proxy-ip/add

Body requests parameters

{
  "app_key": "string",
  "ips": "1.1.1.1,2.2.2.2",
  "remark": "string",
  "product_type": 0,
  "user_product_id": 0
}

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization key
» ipsbodystringNoWhitelist IPs to be added, multiple separated by English commas or line breaks
» remarkbodystringNoNote
» product_typebodyintegerNoPackage type number
» user_product_idbodyintegerNoUser package ID, required for the 11 Hour package type

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code, 200, success
» msgstringfalsenoneStatus messages
» datanullfalsenonenone

POST removes IP whitelist

POST /ep/proxy-ip/delete

Body requests parameters

{
  "app_key": "string",
  "ips": "1.1.1.1,2.2.2.2",
  "verify_type": "string",
  "verify_code": "string"
}

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectNonone
» app_keybodystringNoAuthorization key
» ipsbodystringNoWhitelist IPs that need to be deleted, separated by English commas
» verify_typebodystringNo验证类型:phone、email、wechat、totp
» verify_codebodystringNoCaptcha

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code, 200, success
» msgstringfalsenoneStatus messages
» datanullfalsenonenone

Traffic log query

GET data usage is aggregated daily

GET /ep/user-usage-flow/total

Request parameters

NameLocationTypemust be selectedExplanation
app_keyquerystring(password)YesAuthentication key
start_timequerystring(Y-m-d H:i:s)NoThe starting time can be precise to the second. Please note that there is a delay of up to 5 minutes in log logs. The default is within 7 days.
end_timequerystring(Y-m-d H:i:s)NoThe cutoff time can be precise to the second. Please note that there is a delay of up to 5 minutes in log logs. Default current time.
usernamequerystringNoSubaccount names: By default, query all accounts, and can specify sub-accounts. Please note that if you add sub-accounts with the same name, this query will return all usage records of the proxy account with the same name.
product_typequerynumberNoTypes of packages

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» Art[object]falsenonenone
»»» daystringfalsenoneDate
»»» flowintegerfalsenoneData consumption, unit KB

Package inquiry

GET the list of purchased packages

GET /ep/user-product/list

Request parameters

NameLocationTypemust be selectedExplanation
app_keyquerystring(password)YesAuthentication key
trade_noquerystringNoOrder number, please enter the complete order number. Fuzzy search is not supported.
pagequerynumberNoPagination, default: 1
sizequerynumberNoPagination display quantity, default: 20
product_typequerynumberNoTypes of packages

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» Art[object]falsenonenone
»»» idintegerfalsenonePackage number
»»» created_atstringfalsenonePackage effective date
»»» expired_atstringfalsenonePackage expiration period: After expiration, data cannot be used.
»»» product_typeproductTypesfalsenonePackage types: 9 dynamic residential data packages, 11 dynamic residential IPs, 14 static data center IPs, 25 static residential IPs
»»» trade_nostringfalsenoneOrder trading number
»»» orderobjectfalsenonenone
»»»» created_atstringfalsenoneOrder creation time
»»»» pay_atstringfalsenoneOrder payment time
»»»» titlestringfalsenoneOrder description
»» pageintegerfalsenoneCurrent tab
»» page_sizeintegerfalsenonePage size
»» total_countintegerfalsenoneTotal number of records
»» total_pageintegerfalsenoneTotal number of pages

Enumeration value

AttributesValue
product_type9
product_type11
product_type14
product_type25

GET user package data summary

GET /ep/user-product/summary

Obtain statistical summary information on user packages, including total volume, valid quantity, near-expiry quantity, expiration quantity, etc

Request parameters

NameLocationTypemust be selectedExplanation
app_keyquerystring(password)YesAuthentication key
product_typequeryintegerNoProduct types: only 9 (dynamic data plans), 12 (long-term IDC data plans)

Enumeration value

AttributesValue
product_type9
product_type12

Return to example

200 Response

{
  "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
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» totalintegerfalsenoneTotal traffic/IP (unit: KB)
»» total_countintegerfalsenoneTotal number of packages
»» effectiveintegerfalsenoneEffective Surplus (Unit: KB)
»» effective_countintegerfalsenoneNumber of valid packages
»» effective_totalintegerfalsenoneEffective Total Amount (Unit: KB)
»» effective_usedintegerfalsenoneEffective usage (unit: KB)
»» temporaryintegerfalsenoneTotal Amount Near Expiry (Expires within 7 days, Unit: KB)
»» temporary_countintegerfalsenoneNumber of near-expiry packages (expires within 7 days)
»» expiredintegerfalsenoneExpired Surplus (Unit: KB)
»» expired_countintegerfalsenoneNumber of expired packages
»» usedintegerfalsenoneTotal usage (unit: KB)

IP extraction

GET the extraction IP

GET /ep/ip/v3

Request parameters

NameLocationTypemust be selectedExplanation
app_keyquerystring(password)YesAccess key
ccquerystringNoCountry or region
statequerystringNoProvinces or prefectures
cityquerystringNoCity
formatquerystringNoGet format
lbquerystringNoSpacers, only text format is valid
numquerynumberNoExtraction quantity
lifequerynumberNoHold the cycle for minutes
epquerystringNoAgent networks

Enumeration value

AttributesValue
epus
ephk
epof

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» Art[any]falsenonenone

GET dynamic regional city list V4

GET /ep/ip/dcl4

Obtain a list of cities by username, requires login authentication, and the account must belong to the current user

Request parameters

NameLocationTypemust be selectedExplanation
usernamequerystringYesProxy account username

Return to example

200 Response

{
  "code": 200,
  "msg": "string",
  "data": {
    "cache": true,
    "list": [
      {
        "City": "Los Angeles",
        "Area": "US",
        "State": "California"
      }
    ]
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code, 200, success
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» cachebooleanfalsenoneIs it from the cache?
»» Art[object]falsenonenone
»»» CitystringfalsenoneCity
»»» AreastringfalsenoneRegion
»»» StatestringfalsenoneState/Province

GET dynamic regional state/province list V4

GET /ep/ip/dsl4

Obtain a list of states/provinces by username, requires login authentication, and the account must belong to the current user

Request parameters

NameLocationTypemust be selectedExplanation
usernamequerystringYesProxy account username

Return to example

200 Response

{
  "code": 200,
  "msg": "string",
  "data": {
    "cache": true,
    "list": [
      {
        "City": "Los Angeles",
        "Area": "US",
        "State": "California"
      }
    ]
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code, 200, success
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» cachebooleanfalsenoneIs it from the cache?
»» Art[object]falsenonenone
»»» CitystringfalsenoneCity
»»» AreastringfalsenoneRegion
»»» StatestringfalsenoneState/Province

GET dynamic regional/provincial city fusion list V4

GET /ep/ip/dal4

Get a merged list of states/provinces and cities by username, grouped by region. Login authentication is required, and the account must belong to the current user

Request parameters

NameLocationTypemust be selectedExplanation
usernamequerystringYesProxy account username

Return to example

200 Response

{
  "code": 200,
  "msg": "string",
  "data": {
    "cache": true,
    "list": [
      {
        "Area": "US",
        "states": [
          {
            "State": null,
            "cities": null
          }
        ]
      }
    ]
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code, 200, success
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» cachebooleanfalsenoneIs it from the cache?
»» Art[object]falsenoneList of regions
»»» AreastringfalsenoneRegional code
»»» states[object]falsenoneList of states/provinces
»»»» StatestringfalsenoneState/province name
»»»» cities[string]falsenoneList of cities

GET the list of cities

GET /ep/ip/dynamic-citys

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» Art[object]falsenoneList
»»» name_zh_cnstringfalsenoneName of country or region
»»»» name_enstringfalsenoneName of country or region
»»» continent_codestringfalsenoneContinent code
»»» country_codestringfalsenoneCountry or region code
»»» items[object]falsenoneProvinces or prefectures
»»»» citystringfalsenoneCity name
»»»» statestringfalsenoneProvincial or state name code
»»»» continent_codestringfalsenoneContinent code
»»»» country_codestringfalsenoneCountry or region code

GET city search

GET /ep/ip/dynamic-citys/search

Request parameters

NameLocationTypemust be selectedExplanation
country_codequerystringYesCountry or region code
statequerystringYesState or provincial code

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» Art[string]falsenoneList

GET State List

GET /ep/ip/dynamic-states

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» Art[object]falsenoneList
»»» name_zh_cnstringfalsenoneName of country or region
»»»» name_enstringfalsenoneName of country or region
»»» continent_codestringfalsenoneContinent code
»»» country_codestringfalsenoneCountry or region code
»»» items[object]falsenoneProvinces or prefectures
»»»» statestringfalsenoneProvincial or state name code
»»»» continent_codestringfalsenoneContinent code
»»»» country_codestringfalsenoneCountry or region code

GET state/province search

GET /ep/ip/dynamic-states/search

Request parameters

NameLocationTypemust be selectedExplanation
country_codequerystringYesCountry or region code

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKand requested permissionInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code: 200 successful, 3 app_key invalid, 156 accounts without real-name authentication
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» Art[string]falsenoneList

GET extracts the list of purchased static IPs

GET /ep/ip/get-static-ip

Request parameters

NameLocationTypemust be selectedExplanation
country_codequerystringNoCountry or region code
product_typequerynumberNoProduct types: 25: Static residential IP, 14: Data center IP
trade_noquerystringNoFilter IPs by order number
pagequerynumberNoPage number
sizequerynumberNoNumber per page
statusquerynumberNoStatus: 1: Active, 2: Invalid, 3: Nearing expiration, 4: Under maintenance

Enumeration value

AttributesValue
product_type14
product_type25
status1 - 2 - 3 - 4

Return to example

200 Response

{}

Return results

Status codeStatus code meaningExplanationData models
200OKnoneInline

Returns data structures

GET the number of static IPs in the sales region

GET /ep/ip/static-ip-region

Request parameters

NameLocationTypemust be selectedExplanation
ispqueryintegerNoISP filtering; if not transmitted, then no filtering (except for sites 1/4/5, default is 1)
asnqueryintegerNoWhether to return ASN packet data
exclusivequeryintegerNoWhether counted as exclusive inventory

Detailed explanation

ISP: ISP filtering; if not transmitted, no filtering is done (except for sites 1/4/5, default is 1)

ValueDescription
0Data Center Static IP (IDC)
1Home Static IP (ISP)

asn: Whether to return ASN packet data

ValueDescription
0Does not return ASN packet data (default)
1Returns ASN packet data

exclusive: Whether counting is based on exclusive inventory

ValueDescription
0Statistics by current user/shared group (default)
1All allocated IPs are excluded, and only available inventory is counted

Enumeration value

AttributesValue
isp0
isp1
asn0
asn1
exclusive0
exclusive1

Return to example

200 Response

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

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code, 200, success
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» Art[object]falsenonenone
»»» codestringfalsenoneCountry or region code
»»» numberintegerfalsenoneQuantity

GET Get host_pool supported countries/regions

GET /ep/host-pool/regions

Query the list of countries/regions supported by the current site of the host_pool service.

This interface is designed for random extraction scenarios based on data center IP traffic scores, and only counts by country/region based on the current site's available data center IP inventory. It does not support ASN, ISP, or exclusive inventory filtering, nor does it exclude IPs based on users' purchase records.

Return to example

200 Response

{
  "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"
      }
    ]
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKRequest successInline

Returns data structures

Status code 200

NameTypemust be selectedRestraintChinese nameExplanation
» codeintegerfalsenoneStatus code, 200, success
» msgstringfalsenoneStatus messages
» dataobjectfalsenonenone
»» Art[object]falsenonenone
»»» codestringfalsenoneCountry or region code: ISO 3166-1 alpha-2
»»» numberintegerfalsenoneThe number of data center IPs available at the current site
»»» name_zh_cnstringfalsenoneThe Chinese name of the country or region
»»»» name_enstringfalsenoneThe English name of a country or region
»»» square_flagstringfalsenoneURL of the square flag image

Order management

GET the order list

GET /ep/order/list

Request parameters

NameLocationTypemust be selectedExplanation
page_noqueryintegerNonone
page_sizequeryintegerNonone
trade_noquerystringNoOrder number
start_timequerystring(date-time)NoStart time (inclusive), such as 2024-01-01 00:00:00
end_timequerystring(date-time)NoEnd Time (Not Included)
statusqueryintegerNoOrder status
product_typequeryintegerNoProduct types
invoicequeryintegerNoInvoice status: 0 No restriction 1 Invoice issued -1 Invoice not issued (can be reissued)
pay_fee_statusqueryintegerNoSelection of long and short payments: 1. Overpayment, 2. Short-term payment

Detailed explanation

status: Order status

StatusDescription
0Pending payment
1Already paid
2Late payment has been canceled
3Refunded

product_type: 产品类型

Product typesDescription
3Balance top-up
9Dynamic data plans
11Dynamic Global Package V2
12Long-lasting IDC data packages
13Residential static IP data packages
14Data center static IP packages
15Long-term ISP data plans
16Static data plans
17Dynamic IP Quantity Package
18web-scraper
19Static IP renewal
20Static IP quotas are replaced
21Static data plan v2
24Static data add-on package
25Residential static IP packages
26Supplementary Order - Some payment channels require users to manually fill in the amount, such as virtual currency. If there is a shortfall, customers need to contact customer service to make the supplementary payment through this product
27Serp
28Video

Enumeration value

AttributesValue
status0
status1
status2
status3
product_type3
product_type9
product_type11
product_type12
product_type14
product_type16
product_type17
product_type18
product_type19
product_type21
product_type24
product_type25
product_type26
product_type27
product_type28
invoice-1
invoice0
invoice1
pay_fee_status1
pay_fee_status2

Return to example

200 Response

{
  "code": 0,
  "message": "操作成功",
  "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": {}
      }
    ],
    "pagination": {
      "total": 0,
      "page_no": 0,
      "page_size": 0,
      "total_pages": 0
    }
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKSuccessInline

Returns data structures

POST Create an order

POST /ep/order/create

Since there are many types of packages and each has different configurations, please fill in the parameters according to your actual situation. Improper entry of parameters may cause order creation to fail.

examples:

Renew static IPs

{
    "pid": Package ID, // Obtained from the /ep/product interface
    "upids": "1,2,3,4,5,6", // Retrieve the corresponding id field from the /ep/ip/get-static-ip interface
    "pm_id": 1 // Retrieved from the /ep/payment/list or /ep/payment/groups interface
  }

Static residential IP purchase

{
  "pid": Package ID, // Obtained from the /ep/product interface
  "pm_id": Payment method ID, // Obtained from the /ep/payment/list or /ep/payment/groups interfaces
  "region_list": "JP,15,333|DE,10,444| US, 5,555" // Format: region, quantity, ASN | region, quantity, ASN (ASN number optional)
}

Static data center IP purchase

{
  "pid": Package ID, // Obtained from the /ep/product interface
  "pm_id": Payment method ID, // Obtained from the /ep/payment/list or /ep/payment/groups interfaces
  "region_list": "JP,15,333|DE,10,444| US, 5,555" // Format: region, quantity, ASN | region, quantity, ASN (ASN number optional)
}

Dynamic residential traffic purchases

{
  "pid": Package ID, // Obtained from the /ep/product interface
  "pm_id": Payment method ID // Obtained from the /ep/payment/list or /ep/payment/groups interface
}

Static rotation traffic purchase

{
  "pid": Package ID, // Obtained from the /ep/product interface
  "pm_id": Payment method ID // Obtained from the /ep/payment/list or /ep/payment/groups interface
}

Dynamic unlimited traffic purchase

{
  "pid": 套餐ID, // 从 /ep/product 接口获取
  "pm_id": 支付方式ID, // 从 /ep/payment/list 或 /ep/payment/groups 接口获取
  "product_sku_bandwidth_id": 带宽规格ID,
  "product_sku_concurrency_id": 并发规格ID
}

Balance top-up

{
  "pid": Package ID, // Obtained from the /ep/product interface
  "pm_id": Payment method ID, // Obtained from the /ep/payment/list or /ep/payment/groups interfaces
  "recharge_amount": Deposit amount
}

Body requests parameters

{
  "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
}

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectYesnone
» pidbodyintegerYesPackage ID, the id field returned by the /ep/product interface
» upidsbodystringNoThe renewal plan ID list (separated by commas), from the id fields returned by the /ep/user-product/list or /ep/ip/get-static-ip interfaces
» amountbodynumberNoNumber of new package purchases
» pm_idbodyintegerYesPayment method ID, from the id field returned by the /ep/payment/list or /ep/payment/groups interface
» region_listbodystringNoWhen purchasing a static IP, specify region + quantity + ASN number, format: region, quantity, ASN
» coupon_snbodystringNoCoupon number
» use_invitation_registration_discountbodybooleanNoWhether to use the invitation registration offer
» renew_durationbodyintegerNoRenewal duration - Static IP optional
» product_sku_bandwidth_idbodyintegerNoPackage 11: Bandwidth package ID
» product_sku_concurrency_idbodyintegerNoPackage 11: Concurrent package ID
» product_sku_duration_idbodyintegerNoPackage type=11 Required: duration, specification, ID
» etdbodyintegerNoDuration multiplier is obtained from package extension_of_time_days, where 2 represents the number of days ×2, and the price increases
» recharge_amountbodyintegerNoPackage 3: Recharge amount

Return to example

200 Response

{
  "code": 0,
  "message": "操作成功",
  "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": "user@example.com",
      "role_type": 0,
      "vat_id": "string",
      "address_country": "string",
      "address_city": "string",
      "address_line1": "string",
      "address_line2": "string",
      "address_postal_code": "string"
    }
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKCreation successfulInline

Returns data structures

POST Cancel the order

POST /ep/order/close

Body requests parameters

{
  "trade_no": "string"
}

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectYesnone
» trade_nobodystringYesnone

Return results

Status codeStatus code meaningExplanationData models
200OKOperation successfulNone

POST order pre-check

POST /ep/order/check

Call before creating an order, used to preview prices, discounts, IP renewal details, etc., and does not actually create the order. The parameters are exactly the same as /ep/order/create.

Body requests parameters

{
  "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
}

Request parameters

NameLocationTypemust be selectedExplanation
bodybodyobjectYesnone
» pidbodyintegerYesPackage ID
» upidsbodystringNoIP Renewal: User package ID list, separated by commas
» amountbodyintegerNoPurchase quantity
» pm_idbodyintegerYesPayment method ID
» region_listbodystringNoStatic IP purchase region + quantity, format: region ID, quantity
» coupon_snbodystringNoCoupon number
» renew_durationbodystringNoIP renewal duration: 1m = 1 month, 2m = 2 months, em = end of next month
» product_sku_bandwidth_idbodyintegerNoPackage type=11 Required: Bandwidth specification ID
» product_sku_concurrency_idbodyintegerNoPackage type=11 Required: Concurrent specification ID
» product_sku_duration_idbodyintegerNoPackage type=11 Required: duration, specification, ID
» etdbodyintegerNoDuration multiplier obtained from package extension_of_time_days
» recharge_amountbodynumberNoPackage type=3 Required: Recharge amount

Enumeration value

AttributesValue
» renew_duration1m
» renew_duration2m
» renew_durationem

Return to example

200 Response

{
  "code": 0,
  "message": "操作成功",
  "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": {}
      }
    ]
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKPre-inspection successfulInline

Returns data structures

Payment management

GET the list of payment methods

GET /ep/payment/list

Request parameters

NameLocationTypemust be selectedExplanation
trade_noquerystringNoOrder Number - Can be entered when certain orders require specific payment methods
currencyquerystringNoCurrency unit

Return to example

200 Response

{
  "code": 0,
  "message": "操作成功",
  "data": {
    "list": [
      {
        "id": 0,
        "title": "string",
        "logo": "string",
        "group": "string",
        "handling_rate": 0,
        "handling_fee": 0,
        "disabled": false,
        "min": 0,
        "max": 0
      }
    ]
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKAchieve successInline

Returns data structures

GET the list of payment methods

GET /ep/payment/groups

Request parameters

NameLocationTypemust be selectedExplanation
trade_noquerystringNoOrder Number - Can be entered when certain orders require specific payment methods

Return to example

200 Response

{
  "code": 0,
  "message": "操作成功",
  "data": {
    "list": [
      {
        "name": "string",
        "logos": [
          null
        ],
        "items": [
          null
        ]
      }
    ]
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKAchieve successInline

Returns data structures

Marketing

GET top-up bonus ratio

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

Top-up bonus ratio

Return to example

200 Response

{
  "code": 0,
  "message": "操作成功",
  "data": {
    "list": [
      null
    ]
  }
}

Return results

Status codeStatus code meaningExplanationData models
200OKOKInline

Returns data structures

Products

GET the product list

GET /ep/product

Get a list of packages available for purchase on the current site, with filtering by type, validity period, and other criteria.

Request parameters

NameLocationTypemust be selectedExplanation
typequeryintegerNoFor package types, see the Product.type enumeration instructions. If not passed, all types are returned.
parent_product_typequeryintegerNoParent package type, valid only when type=19 (IP renewal), used to filter product lines: 14 = Data Center, 25 = Residential
time_daysqueryStuartNoValidity days filtering, supporting single values or arrays, such as 30 /[30,90,365]
show_typequeryStuartNoDisplay type filtering, supports single-value or array display

Detailed explanation

type: Package type, see Product.type enumeration instructions. If not passed, all types are returned.

Enumeration value

AttributesValue
parent_product_type14
parent_product_type25

Return to example

200 Response

{
  "code": 0,
  "message": "操作成功",
  "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": [
          null
        ]
      },
      "sku": {
        "bandwidth_list": [
          null
        ],
        "duration_list": [
          null
        ],
        "concurrency_list": [
          null
        ]
      }
    }
  ]
}

Return results

Status codeStatus code meaningExplanationData models
200OKOKInline

Returns data structures

Data models

productTypes

9

Package types: 9 dynamic residential data packages, 11 dynamic residential IPs, 14 static data center IPs, 25 static residential IPs

Attributes

NameTypemust be selectedRestraintChinese nameExplanation
anonymousintegerfalsenonePackage types: 9 dynamic residential data packages, 11 dynamic residential IPs, 14 static data center IPs, 25 static residential IPs

Enumeration value

AttributesValue
anonymous9
anonymous11
anonymous14
anonymous25

responseCode

200

Status code: 200 successful, 3 app_key invalid

Attributes

NameTypemust be selectedRestraintChinese nameExplanation
anonymousintegerfalsenoneStatus code: 200 successful, 3 app_key invalid

SuccessResponse

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

Attributes

NameTypemust be selectedRestraintChinese nameExplanation
codeintegerfalsenonenone
messagestringfalsenonenone
dataobjectfalsenonenone

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": "user@example.com",
    "role_type": 0,
    "vat_id": "string",
    "address_country": "string",
    "address_city": "string",
    "address_line1": "string",
    "address_line2": "string",
    "address_postal_code": "string"
  }
}

Attributes

NameTypemust be selectedRestraintChinese nameExplanation
idintegerfalsenoneOrder ID
trade_nostringfalsenoneInternal order number
out_trade_nostringfalsenoneExternal order number
product_idintegerfalsenonePackage ID
product_typeintegerfalsenoneFor package types, see product types list
amountintegerfalsenonePurchase quantity
unit_pricenumber(float)falsenoneUnit price
total_feenumber(float)falsenoneTotal order price (excluding discounts and handling fees)
goods_feenumber(float)falsenoneProduct Price (including discounts, excluding handling fees)
pay_feenumber(float)falsenoneActual payment amount (including discounts and fees)
discount_feenumber(float)falsenoneDiscount amount
handling_feenumber(float)falsenoneFees
refund_feenumber(float)falsenoneRefund amount
pm_idintegerfalsenone支付方式ID(来自 /ep/payment/list)
pm_titlestringfalsenoneName of payment method
pm_logostringfalsenonePayment method Logo URL
statusintegerfalsenoneOrder status
titlestringfalsenonePackage title
detailstringfalsenonePackage description
region_descstringfalsenoneRegional specification description
pay_atstring(date-time)falsenonePayment time
pay_timestampintegerfalsenonePayment timestamp
created_atstring(date-time)falsenoneCreation date
pay_fee_statusintegerfalsenoneLong and short payment status: 0 Normal 1 Long payment (overpayment) 2 Short payment
invoiceobjectfalsenoneInvoice information (only orders paid online have value)
» namestringfalsenoneFull name
» org_namestringfalsenoneCompany name
» first_namestringfalsenonenone
» last_namestringfalsenonenone
» phonestringfalsenonenone
» emailstring(email)falsenonenone
» role_typeintegerfalsenone1 individual, 2 enterprises
» vat_idstringfalsenoneTax number
» address_countrystringfalsenonenone
» address_citystringfalsenonenone
» address_line1stringfalsenonenone
» address_line2stringfalsenonenone
» address_postal_codestringfalsenonenone

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"
      }
    }
  ]
}

Order pre-inspection results

Attributes

NameTypemust be selectedRestraintChinese nameExplanation
product_idintegerfalsenonePackage ID
amountintegerfalsenoneQuantity
discount_feenumber(float)falsenoneDiscount amount
total_feenumber(float)falsenoneTotal order amount
pay_feenumber(float)falsenoneActual payment amount
product_typeintegerfalsenoneTypes of packages
titlestringfalsenonePackage title
detailstringfalsenonePackage description
ip_result[object]falsenoneIP Batch Renewal Results (Returned only when IP renewal)
» ipstringfalsenonenone
» pricenumber(float)falsenonenone
» country_codestringfalsenonenone
» current_timestring(date-time)falsenonenone
» renewal_timestring(date-time)falsenonenone
» countryobjectfalsenonenone
»» name_zh_cnstringfalsenonenone
»» FlagsstringfalsenoneCircular flag URL
»» square_flagstringfalsenoneSquare flag 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
      }
    ]
  }
}

Attributes

NameTypemust be selectedRestraintChinese nameExplanation
idintegerfalsenonePackage ID
titlestringfalsenoneMain package title
typeintegerfalsenoneTypes of packages
show_typeintegerfalsenoneDisplay types: 1. Regular 2. Large recommendations 3. Not available for purchase (requires customization) 4. Trial use
statusintegerfalsenoneStatus: 1 listed, 0 taken down
pricenumber(float)falsenoneRMB price
usd_pricenumber(float)falsenoneDollar prices
price_hkdnumber(float)falsenoneHong Kong dollar price
original_pricenumber(float)falsenoneOriginal Price (CNY)
original_usd_pricenumber(float)falsenoneOriginal Price (USD)
original_price_hkdnumber(float)falsenoneOriginal Price (HKD)
local_pricenumber(float)falsenoneLocalized pricing (depends on preferred_currency)
local_original_pricenumber(float)falsenoneLocalized original price (depends on preferred_currency)
preferred_currencystringfalsenoneRecommended display currencies such as USD / CNY / HKD
support_currenciesstringfalsenoneSupported currency list, separated by commas, such as USD and CNY
flow_valuenumber(float)falsenoneDefault data data (GB) for data packages
flow_givenumber(float)falsenoneBonus data (GB)
balance_givenumber(float)falsenoneBalance top-up bonus amount
balance_valuenumber(float)falsenoneRecharge amount
time_validitynumber(float)falsenoneThe default validity period for the package package is limited
time_pricenumber(float)falsenonePackage package price per IP
time_daysintegerfalsenoneValidity period, such as 30/90/180/365
tip1stringfalsenoneLabel Explanation 1
tip2stringfalsenoneLabel Explanation 2
Introduction[string]falsenoneList of text introductions
region_list_idintegerfalsenoneRegional ID
renew_product_liststringfalsenoneList of Renewable Plan IDs (separated by commas)
parent_product_typeintegerfalsenoneParent package type (valid when type=19): 14 or 25
total_countintegerfalsenoneTotal inventory, 0 means no limit
remain_countintegerfalsenoneRemaining inventory
extension_of_time_days[integer]falsenoneDuration multiples list; empty or containing only 1 means not supported
time_days_price_ratenumber(float)falsenoneDuration price coefficient, price × (1 + (multiples - 1) × rate)
descobjectfalsenonePackage description information
» subtitlestringfalsenoneSubtitle
» flow_valuenumber(float)falsenonenone
» flow_givenumber(float)falsenonenone
» balance_givenumber(float)falsenonenone
» time_validitynumber(float)falsenonenone
» time_pricenumber(float)falsenonenone
» tip1stringfalsenonenone
» tip2stringfalsenonenone
» introduce[string]falsenonenone
skuobjectfalsenoneSpecification parameters (returned when type=11)
» bandwidth_list[object]falsenoneList of bandwidth specifications
»» idintegerfalsenonenone
»» valueintegerfalsenoneBandwidth value (Mbps)
»» pricenumber(float)falsenonenone
»» price_usdnumber(float)falsenonenone
»» price_hkdnumber(float)falsenonenone
» duration_list[object]falsenoneDuration specification list
»» idintegerfalsenonenone
»» valueintegerfalsenoneDuration (days)
»» pricenumber(float)falsenonenone
»» price_usdnumber(float)falsenonenone
»» price_hkdnumber(float)falsenonenone
» concurrency_list[object]falsenoneConcurrent specification list
»» idintegerfalsenonenone
»» valueintegerfalsenoneand issued several times simultaneously
»» pricenumber(float)falsenonenone
»» price_usdnumber(float)falsenonenone
»» price_hkdnumber(float)falsenonenone

Pagination

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

Attributes

NameTypemust be selectedRestraintChinese nameExplanation
totalintegerfalsenonenone
page_nointegerfalsenonenone
page_sizeintegerfalsenonenone
total_pagesintegerfalsenonenone