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

Croxy OpenAPI

Cuộn xuống để xem ví dụ mã, ví dụ yêu cầu và ví dụ phản hồi.

Bạn có thể tìm app_key trên trang chủ của trung tâm cá nhân sau khi đăng nhập.

Hãy giữ khóa này an toàn. Khóa này cấp quyền quản trị cho tài khoản của bạn.

Xác thực

App Key

Truyền app_key trong tham số POST:

app_key: {your_app_key}

Hoặc truyền dưới dạng tham số truy vấn:

?app_key={your_app_key}

Định dạng phản hồi

Tất cả endpoint đều trả về một cấu trúc JSON thống nhất:

{
	"code": 200,
	"message": "Thao tác thành công",
	"data": {}
}
  • code: Mã trạng thái. 200 nghĩa là thành công; các giá trị khác nghĩa là yêu cầu thất bại.
  • message: Thông điệp phản hồi.
  • data: Dữ liệu phản hồi.

URL cơ sở:

  • https://api.croxy.com

Xác thực

  • Xác thực HTTP, scheme: bearer
  • API Key (apiKeyAuth)
    • Tên tham số: app_key, trong query. Hỗ trợ cả yêu cầu GET và POST.

Quản lý tài khoản proxy

Danh sách tài khoản proxy

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/whitelist-account/list?app_key=pa%24%24word \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/whitelist-account/list

Tham số

NameInTypeRequiredDescription
app_keyquerystring(password)trueKhóa xác thực

Ví dụ phản hồi

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» coderesponseCodefalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» idintegerfalsenoneSố tài khoản
»»» usernamestringfalsenoneTên tài khoản đại lý
»»» passwordstringfalsenoneMật khẩu tài khoản đại lý
»»» created_atstringfalsenoneThêm thời gian
»»» remarkstringfalsenoneNhận xét
»»» product_typeproductTypesfalsenoneLoại gói, 9 gói giao thông dân cư động, 11 IP dân cư động, 14 IP trung tâm dữ liệu tĩnh, 25 IP dân cư tĩnh
»»» usage_flowintegerfalsenoneLưu lượng đã sử dụng, đơn vị: KB
»»» limit_flowintegerfalsenoneGiới hạn lưu lượng tùy chỉnh: đơn vị GB tối đa là 102400, 0 là không giới hạn
»»» statusintegerfalsenoneTrạng thái đã bật: 1 đã bật, 0 đã tắt

Enumerated Values

PropertyValue
product_type9
product_type11
product_type14
product_type25
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Thêm tài khoản proxy

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/whitelist-account/add \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/whitelist-account/add

Body parameter

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

Tham số

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» app_keybodystringfalseKhóa ủy quyền
» accountsbodystringfalseMật khẩu tài khoản, vui lòng điền theo định dạng tên người dùng: mật khẩu. Tài khoản và mật khẩu chỉ hỗ trợ số và chữ cái. Cấm nhập bất kỳ ký hiệu hoặc dấu cách đặc biệt nào. Dấu hai chấm ngăn cách tài khoản và mật khẩu. Tính năng bổ sung hàng loạt được hỗ trợ và các tài khoản đại lý được phân tách bằng dấu phẩy tiếng Anh (,).
» remarkbodystringfalseMô tả tài khoản đại lý
» product_typebodyproductTypesfalseLoại gói, 9 gói giao thông dân cư động, 11 IP dân cư động, 14 IP trung tâm dữ liệu tĩnh, 25 IP dân cư tĩnh

Enumerated Values

ParameterValue
» product_type9
» product_type11
» product_type14
» product_type25

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» datanullfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Xóa tài khoản proxy

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/whitelist-account/delete \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/whitelist-account/delete

Xin lưu ý rằng nó không thể được khôi phục sau khi xóa và không thể truy vấn lưu lượng đã sử dụng. Sẽ có thời gian chờ khoảng 5 phút để xóa, trong thời gian đó bạn vẫn có thể bị tính phí.

Body parameter

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

Tham số

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» app_keybodystringfalseKhóa ủy quyền
» accountsbodystringfalseTài khoản đại lý, chỉ hỗ trợ số và chữ cái. Hỗ trợ thao tác hàng loạt, dấu phẩy tiếng Anh (,) phân tách tài khoản đại lý

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» datanullfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Vô hiệu hóa tài khoản proxy

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/whitelist-account/disable \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/whitelist-account/disable

Sẽ có thời gian chờ khoảng 5 phút để vô hiệu hóa, trong thời gian đó bạn vẫn có thể bị tính phí.

Body parameter

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

Tham số

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» app_keybodystringfalseKhóa ủy quyền
» accountsbodystringfalseTài khoản đại lý, chỉ hỗ trợ số và chữ cái. Hỗ trợ thao tác hàng loạt, dấu phẩy tiếng Anh (,) phân tách tài khoản đại lý

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» datanullfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Kích hoạt tài khoản proxy

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/whitelist-account/enable \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/whitelist-account/enable

Body parameter

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

Tham số

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» app_keybodystringfalseKhóa ủy quyền
» accountsbodystringfalseTài khoản đại lý, chỉ hỗ trợ số và chữ cái. Hỗ trợ thao tác hàng loạt, dấu phẩy tiếng Anh (,) phân tách tài khoản đại lý

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» datanullfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Đổi mật khẩu tài khoản proxy

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/whitelist-account/change-password \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/whitelist-account/change-password

Xin lưu ý rằng có thời gian chờ 5 phút sau khi sửa đổi, trong thời gian đó mật khẩu cũ vẫn có thể được sử dụng bình thường.

Body parameter

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

Tham số

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» app_keybodystringfalseKhóa ủy quyền
» accountbodystringfalseTài khoản đại lý, chỉ hỗ trợ số và chữ cái.
» passwordbodystringfalseMật khẩu mới cho tài khoản đại lý, chỉ hỗ trợ số và chữ.

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» datanullfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Cập nhật ghi chú tài khoản proxy

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/whitelist-account/change-remark \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/whitelist-account/change-remark

Body parameter

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

