Traffic Management

Allocate Residential Proxies Traffic

post

Resellers can implement traffic resource allocation and management for their users through this API.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
langstringOptional

Language:en|cn

Default: enExample: en
Body
sub_uidintegerRequired

The id of the sub-user

Example: 123
quantityintegerRequired

Allocated traffic (MB)

Example: 1000
remarkstringOptional

Order Remark

Responses
chevron-right
200Success
application/json
post
/v2/residential/allocate

Deduct Residential Proxies Traffic

post

Manually reclaims sub-user traffic and refunds the value to your wallet based on the current unit price(Note: Expired traffic is processed automatically).

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
langstringOptional

Language:en|cn

Default: enExample: en
Body
sub_uidintegerRequired

The id of the sub-user

Example: 123
package_typestringRequired

Package Type:Residential

Example: Residential
deduction_amountnumberOptional

Deduction Amount(M),All resources are deducted when parameters are passed blank

Example: 25.5
Responses
chevron-right
200Success
application/json
post
/v2/residential/deduct
200Success

View Traffic Allocation History

post

Support resellers querying detailed traffic allocation history records through API.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
langstringOptional

Language:en|cn

Default: enExample: en
Body
sub_uidintegerRequired

The id of the sub-user

Example: 123
create_time_startstringOptional

Time allocation starts (timestamp)

create_time_endstringOptional

End of time allocation (timestamp)(timestamp)

pageintegerRequired

page number

Example: 1
limitintegerRequired

Number of entries returned per page

Example: 10
Responses
chevron-right
200Success
application/json
post
/v2/residential/distribution_history

View Refund Logs

post

Retrieves records of manual traffic reclamation and refunds.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
langstringOptional

Language:en|cn

Default: enExample: en
Body
sub_uidintegerRequired

The id of the sub-user

Example: 2680
package_typestringRequired

Package Type:Residential

pageintegerOptional

page

Example: 1
limitintegerOptional

page size

Example: 10
Responses
chevron-right
200Success
application/json
post
/v2/residential/deduct_history
200Success

Check Sub-user Remaining Traffic

post

Support resellers to check real-time remaining traffic information of their users.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
langstringOptional

Language:en|cn

Default: enExample: en
Body
sub_uidintegerRequired

The id of the sub-user

Example: 123
Responses
chevron-right
200Success
application/json
post
/v2/residential/sub_user_remaining

Last updated