General

General operations (profile, orders, reference data)

Create and pay for an order

post

Purchase by product name, location, and cycle. For Datacenter/ISP, location is required. For Standart Residential Proxy, location is not required.

授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
请求体
响应
post
/user/api/orders/purchase

Calculate order price

get

Calculates price by product name, cycle name and quantity. Uses the same validation rules as purchase (allowed billing cycles, promo rules).

授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
查询参数
productstring必填Example: Datacenter Proxy
locationstring · 可为 null可选Example: DE
cyclestring · 可为 null可选Example: monthly
quantityinteger · 可为 null可选Example: 10
promo_codestring · 可为 null可选Example: SAVE10
响应
get
/user/api/orders/calculate

Change the order billing cycle

post

Changes the billing cycle by cycle name. Only for Datacenter & ISP proxies. If the promo code is not available for the selected cycle, it will be automatically reset.

授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
路径参数
order_idinteger必填
请求体
cyclestring必填Example: monthly
响应
post
/user/api/orders/change-billing-cycle/{order_id}

Change order auto-renewal

post

Enable/disable auto-renewal. Only for Datacenter & ISP proxies.

授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
路径参数
order_idinteger必填
查询参数
auto_renewalboolean必填Example: true
响应
post
/user/api/orders/edit-auto-renewal/{order_id}

Get products and their cycles

get

Returns API products with the names of available cycles.

授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
响应
get
/user/api/proxies/products
200

Product list

Get the available number of proxies

get

Returns the total available quantity for all products.

授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
响应
get
/user/api/proxies/available-count
200

Success

User information

get
授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
响应
get
/user/api/me
200

Profile data

Order list

get
授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
查询参数
statusstring必填

active | on-hold | cancelled | all

offsetinteger可选

Result offset (default 0)

Example: 0
limitinteger · 最小值: 1 · 最大值: 100可选

Page size (1..100, default 20)

Example: 20
响应
get
/user/api/orders
200

Order list

Get order information

get
授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
路径参数
idinteger必填
响应
get
/user/api/orders/{id}
200

Order information

Renew order

post

Renewal is available only when order status is on-hold.

授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
路径参数
idinteger必填
响应
post
/user/api/orders/{id}/renew

Change order tag

post
授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
路径参数
idinteger必填
请求体
tagstring必填Example: none
响应
post
/user/api/orders/{id}/tag
200

Success

最后更新于

这有帮助吗?