Tham số

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» app_keybodystringfalseKhóa ủy quyền
» accountbodystringfalseTài khoản đại lý, chỉ hỗ trợ số và chữ cái.
» remarkbodystringfalseNhận xét mới cho tài khoản đại lý, trong vòng 32 ký tự tiếng Trung hoặc 64 ký tự tiếng Anh.

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» datanullfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Sửa đổi giới hạn lưu lượng tài khoản proxy

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/whitelist-account/change-limit \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/whitelist-account/change-limit

Xin lưu ý rằng số liệu thống kê lưu lượng truy cập có thể bị trì hoãn trong vòng 5 phút, nghĩa là lưu lượng truy cập thực tế đã sử dụng có thể vượt quá giới hạn này.

Body parameter

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

Tham số

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» app_keybodystringfalseKhóa ủy quyền
» accountbodystringfalseTài khoản đại lý, chỉ hỗ trợ số và chữ cái.
» limitbodyintegerfalseGiới hạn lưu lượng, đơn vị: GB, 0 nghĩa là không có giới hạn trên

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» datanullfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Cập nhật thông tin tài khoản proxy

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/proxy-account/change \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/proxy-account/change

Sửa đổi mật khẩu tài khoản proxy, nhận xét, giới hạn lưu lượng, giới hạn lưu lượng hàng ngày, trạng thái bật hoặc chuyển đổi UDP.

Body parameter

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

Tham số

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» app_keybodystringfalseKhóa ủy quyền
» accountbodystringfalseTên tài khoản đại lý
» passwordbodystringfalseMật khẩu mới, 6-16 chữ số hoặc chữ cái; nếu không được thông qua, nó sẽ không được sửa đổi.
» remarkbodystringfalseGhi chú mới
» limitbodyintegerfalseGiới hạn lưu lượng, đơn vị GB, 0 nghĩa là không giới hạn
» daily_limitbodyintegerfalseGiới hạn lưu lượng truy cập hàng ngày tính bằng GB, 0 nghĩa là không có giới hạn
» statusbodyintegerfalseTrạng thái đã bật
» udpbodyintegerfalseSwitch hỗ trợ UDP, chỉ có tác dụng với gói loại 14, 16, 21, 25

Enumerated Values

ParameterValue
» status0
» status1
» udp0
» udp1

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công
» msgstringfalsenonethông báo trạng thái
» datanullfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Quản lý đơn hàng

Tạo, truy vấn và hủy đơn hàng.

danh sách đặt hàng

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/order/list \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/order/list

Tham số

NameInTypeRequiredDescription
page_noqueryintegerfalsenone
page_sizequeryintegerfalsenone
trade_noquerystringfalsesố thứ tự
start_timequerystring(date-time)falseThời gian bắt đầu (bao gồm), chẳng hạn như 2024-01-01 00:00:00
end_timequerystring(date-time)falseThời gian kết thúc (không bao gồm)
statusqueryintegerfalseTrạng thái đơn hàng
product_typequeryintegerfalseloại sản phẩm
invoicequeryintegerfalseTrạng thái hóa đơn: 0 không giới hạn 1 đã lập hóa đơn -1 chưa lập hóa đơn (có thể cấp lại)
pay_fee_statusqueryintegerfalseSàng lọc thanh toán dài và ngắn: 1 Thanh toán vượt mức 2 Thanh toán ngắn

Detailed descriptions

status: Trạng thái đơn hàng

Trạng tháiMô tả
0Đang chờ thanh toán
1Đã trả tiền
2Bị hủy do làm thêm giờ và không thanh toán
3Đã hoàn tiền

product_type: loại sản phẩm | Loại sản phẩm | Mô tả | |---|---| |3|Nạp số dư| |9|Gói lưu lượng động| |11|Gói thời gian toàn cầu năng động V2| |12|Gói lưu lượng IDC dài hạn| |13|Gói lưu lượng IP tĩnh dân dụng| |14|Gói IP tĩnh trung tâm dữ liệu| |15|Gói lưu lượng ISP dài hạn| |16|Gói lưu lượng tĩnh| |17|Gói số lượng IP động| |18|máy quét web| |19|Gia hạn IP tĩnh| |20|Hạn ngạch thay thế IP tĩnh| |21|Gói lưu lượng tĩnh v2| |24|Gói bổ sung giao thông tĩnh| |25|Gói IP tĩnh dân dụng| |26|Lệnh thay thế - Một số kênh thanh toán yêu cầu người dùng điền số tiền theo cách thủ công, chẳng hạn như: tiền ảo. Nếu xảy ra khoản thanh toán ngắn, bạn cần liên hệ với bộ phận dịch vụ khách hàng để thực hiện hoàn trả thông qua sản phẩm này| |27|Serp| |28|Video|

Enumerated Values

ParameterValue
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

Ví dụ phản hồi

200 Response

{
	"code": 0,
	"message": "Hoạt động thành công",
	"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
		}
	}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKthành côngInline

Cấu trúc phản hồi

To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Tạo đơn hàng

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/order/create \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/order/create

Vì có nhiều loại gói và mỗi gói có cấu hình khác nhau nên các bạn vui lòng điền thông số theo tình hình thực tế. Việc điền thông số không đúng cách có thể dẫn đến việc tạo đơn hàng không thành công.

ví dụ:

Gia hạn IP tĩnh

{
    "pid": ID gói, // lấy được từ giao diện /open/product
    "upids": "1,2,3,4,5,6", // Lấy trường id tương ứng từ giao diện /open/ip/get-static-ip
    "pm_id": 1 // Lấy từ giao diện /open/Payment/list hoặc /open/Payment/groups
  }

Mua IP tĩnh cho khu dân cư

{
  "pid": ID gói, // lấy được từ giao diện /open/product
  "pm_id": ID phương thức thanh toán, // lấy được từ giao diện /open/Payment/list hoặc /open/Payment/groups
  "khu vực_list": "JP,15,333|DE,10,444|US,5,555" // Định dạng: khu vực, số lượng, ASN|khu vực, số lượng, ASN (số ASN tùy chọn)
}

Mua IP trung tâm dữ liệu tĩnh

{
  "pid": ID gói, // lấy được từ giao diện /open/product
  "pm_id": ID phương thức thanh toán, // lấy được từ giao diện /open/Payment/list hoặc /open/Payment/groups
  "khu vực_list": "JP,15,333|DE,10,444|US,5,555" // Định dạng: khu vực, số lượng, ASN|khu vực, số lượng, ASN (số ASN tùy chọn)
}

