list()
List active orders
Returns active package orders owned by the authenticated account. Superusers can inspect other accounts, including inactive orders; filters never expand a normal caller's ownership scope. Repeated purchases of one package reuse the same user/package order. Read data_remaining and ledgers for usable purchased data, not data minus data_spent. To inspect a managed customer, use /users/{id}/orders.
Signature
client.orders.list(options: OrdersListOptions = {}): Promise<OrdersListResponse>Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
limit | number | Optional | Number of results to return per page. |
offset | number | Optional | The initial index from which to return the results. |
ordering | string | Optional | Which field to use when ordering the results. |
packageAlias | string | Optional | — |
packageId | string | Optional | — |
packageType | string | Optional | * `static` - Static * `residential` - Residential |
search | string | Optional | Case-insensitive partial search across Order fields: `id`, `alias`, `internal_id`, and `proxy_password`. Separate multiple terms with spaces or commas; every term must match at least one listed field. |
userEmail | string | Optional | — |
userId | string | Optional | — |
acceptLanguage | string | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
const result = await client.orders.list();Returns
PaginatedOrderListThe operation completed successfully.
typePaginatedOrderList4fields
countnumbernextstringpreviousstringresultsOrder[]typeOrder17fields
idstringis_auto_renewalbooleanauto_renewal_percentagenumberauto_renewal_datanumberpackagePackageShorttypePackageShort5fields
idstringnamestringaliasstringis_unlimited_databooleantargeting_optionsTargetingOptionstypeTargetingOptions25fields
packagestringsplit_charstringvalue_charstringcontinentstringcountrystringregionstringcitystringasnstringispstringusernamestringpoolstringlocationstringlocation_formatstringsessionstringsession_mode_tagstringsession_ttlstringsession_ttl_formatnumberosstringos_combinedbooleanos_split_charstringos_linuxstringos_windowsstringos_iosstringos_macosstringos_androidstringproxy_passwordstringproxy_password_resetstringpoolsstring[]datanumberdata_remainingnumberdata_spentnumberledgersDataLedger[]typeDataLedger6fields
A purchased data bucket, not a complete transaction history. Finite purchases with an expiration have separate buckets. Compatible non-expiring top-ups and unlimited packages may reuse an existing bucket.
idstringdatanumberdata_remainingnumberexpiresstringupdatedstringcreatedstringlatest_data_top_upnumberlatest_data_top_up_datestringdata_updatedstringupdatedstringcreatedstringThrows
ApiErrorNormalized API, transport, and response processing failure.
kind: "validation"The request arguments or business rules are invalid.kind: "authentication"Authentication credentials are missing, expired, or invalid.kind: "permission"The authenticated account cannot perform this operation.kind: "network"The request could not reach ProxyRequest.kind: "unexpected"The response could not be decoded or did not match the SDK contract.
Advanced variants
client.orders.listWithResponse(options): Promise<ApiResponse<OrdersListResponse>>Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
client.orders.list(*, limit: int | Unset=UNSET, offset: int | Unset=UNSET, ordering: str | Unset=UNSET, package_alias: str | Unset=UNSET, package_id: str | Unset=UNSET, package_type: OrdersListPackageType | Unset=UNSET, search: str | Unset=UNSET, user_email: str | Unset=UNSET, user_id: UUID | Unset=UNSET, accept_language: str | Unset=UNSET) -> PaginatedOrderListawait async_client.orders.list(*, limit: int | Unset=UNSET, offset: int | Unset=UNSET, ordering: str | Unset=UNSET, package_alias: str | Unset=UNSET, package_id: str | Unset=UNSET, package_type: OrdersListPackageType | Unset=UNSET, search: str | Unset=UNSET, user_email: str | Unset=UNSET, user_id: UUID | Unset=UNSET, accept_language: str | Unset=UNSET) -> PaginatedOrderListParameters
| Name | Type | Requirement | Description |
|---|---|---|---|
limit | int | Optional | Number of results to return per page. |
offset | int | Optional | The initial index from which to return the results. |
ordering | str | Optional | Which field to use when ordering the results. |
package_alias | str | Optional | — |
package_id | str | Optional | — |
package_type | str | Optional | * `static` - Static * `residential` - Residential |
search | str | Optional | Case-insensitive partial search across Order fields: `id`, `alias`, `internal_id`, and `proxy_password`. Separate multiple terms with spaces or commas; every term must match at least one listed field. |
user_email | str | Optional | — |
user_id | str | Optional | — |
accept_language | str | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
result = client.orders.list()Async example
result = await async_client.orders.list()Returns
PaginatedOrderListThe operation completed successfully.
classPaginatedOrderList4fields
countintresultslist[Order]classOrder17fields
is_auto_renewalboolpackagePackageShortclassPackageShort5fields
namestraliasstrtargeting_optionsTargetingOptionsclassTargetingOptions25fields
packagestrsplit_charstrvalue_charstrcontinentstrcountrystrregionstrcitystrasnstrispstrusernamestrpoolstrlocationstrlocation_formatstrsessionstrsession_mode_tagstrsession_ttlstrsession_ttl_formatintosstros_combinedboolos_split_charstros_linuxstros_windowsstros_iosstros_macosstros_androidstridstris_unlimited_databooldata_remainingintledgerslist[DataLedger]classDataLedger6fields
A purchased data bucket, not a complete transaction history. Finite purchases with an expiration have separate buckets. Compatible non-expiring top-ups and unlimited packages may reuse an existing bucket.
idstrdataintdata_remainingintexpiresdatetime.datetime | Noneupdateddatetime.datetimecreateddatetime.datetimedata_updateddatetime.datetimeupdateddatetime.datetimecreateddatetime.datetimeidstrauto_renewal_percentageintauto_renewal_dataintproxy_passwordstrproxy_password_resetdatetime.datetime | Nonepoolslist[str]dataintdata_spentintlatest_data_top_upintlatest_data_top_up_datedatetime.datetime | Nonenext_None | strpreviousNone | strThrows
ApiErrorNormalized API, transport, and response processing failure.
ErrorKind.VALIDATIONThe request arguments or business rules are invalid.ErrorKind.AUTHENTICATIONAuthentication credentials are missing, expired, or invalid.ErrorKind.PERMISSIONThe authenticated account cannot perform this operation.ErrorKind.NETWORKThe request could not reach ProxyRequest.ErrorKind.UNEXPECTEDThe response could not be decoded or did not match the SDK contract.
Advanced variants
client.orders.list_with_response(*, limit: int | Unset=UNSET, offset: int | Unset=UNSET, ordering: str | Unset=UNSET, package_alias: str | Unset=UNSET, package_id: str | Unset=UNSET, package_type: OrdersListPackageType | Unset=UNSET, search: str | Unset=UNSET, user_email: str | Unset=UNSET, user_id: UUID | Unset=UNSET, accept_language: str | Unset=UNSET) -> ApiResponse[PaginatedOrderList]Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
$client->orders()->list($limit = null, $offset = null, $ordering = null, $packageAlias = null, $packageId = null, $packageType = null, $search = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
limit | int | Optional | Number of results to return per page. |
offset | int | Optional | The initial index from which to return the results. |
ordering | string | Optional | Which field to use when ordering the results. |
packageAlias | string | Optional | — |
packageId | string | Optional | — |
packageType | string | Optional | * `static` - Static * `residential` - Residential |
search | string | Optional | Case-insensitive partial search across Order fields: `id`, `alias`, `internal_id`, and `proxy_password`. Separate multiple terms with spaces or commas; every term must match at least one listed field. |
userEmail | string | Optional | — |
userId | string | Optional | — |
acceptLanguage | string | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
$result = $client->orders()->list();Returns
PaginatedOrderListThe operation completed successfully.
classPaginatedOrderList4fields
countintnextstringpreviousstringresults[Order[]](Order.md)classOrder17fields
idstringisAutoRenewalboolautoRenewalPercentageintautoRenewalDataintpackagePackageShortclassPackageShort5fields
idstringnamestringaliasstringisUnlimitedDatabooltargetingOptionsTargetingOptionsclassTargetingOptions25fields
packagestringsplitCharstringvalueCharstringcontinentstringcountrystringregionstringcitystringasnstringispstringusernamestringpoolstringlocationstringlocationFormatstringsessionstringsessionModeTagstringsessionTtlstringsessionTtlFormatintosstringosCombinedboolosSplitCharstringosLinuxstringosWindowsstringosIosstringosMacosstringosAndroidstringproxyPasswordstringproxyPasswordResetDateTimepoolsarray<string>dataintdataRemainingintdataSpentintledgers[DataLedger[]](DataLedger.md)classDataLedger6fields
A purchased data bucket, not a complete transaction history. Finite purchases with an expiration have separate buckets. Compatible non-expiring top-ups and unlimited packages may reuse an existing bucket.
idstringdataintdataRemainingintexpiresDateTimeupdatedDateTimecreatedDateTimelatestDataTopUpintlatestDataTopUpDateDateTimedataUpdatedDateTimeupdatedDateTimecreatedDateTimeThrows
ApiExceptionNormalized API, transport, and response processing failure.
ErrorKind::ValidationThe request arguments or business rules are invalid.ErrorKind::AuthenticationAuthentication credentials are missing, expired, or invalid.ErrorKind::PermissionThe authenticated account cannot perform this operation.ErrorKind::NetworkThe request could not reach ProxyRequest.ErrorKind::UnexpectedThe response could not be decoded or did not match the SDK contract.
InvalidArgumentExceptionA required argument is missing or violates a local SDK constraint.
local validationThe request was rejected before it was sent.
Advanced variants
$client->orders()->listWithResponse($limit = null, $offset = null, $ordering = null, $packageAlias = null, $packageId = null, $packageType = null, $search = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0]): \ProxyRequest\ApiResponseReturns an ApiResponse with decoded data and HTTP metadata.
$client->orders()->listWithHttpInfo($limit = null, $offset = null, $ordering = null, $packageAlias = null, $packageId = null, $packageType = null, $search = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns the OpenAPI Generator response tuple.
$client->orders()->listAsync($limit = null, $offset = null, $ordering = null, $packageAlias = null, $packageId = null, $packageType = null, $search = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns a Guzzle promise for the decoded result.
$client->orders()->listAsyncWithHttpInfo($limit = null, $offset = null, $ordering = null, $packageAlias = null, $packageId = null, $packageType = null, $search = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns a Guzzle promise for the response tuple.
$client->orders()->listRequest($limit = null, $offset = null, $ordering = null, $packageAlias = null, $packageId = null, $packageType = null, $search = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Builds the PSR-7 request without sending it.