Mua giao thông dân cư năng động

{
  "pid": ID gói, // lấy được từ giao diện /open/product
  "pm_id": ID phương thức thanh toán // Lấy từ giao diện /open/Payment/list hoặc /open/Payment/groups
}

Mua lưu lượng quay vòng tĩnh

{
  "pid": ID gói, // lấy được từ giao diện /open/product
  "pm_id": ID phương thức thanh toán // Lấy từ giao diện /open/Payment/list hoặc /open/Payment/groups
}

Mua lưu lượng truy cập không giới hạn động

{
  "pid": ID gói, // lấy được từ giao diện /open/product
  "pm_id": ID phương thức thanh toán, // lấy được từ giao diện /open/Payment/list hoặc /open/Payment/groups
  "product_sku_bandwidth_id": ID thông số băng thông,
  "product_sku_concurrency_id": ID đặc tả đồng thời
}

Nạp lại số dư

{
  "pid": ID gói, // lấy được từ giao diện /open/product
  "pm_id": ID phương thức thanh toán, // lấy được từ giao diện /open/Payment/list hoặc /open/Payment/groups
  "recharge_amount": số tiền nạp lại
}

Body parameter

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

Tham số

| Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | --- | --- | --- | | body | body | object | true | none | | » pid | body | integer | true | ID gói, từ trường id được trả về bởi giao diện /open/product | | » upids | body | string | false | Danh sách ID gói gia hạn (được phân tách bằng dấu phẩy), từ trường id được trả về bởi giao diện /open/user-product/list hoặc /open/ip/get-static-ip | | » amount | body | number | false | Số gói mới mua | | » pm_id | body | integer | true | ID phương thức thanh toán, từ trường id được trả về bởi giao diện /open/thanh toán/danh sách hoặc /open/thanh toán/nhóm | | » region_list | body | string | false | Khi mua IP tĩnh, hãy chỉ định vùng + số lượng + số ASN. Định dạng là: vùng, số lượng, ASN | khu vực, số lượng, ASN. Ví dụ: JP,15,333 | DE,10,444 | US,5,555 (số ASN là tùy chọn) | | » coupon_sn | body | string | false | Số phiếu giảm giá | | » use_invitation_registration_discount | body | boolean | false | Có nên sử dụng lời mời đăng ký giảm giá | | » renew_duration | body | integer | false | Gia hạn IP tĩnh thời gian tùy chọn | | » product_sku_bandwidth_id | body | integer | false | Gói 11: ID gói băng thông | | » product_sku_concurrency_id | body | integer | false | Gói 11: ID gói đồng thời | | » product_sku_duration_id | body | integer | false | Loại gói=11Bắt buộc: ID thông số thời lượng | | » etd | body | integer | false | Bội số thời lượng, lấy từ gói gia hạn_of_time_days, 2 thể hiện số ngày × 2, giá sẽ tăng | | » recharge_amount | body | integer | false | Gói 3: Số tiền nạp |

Ví dụ phản hồi

200 Response

{
	"code": 0,
	"message": "Hoạt động thành công",
	"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"
		}
	}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKĐã tạo thành côngInline

Cấu trúc phản hồi

To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Hủy đơn hàng

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/order/close \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/order/close

Body parameter

{
	"trade_no": "string"
}

Tham số

NameInTypeRequiredDescription
bodybodyobjecttruenone
» trade_nobodystringtruenone

Ví dụ phản hồi

200 Response

{
	"code": 0,
	"message": "Hoạt động thành công",
	"data": {}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKHoạt động thành côngSuccessResponse
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Kiểm tra trước đơn hàng

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/order/check \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/order/check

Được gọi trước khi tạo đơn hàng, nó được sử dụng để xem trước giá cả, chiết khấu, chi tiết gia hạn IP, v.v. Đơn hàng sẽ không thực sự được tạo. Các tham số hoàn toàn giống với /open/order/create.

Body parameter

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

Tham số

| Name | In | Type | Required | Description | | ---------------------------- | ---- | ------- | -------- | ---------------------------------------------------------------- | -------------------- | | body | body | object | true | none | | » pid | body | integer | true | Mã gói | | » upids | body | string | false | Gia hạn IP: danh sách ID gói người dùng, phân tách bằng dấu phẩy | | » amount | body | integer | false | Số lượng mua | | » pm_id | body | integer | true | Mã phương thức thanh toán | | » region_list | body | string | false | Vùng mua IP tĩnh + số lượng, định dạng: ID vùng, số lượng | ID khu vực, số lượng | | » coupon_sn | body | string | false | Số phiếu giảm giá | | » renew_duration | body | string | false | Thời gian gia hạn IP: 1m=1 tháng, 2m=2 tháng, em=cuối tháng sau | | » product_sku_bandwidth_id | body | integer | false | Loại gói=11Bắt buộc: ID thông số băng thông | | » product_sku_concurrency_id | body | integer | false | Loại gói=11Bắt buộc: ID thông số đồng thời | | » product_sku_duration_id | body | integer | false | Loại gói=11Bắt buộc: ID thông số thời lượng | | » etd | body | integer | false | Bội số thời lượng, thu được từ gói gia hạn_of_time_days | | » recharge_amount | body | number | false | Loại gói=3Bắt buộc: số tiền nạp lại |

Enumerated Values

ParameterValue
» renew_duration1m
» renew_duration2m
» renew_durationem

Ví dụ phản hồi

200 Response

{
	"code": 0,
	"message": "Hoạt động thành công",
	"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"
				}
			}
		]
	}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKChuyến bay trước thành côngInline

Cấu trúc phản hồi

To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Danh sách trắng IP

Danh sách danh sách trắng IP

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/proxy-ip/list?app_key=pa%24%24word \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/proxy-ip/list

Tham số

NameInTypeRequiredDescription
app_keyquerystring(password)trueKhóa xác thực
product_typequeryintegerfalseSố loại gói

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» ipstringfalsenoneIP danh sách trắng
»»» remarkstringfalsenoneNhận xét
»»» product_typeintegerfalsenoneLoại gói
»»» created_atstringfalsenonethời gian sáng tạo
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Thêm danh sách trắng IP

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/proxy-ip/add \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/proxy-ip/add

Body parameter

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

Tham số

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» app_keybodystringfalseKhóa ủy quyền
» ipsbodystringfalseCác IP thuộc danh sách trắng cần được thêm vào, phân tách nhiều IP bằng dấu phẩy hoặc dòng mới.
» remarkbodystringfalseNhận xét
» product_typebodyintegerfalseSố loại gói
» user_product_idbodyintegerfalseID gói người dùng, bắt buộc khi loại gói là 11

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công
» msgstringfalsenonethông báo trạng thái
» datanullfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Xóa danh sách trắng IP

Ví dụ mã

# You can also use wget
curl -X POST https://api.croxy.com/open/proxy-ip/delete \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

POST /open/proxy-ip/delete

Body parameter

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

Tham số

NameInTypeRequiredDescription
bodybodyobjectfalsenone
» app_keybodystringfalseKhóa ủy quyền
» ipsbodystringfalseIP danh sách trắng cần xóa, nhiều IP được phân tách bằng dấu phẩy
» verify_typebodystringfalseLoại xác minh: điện thoại, email, wechat, totp
» verify_codebodystringfalseMã xác minh

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công
» msgstringfalsenonethông báo trạng thái
» datanullfalsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Nhật ký lưu lượng

Việc sử dụng lưu lượng truy cập được tóm tắt theo ngày

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/user-usage-flow/total?app_key=pa%24%24word \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/user-usage-flow/total

Tham số

NameInTypeRequiredDescription
app_keyquerystring(password)trueKhóa xác thực
start_timequerystring(Y-m-d H:i:s)falseThời gian bắt đầu, chính xác đến giây. Xin lưu ý rằng việc đăng nhập bị trì hoãn trong vòng 5 phút. Mặc định là trong vòng 7 ngày.
end_timequerystring(Y-m-d H:i:s)falseThời hạn, chính xác đến từng giây. Xin lưu ý rằng việc đăng nhập bị trì hoãn trong vòng 5 phút. Thời gian hiện tại mặc định.
usernamequerystringfalseTên tài khoản phụ, truy vấn tất cả các tài khoản theo mặc định, tài khoản phụ có thể được chỉ định. Xin lưu ý rằng nếu bạn thêm tài khoản phụ có cùng tên, truy vấn này sẽ trả về tất cả hồ sơ sử dụng cho tài khoản đại lý có cùng tên.
product_typequerynumberfalseLoại gói

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» daystringfalsenonengày
»»» flowintegerfalsenoneLưu lượng tiêu thụ, đơn vị KB
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Tra cứu gói

Danh sách các gói đã mua

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/user-product/list?app_key=pa%24%24word \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/user-product/list

Tham số

NameInTypeRequiredDescription
app_keyquerystring(password)trueKhóa xác thực
trade_noquerystringfalseMã đơn hàng, vui lòng nhập đầy đủ mã đơn hàng. Tìm kiếm mờ không được hỗ trợ.
pagequerynumberfalsePhân trang, mặc định: 1
sizequerynumberfalseSố trang hiển thị, mặc định: 20
product_typequerynumberfalseLoại gói

Ví dụ phản hồi

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": "cấp độ đầu vào"
				}
			}
		],
		"page": 1,
		"page_size": 20,
		"total_count": 0,
		"total_page": 0
	}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» idintegerfalsenoneSố gói
»»» created_atstringfalsenoneThời gian hiệu lực của gói
»»» expired_atstringfalsenoneThời gian hết hạn của gói. Sau khi hết hạn, lưu lượng không thể được sử dụng.
»»» product_typeproductTypesfalsenoneLoại gói, 9 gói giao thông dân cư động, 11 IP dân cư động, 14 IP trung tâm dữ liệu tĩnh, 25 IP dân cư tĩnh
»»» trade_nostringfalsenoneSố giao dịch đặt hàng
»»» orderobjectfalsenonenone
»»»» created_atstringfalsenoneThời gian tạo đơn hàng
»»»» pay_atstringfalsenoneThời gian thanh toán đơn hàng
»»»» titlestringfalsenoneMô tả đơn hàng
»» pageintegerfalsenoneTrang hiện tại
»» page_sizeintegerfalsenonekích thước phân trang
»» total_countintegerfalsenoneTổng số hồ sơ
»» total_pageintegerfalsenoneTổng số trang

Enumerated Values

PropertyValue
product_type9
product_type11
product_type14
product_type25
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Tóm tắt dữ liệu gói người dùng

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/user-product/summary?app_key=pa%24%24word \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/user-product/summary

Nhận thông tin tóm tắt thống kê về các gói người dùng, bao gồm tổng số tiền, số tiền hiệu dụng, số tiền sắp hết, số tiền đã hết hạn, v.v.

Tham số

NameInTypeRequiredDescription
app_keyquerystring(password)trueKhóa xác thực
product_typequeryintegerfalseLoại sản phẩm, chỉ hỗ trợ 9 (gói lưu lượng động), 12 (gói lưu lượng IDC dài hạn)

Enumerated Values

ParameterValue
product_type9
product_type12

Ví dụ phản hồi

200 Response

{
	"code": 200,
	"msg": "thành công",
	"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
	}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» totalintegerfalsenoneLưu lượng/Tổng khối lượng IP (đơn vị: KB)
»» total_countintegerfalsenoneTổng số gói
»» effectiveintegerfalsenoneSố tiền còn hiệu lực (đơn vị: KB)
»» effective_countintegerfalsenoneSố gói hợp lệ
»» effective_totalintegerfalsenoneTổng số tiền hiệu dụng (đơn vị: KB)
»» effective_usedintegerfalsenoneLượng sử dụng hiệu quả (đơn vị: KB)
»» temporaryintegerfalsenoneTổng số tiền phải trả (phải trả trong vòng 7 ngày, đơn vị: KB)
»» temporary_countintegerfalsenoneSố gói hết hạn (hết hạn trong 7 ngày)
»» expiredintegerfalsenoneSố tiền còn lại đã hết hạn (đơn vị: KB)
»» expired_countintegerfalsenoneSố gói hết hạn
»» usedintegerfalsenoneTổng số tiền sử dụng (đơn vị: KB)
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Lấy IP

Trích xuất IP

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/ip/v3?app_key=pa%24%24word \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/ip/v3

Tham số

NameInTypeRequiredDescription
app_keyquerystring(password)truephím truy cập
ccquerystringfalseQuốc gia hoặc khu vực
statequerystringfalsetỉnh hoặc tiểu bang
cityquerystringfalseThành phố
formatquerystringfalseNhận định dạng
lbquerystringfalseDấu phân cách, chỉ hợp lệ ở định dạng văn bản
numquerynumberfalseTrích xuất số lượng
lifequerynumberfalseThời gian giữ - phút
epquerystringfalsemạng proxy

Enumerated Values

ParameterValue
epus
ephk
epde

Ví dụ phản hồi

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» list[any]falsenonenone
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Danh sách thành phố khu vực năng động V4

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/ip/dcl4?username=string \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/ip/dcl4

Lấy danh sách thành phố theo tên người dùng, yêu cầu xác thực đăng nhập và tài khoản phải thuộc về người dùng hiện tại

Tham số

NameInTypeRequiredDescription
usernamequerystringtrueTên người dùng tài khoản đại lý

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» cachebooleanfalsenoneCho dù nó đến từ bộ nhớ đệm
»» list[object]falsenonenone
»»» CitystringfalsenoneThành phố
»»» Areastringfalsenonekhu vực
»»» StatestringfalsenoneTiểu bang/Tỉnh
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth, apiKeyAuth

Danh sách tỉnh/bang khu vực động V4

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/ip/dsl4?username=string \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/ip/dsl4

Nhận danh sách tiểu bang/tỉnh theo tên người dùng, yêu cầu xác thực đăng nhập và tài khoản phải thuộc về người dùng hiện tại

Tham số

NameInTypeRequiredDescription
usernamequerystringtrueTên người dùng tài khoản đại lý

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» cachebooleanfalsenoneCho dù nó đến từ bộ nhớ đệm
»» list[object]falsenonenone
»»» CitystringfalsenoneThành phố
»»» Areastringfalsenonekhu vực
»»» StatestringfalsenoneTiểu bang/Tỉnh
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth, apiKeyAuth

Danh sách hợp nhất thành phố/tỉnh khu vực năng động V4

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/ip/dal4?username=string \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/ip/dal4

Nhận danh sách hợp nhất các tiểu bang/tỉnh và thành phố theo tên người dùng, được nhóm theo khu vực. Cần phải xác thực đăng nhập và tài khoản phải thuộc về người dùng hiện tại

Tham số

NameInTypeRequiredDescription
usernamequerystringtrueTên người dùng tài khoản đại lý

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» cachebooleanfalsenoneCho dù nó đến từ bộ nhớ đệm
»» list[object]falsenoneDanh sách khu vực
»»» Areastringfalsenonemã vùng
»»» states[object]falsenoneDanh sách Tiểu bang/Tỉnh
»»»» StatestringfalsenoneTên tiểu bang/tỉnh
»»»» cities[string]falsenoneDanh sách thành phố
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth, apiKeyAuth

Danh sách thành phố

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/ip/dynamic-citys \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/ip/dynamic-citys

Ví dụ phản hồi

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"name_zh_cn": "Hoa Kỳ",
				"name_en": "United States",
				"continent_code": "NA",
				"country_code": "US",
				"items": [
					{
						"city": "Arlington",
						"state": "alabama",
						"continent_code": "NA",
						"country_code": "US"
					}
				]
			}
		]
	}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» list[object]falsenonedanh sách
»»» name_zh_cnstringfalsenoneTên quốc gia hoặc khu vực
»»» name_enstringfalsenoneTên quốc gia hoặc khu vực
»»» continent_codestringfalsenonemã lục địa
»»» country_codestringfalsenoneMã quốc gia hoặc vùng
»»» items[any]falsenonetỉnh hoặc tiểu bang
»»»» citystringfalsenonetên thành phố
»»»» statestringfalsenoneMã tên tỉnh hoặc tiểu bang
»»»» continent_codestringfalsenonemã lục địa
»»»» country_codestringfalsenoneMã quốc gia hoặc vùng
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Tìm kiếm thành phố

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/ip/dynamic-citys/search?country_code=string&state=string \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/ip/dynamic-citys/search

Tham số

NameInTypeRequiredDescription
country_codequerystringtrueMã quốc gia hoặc vùng
statequerystringtrueMã tiểu bang hoặc tỉnh

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» list[string]falsenonedanh sách
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Danh sách tiểu bang

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/ip/dynamic-states \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/ip/dynamic-states

Ví dụ phản hồi

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"name_zh_cn": "Hoa Kỳ",
				"name_en": "United States",
				"continent_code": "NA",
				"country_code": "US",
				"items": [
					{
						"state": "alabama",
						"continent_code": "NA",
						"country_code": "US"
					}
				]
			}
		]
	}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» list[object]falsenonedanh sách
»»» name_zh_cnstringfalsenoneTên quốc gia hoặc khu vực
»»» name_enstringfalsenoneTên quốc gia hoặc khu vực
»»» continent_codestringfalsenonemã lục địa
»»» country_codestringfalsenoneMã quốc gia hoặc vùng
»»» items[any]falsenonetỉnh hoặc tiểu bang
»»»» statestringfalsenoneMã tên tỉnh hoặc tiểu bang
»»»» continent_codestringfalsenonemã lục địa
»»»» country_codestringfalsenoneMã quốc gia hoặc vùng
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Tìm kiếm Tiểu bang/Tỉnh

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/ip/dynamic-states/search?country_code=string \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/ip/dynamic-states/search

Tham số

NameInTypeRequiredDescription
country_codequerystringtrueMã quốc gia hoặc vùng

Ví dụ phản hồi

200 Response

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

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ, 156 tài khoản không được xác thực.
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» list[string]falsenonedanh sách
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Trích xuất danh sách IP tĩnh đã mua

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/ip/get-static-ip \
  -H 'Authorization: Bearer {access-token}'

GET /open/ip/get-static-ip

Tham số

NameInTypeRequiredDescription
country_codequerystringfalseMã quốc gia hoặc vùng
product_typequerynumberfalseLoại sản phẩm, 25: IP dân dụng tĩnh, 14: IP trung tâm dữ liệu
trade_noquerystringfalseLọc IP theo số đơn hàng
pagequerynumberfalsesố trang
sizequerynumberfalseSố lượng mỗi trang
statusquerynumberfalseTrạng thái, 1: hợp lệ, 2: không hợp lệ, 3: sắp hết hạn, 4: đang bảo trì

Enumerated Values

ParameterValue
product_type14
product_type25
status1 - 2 - 3 - 4

Phản hồi

StatusMeaningDescriptionSchema
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Lấy số lượng IP tĩnh đang bán trong khu vực

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/ip/static-ip-region \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/ip/static-ip-region

Tham số

NameInTypeRequiredDescription
ispqueryintegerfalseLọc ISP, không lọc nếu không truyền (mặc định là 1 ngoại trừ trang 1/4/5)
asnqueryintegerfalseCó trả về dữ liệu gói ASN hay không
exclusivequeryintegerfalseCó tính theo hàng tồn kho độc quyền hay không

Detailed descriptions

isp: Lọc ISP, không lọc nếu không truyền (mặc định là 1 ngoại trừ trang 1/4/5)

giá trịmô tả
0Trung tâm dữ liệu IP tĩnh (IDC)
1Trang chủ IP tĩnh (ISP)

asn: Có trả về dữ liệu gói ASN hay không

giá trịmô tả
0Không trả về dữ liệu gói ASN (mặc định)
1Trả về dữ liệu gói ASN

exclusive: Có tính theo hàng tồn kho độc quyền hay không

giá trịmô tả
0Thống kê dựa trên tầm cỡ của người dùng/nhóm chia sẻ hiện tại (mặc định)
1Loại trừ tất cả các IP được chỉ định và chỉ tính khoảng không quảng cáo có sẵn

Enumerated Values

ParameterValue
isp0
isp1
asn0
asn1
exclusive0
exclusive1

Ví dụ phản hồi

200 Response

{
	"code": 200,
	"msg": "Yêu cầu thành công",
	"data": {
		"list": [
			{
				"code": "US",
				"number": 55
			}
		]
	}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» list[any]falsenonenone
»»» codestringfalsenoneMã quốc gia hoặc vùng
»»» numberintegerfalsenoneSố lượng
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Nhận các quốc gia/khu vực được hỗ trợ bởi Host_pool

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/host-pool/regions \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/host-pool/regions

Truy vấn danh sách các quốc gia/khu vực được trang web hiện tại của dịch vụ hosting_pool hỗ trợ.

Giao diện này hướng đến kịch bản trích xuất ngẫu nhiên IP của trung tâm dữ liệu dựa trên các điểm lưu lượng truy cập và chỉ tính các quốc gia/khu vực dựa trên kho IP của trung tâm dữ liệu có sẵn tại địa điểm hiện tại. ASN, ISP, tính năng lọc khoảng không quảng cáo độc quyền không được hỗ trợ và IP không bị loại trừ khỏi hồ sơ người dùng đã mua.

Ví dụ phản hồi

200 Response

{
	"code": 200,
	"msg": "Yêu cầu thành công",
	"data": {
		"list": [
			{
				"code": "US",
				"number": 55,
				"name_zh_cn": "Hoa Kỳ",
				"name_en": "United States",
				"square_flag": "https://example.com/static/flags/us.png"
			}
		]
	}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKYêu cầu thành côngInline

Cấu trúc phản hồi

Mã trạng thái 200

NameTypeRequiredRestrictionsDescription
» codeintegerfalsenoneMã trạng thái, 200 thành công
» msgstringfalsenonethông báo trạng thái
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» codestringfalsenoneMã quốc gia hoặc vùng, ISO 3166-1 alpha-2
»»» numberintegerfalsenoneSố lượng IP trung tâm dữ liệu có sẵn tại địa điểm hiện tại
»»» name_zh_cnstringfalsenoneQuốc gia hoặc khu vực Tên tiếng Trung
»»» name_enstringfalsenoneTên tiếng Anh của quốc gia hoặc khu vực
»»» square_flagstringfalsenoneURL hình ảnh cờ vuông
To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Quản lý thanh toán

Nhận danh sách các phương thức thanh toán

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/payment/groups \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/payment/groups

Tham số

NameInTypeRequiredDescription
trade_noqueryundefinedfalseSố đơn hàng - có thể được chuyển vào khi một số đơn hàng yêu cầu một phương thức thanh toán cụ thể

Ví dụ phản hồi

200 Response

{
	"code": 0,
	"message": "Hoạt động thành công",
	"data": {
		"list": [
			{
				"name": "string",
				"logos": ["string"],
				"items": [
					{
						"id": 0,
						"title": "string",
						"logo": "string",
						"group": "string",
						"disabled": false,
						"min": 0,
						"max": 0
					}
				]
			}
		]
	}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKđạt được thành côngInline

Cấu trúc phản hồi

To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Tiếp thị

Tỷ lệ thưởng nạp tiền

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/activity/balance-recharge-gift-ratio \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

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

Tỷ lệ thưởng nạp tiền

Ví dụ phản hồi

200 Response

{
	"code": 0,
	"message": "Hoạt động thành công",
	"data": {
		"list": [null]
	}
}

Phản hồi

StatusMeaningDescriptionSchema
200OKOKInline

Cấu trúc phản hồi

To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Sản phẩm

Danh sách sản phẩm

Ví dụ mã

# You can also use wget
curl -X GET https://api.croxy.com/open/product \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /open/product

Nhận danh sách các gói có sẵn để mua trên trang web hiện tại và hỗ trợ lọc theo loại, thời hạn hiệu lực và các điều kiện khác.

Tham số

NameInTypeRequiredDescription
typequeryintegerfalseLoại gói, xem mô tả liệt kê Product.type. Nếu không vượt qua, tất cả các loại sẽ được trả về.
parent_product_typequeryintegerfalseLoại gói gốc, chỉ hợp lệ khi loại=19 (gia hạn IP), dùng để lọc các dòng sản phẩm: 14=trung tâm dữ liệu 25=dân cư
time_daysqueryanyfalseLọc khoảng thời gian hiệu lực, hỗ trợ giá trị đơn hoặc mảng, chẳng hạn như 30 / [30,90,365]
show_typequeryanyfalseLọc kiểu hiển thị, hỗ trợ giá trị đơn hoặc mảng

Enumerated Values

ParameterValue
parent_product_type14
parent_product_type25

Ví dụ phản hồi

200 Response

{
	"code": 0,
	"message": "Hoạt động thành công",
	"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
					}
				]
			}
		}
	]
}

Phản hồi

StatusMeaningDescriptionSchema
200OKOKInline

Cấu trúc phản hồi

To perform this operation, you must be authenticated by means of one of the following methods: bearerAuth

Schemas

productTypes

9

Loại gói, 9 gói giao thông dân cư động, 11 IP dân cư động, 14 IP trung tâm dữ liệu tĩnh, 25 IP dân cư tĩnh

Properties

NameTypeRequiredRestrictionsDescription
anonymousintegerfalsenoneLoại gói, 9 gói giao thông dân cư động, 11 IP dân cư động, 14 IP trung tâm dữ liệu tĩnh, 25 IP dân cư tĩnh

Enumerated Values

PropertyValue
anonymous9
anonymous11
anonymous14
anonymous25

apiKey

{}

Khóa xác thực

Properties

None

responseCode

200

Mã trạng thái, 200 thành công, 3 app_key không hợp lệ

Properties

NameTypeRequiredRestrictionsDescription
anonymousintegerfalsenoneMã trạng thái, 200 thành công, 3 app_key không hợp lệ

responseMsg

"thành công"

Thông điệp phản hồi

Properties

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenoneThông điệp phản hồi

SuccessResponse

{
	"code": 0,
	"message": "Hoạt động thành công",
	"data": {}
}

Properties

NameTypeRequiredRestrictionsDescription
codeintegerfalsenonenone
messagestringfalsenonenone
dataobjectfalsenonenone

ErrorResponse

{
	"code": 400,
	"message": "Lỗi tham số",
	"errors": {}
}

Properties

NameTypeRequiredRestrictionsDescription
codeintegerfalsenonenone
messagestringfalsenonenone
errorsobjectfalsenonenone

User

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

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalsenonenone
emailstring(email)falsenonenone
phonestringfalsenonenone
balancenumber(float)falsenonenone
statusintegerfalsenonenone
is_real_namebooleanfalsenonenone
created_atstring(date-time)falsenonenone

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

Properties

| Name | Type | Required | Restrictions | Description | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | id | integer | false | none | ID đơn hàng | | trade_no | string | false | none | Số đơn hàng nội bộ | | out_trade_no | string | false | none | Số đơn đặt hàng bên ngoài | | product_id | integer | false | none | Mã gói | | product_type | integer | false | none | Loại gói, xem liệt kê loại sản phẩm | | amount | integer | false | none | Số lượng mua | | unit_price | number(float) | false | none | đơn giá | | total_fee | number(float) | false | none | Tổng giá trị đơn hàng (không bao gồm chiết khấu và phí xử lý) | | goods_fee | number(float) | false | none | Giá sản phẩm (đã bao gồm chiết khấu, chưa bao gồm phí xử lý) | | pay_fee | number(float) | false | none | Số tiền thực tế thanh toán (bao gồm chiết khấu và phí xử lý) | | discount_fee | number(float) | false | none | Số tiền chiết khấu | | handling_fee | number(float) | false | none | phí xử lý | | refund_fee | number(float) | false | none | Số tiền hoàn lại | | pm_id | integer | false | none | ID phương thức thanh toán (từ /open/thanh toán/danh sách) | | pm_title | string | false | none | Tên phương thức thanh toán | | pm_logo | string | false | none | URL biểu trưng của phương thức thanh toán | | status | integer | false | none | Trạng thái đơn hàng
| giá trị | mô tả |
| --- | --- |
| 0 | Đang chờ thanh toán |
| 1 | Đã trả tiền |
| 2 | Hủy thời gian chờ |
| 3 | Đã hoàn tiền | | | title | string | false | none | Tiêu đề gói | | detail | string | false | none | Mô tả gói | | region_desc | string | false | none | Mô tả đặc điểm kỹ thuật khu vực | | pay_at | string(date-time) | false | none | thời gian thanh toán | | pay_timestamp | integer | false | none | Dấu thời gian thanh toán | | created_at | string(date-time) | false | none | thời gian sáng tạo | | pay_fee_status | integer | false | none | Trạng thái thanh toán dài và ngắn: 0 bình thường 1 thanh toán dài (thanh toán vượt mức) 2 thanh toán ngắn | | invoice | object | false | none | Thông tin hóa đơn (chỉ có giá trị đối với đơn hàng thanh toán trực tuyến) | | » name | string | false | none | tên đầy đủ | | » org_name | string | false | none | Tên công ty | | » first_name | string | false | none | none | | » last_name | string | false | none | none | | » phone | string | false | none | none | | » email | string(email) | false | none | none | | » role_type | integer | false | none | 1 người 2 công ty | | » vat_id | string | false | none | Mã số thuế | | » address_country | string | false | none | none | | » address_city | string | false | none | none | | » address_line1 | string | false | none | none | | » address_line2 | string | false | none | none | | » address_postal_code | string | false | none | 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"
			}
		}
	]
}

Đặt hàng kết quả kiểm tra trước

Properties

NameTypeRequiredRestrictionsDescription
product_idintegerfalsenoneMã gói
amountintegerfalsenoneSố lượng
discount_feenumber(float)falsenoneSố tiền chiết khấu
total_feenumber(float)falsenoneTổng số đơn đặt hàng
pay_feenumber(float)falsenoneSố tiền thực trả
product_typeintegerfalsenoneLoại gói
titlestringfalsenoneTiêu đề gói
detailstringfalsenoneMô tả gói
ip_result[object]falsenoneKết quả gia hạn IP hàng loạt (chỉ trả về khi gia hạn IP)
» ipstringfalsenonenone
» pricenumber(float)falsenonenone
» country_codestringfalsenonenone
» current_timestring(date-time)falsenonenone
» renewal_timestring(date-time)falsenonenone
» countryobjectfalsenonenone
»» name_zh_cnstringfalsenonenone
»» flagstringfalsenoneURL cờ vòng tròn
»» square_flagstringfalsenoneURL cờ vuông

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

Properties

| Name | Type | Required | Restrictions | Description | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | id | integer | false | none | Mã gói | | title | string | false | none | Tiêu đề chính của gói | | type | integer | false | none | Loại gói
| giá trị | mô tả |
| --- | --- |
| 3 | Nạp lại số dư |
| 9 | Gói giao thông dân cư năng động |
| 10 | Gói trọn gói năng động toàn cầu |
| 11 | Gói toàn cầu năng động tùy chỉnh V2 (bao gồm SKU) |
| 12 | Gói lưu lượng IDC dài hạn |
| 13 | Gói lưu lượng IP tĩnh dân dụng |
| 14 | Gói IP tĩnh trung tâm dữ liệu |
| 15 | Gói lưu lượng ISP dài hạn |
| 16 | Gói lưu lượng tĩnh |
| 17 | Gói IP dân dụng năng động |
| 19 | Gói Gia hạn IP tĩnh |
| 20 | Trình độ thay thế IP tĩnh |
| 21 | Gói IP tĩnh dân dụng |
| 24 | Gói bổ sung lưu lượng truy cập tĩnh |
| 25 | Gói cước IP tĩnh | | | show_type | integer | false | none | Loại hiển thị: 1 Thông thường 2 Khuyến nghị lớn 3 Không có sẵn để mua (cần tùy chỉnh) 4 Dùng thử | | status | integer | false | none | Tình trạng: 1 trên kệ, 0 ngoài kệ | | price | number(float) | false | none | giá nhân dân tệ | | usd_price | number(float) | false | none | giá đô la | | price_hkd | number(float) | false | none | Giá đô la Hồng Kông | | original_price | number(float) | false | none | Giá gốc (CNY) | | original_usd_price | number(float) | false | none | Giá gốc (USD) | | original_price_hkd | number(float) | false | none | Giá gốc (HKD) | | local_price | number(float) | false | none | Giá địa phương (phụ thuộc vào ưa thích_currency) | | local_original_price | number(float) | false | none | Giá gốc địa phương hóa (phụ thuộc vào ưa thích_currency) | | preferred_currency | string | false | none | Nên hiển thị loại tiền tệ như usd/cny/hkd | | support_currencies | string | false | none | Danh sách các loại tiền được hỗ trợ, phân tách bằng dấu phẩy, chẳng hạn như usd, cny | | flow_value | number(float) | false | none | Lưu lượng mặc định của gói dữ liệu (GB) | | flow_give | number(float) | false | none | Lưu lượng truy cập miễn phí (GB) | | balance_give | number(float) | false | none | Tiền thưởng nạp lại số dư | | balance_value | number(float) | false | none | Số tiền nạp | | time_validity | number(float) | false | none | Thời hạn hiệu lực mặc định của các gói tiêu chuẩn | | time_price | number(float) | false | none | Giá gói tiêu chuẩn trên mỗi IP | | time_days | integer | false | none | Số ngày có hiệu lực, chẳng hạn như 30/90/180/365 | | tip1 | string | false | none | Mô tả nhãn 1 | | tip2 | string | false | none | Mô tả nhãn 2 | | introduce | [string] | false | none | Danh sách văn bản giới thiệu | | region_list_id | integer | false | none | ID khu vực | | renew_product_list | string | false | none | Danh sách ID gói có thể gia hạn (được phân tách bằng dấu phẩy) | | parent_product_type | integer | false | none | Loại gói gốc (hợp lệ khi loại=19): 14 hoặc 25 | | total_count | integer | false | none | Tổng hàng tồn kho, 0 có nghĩa là không có giới hạn | | remain_count | integer | false | none | hàng còn lại | | extension_of_time_days | [integer] | false | none | Danh sách bội số thời lượng. Nếu nó trống hoặc chỉ chứa 1 thì có nghĩa là nó không được hỗ trợ. | | time_days_price_rate | number(float) | false | none | Hệ số giá thời hạn, giá × (1 + (nhân-1) × tỷ lệ) | | desc | object | false | none | Thông tin mô tả gói | | » subtitle | string | false | none | phụ đề | | » flow_value | number(float) | false | none | none | | » flow_give | number(float) | false | none | none | | » balance_give | number(float) | false | none | none | | » time_validity | number(float) | false | none | none | | » time_price | number(float) | false | none | none | | » tip1 | string | false | none | none | | » tip2 | string | false | none | none | | » introduce | [string] | false | none | none | | sku | object | false | none | Tham số đặc tả (trả về khi loại=11) | | » bandwidth_list | [object] | false | none | Danh sách đặc tả băng thông | | »» id | integer | false | none | none | | »» value | integer | false | none | Giá trị băng thông (Mbps) | | »» price | number(float) | false | none | none | | »» price_usd | number(float) | false | none | none | | »» price_hkd | number(float) | false | none | none | | » duration_list | [object] | false | none | Danh sách đặc tả thời lượng | | »» id | integer | false | none | none | | »» value | integer | false | none | Thời lượng (ngày) | | »» price | number(float) | false | none | none | | »» price_usd | number(float) | false | none | none | | »» price_hkd | number(float) | false | none | none | | » concurrency_list | [object] | false | none | Danh sách đặc tả đồng thời | | »» id | integer | false | none | none | | »» value | integer | false | none | Số lượng đồng thời | | »» price | number(float) | false | none | none | | »» price_usd | number(float) | false | none | none | | »» price_hkd | number(float) | false | none | none |

WhiteIp

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

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalsenonenone
ipstringfalsenonenone
remarkstringfalsenonenone
created_atstring(date-time)falsenonenone

WhitelistAccount

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

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalsenonenone
usernamestringfalsenonenone
limitintegerfalsenonenone
usedintegerfalsenonenone
statusintegerfalsenonenone

Coupon

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

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalsenonenone
namestringfalsenonenone
codestringfalsenonenone
discountnumber(float)falsenonenone
expire_timestring(date-time)falsenonenone

Article

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

Properties

NameTypeRequiredRestrictionsDescription
idintegerfalsenonenone
titlestringfalsenonenone
contentstringfalsenonenone
created_atstring(date-time)falsenonenone

Pagination

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

Properties

NameTypeRequiredRestrictionsDescription
totalintegerfalsenonenone
page_nointegerfalsenonenone
page_sizeintegerfalsenonenone
total_pagesintegerfalsenonenone