get()
Get account settings
Returns proxy gateway addresses, account usage totals, referral thresholds, and supported crypto currencies for the authenticated account.
Signature
client.settings.get(options: SettingsGetOptions = {}): Promise<SettingsGetResponse>Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
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.settings.get();Returns
SettingsResponseThe operation completed successfully.
typeSettingsResponse10fields
gatewaysSettingsGateway[]typeSettingsGateway9fields
idstringnamestringregionstringhostnamestringhostnamesstring[]port_httpnumberport_socks5numberport_autonumberport_haproxynumberspent_totalnumberorders_totalnumberorders_activenumberdata_availablenumberdata_spentnumberreferralsSettingsReferraltypeSettingsReferral4fields
reward_balance_percentagenumberreward_data_percentagenumberreward_min_balancenumberreward_min_datanumbercryptoSettingsCryptotypeSettingsCrypto1field
currenciesstring[]payment_methodsstring[]payment_gatewaysPaymentGateway[]typePaymentGateway6fields
codestringnamestringkindstringsupported_currenciesstring[]supported_crypto_currenciesstring[]requires_crypto_currencybooleanThrows
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: "server"ProxyRequest could not complete the 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.settings.getWithResponse(options): Promise<ApiResponse<SettingsGetResponse>>Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
client.settings.get(*, accept_language: str | Unset=UNSET) -> SettingsResponseawait async_client.settings.get(*, accept_language: str | Unset=UNSET) -> SettingsResponseParameters
| Name | Type | Requirement | Description |
|---|---|---|---|
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.settings.get()Async example
result = await async_client.settings.get()Returns
SettingsResponseThe operation completed successfully.
classSettingsResponse10fields
gatewayslist[SettingsGateway]classSettingsGateway9fields
idUUIDnamestrregionstrhostnamestrhostnameslist[str]port_httpintport_socks5intport_autointport_haproxyintspent_totalfloatorders_totalintorders_activeintdata_availableintdata_spentintreferralsSettingsReferralclassSettingsReferral4fields
reward_balance_percentagefloatreward_data_percentagefloatreward_min_balancefloatreward_min_datafloatcryptoSettingsCryptoclassSettingsCrypto1field
currencieslist[str]payment_methodslist[str]payment_gatewayslist[PaymentGateway]classPaymentGateway6fields
codestrnamestrkindstrsupported_currencieslist[str]supported_crypto_currencieslist[str]requires_crypto_currencyboolThrows
ApiErrorNormalized API, transport, and response processing failure.
ErrorKind.AUTHENTICATIONAuthentication credentials are missing, expired, or invalid.ErrorKind.PERMISSIONThe authenticated account cannot perform this operation.ErrorKind.SERVERProxyRequest could not complete the operation.ErrorKind.VALIDATIONThe request arguments or business rules are invalid.ErrorKind.NETWORKThe request could not reach ProxyRequest.ErrorKind.UNEXPECTEDThe response could not be decoded or did not match the SDK contract.
Advanced variants
client.settings.get_with_response(*, accept_language: str | Unset=UNSET) -> ApiResponse[SettingsResponse]Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
$client->settings()->get($acceptLanguage = null, string $contentType = self::contentTypes['get'][0])Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
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->settings()->get();Returns
SettingsResponseThe operation completed successfully.
classSettingsResponse10fields
gateways[SettingsGateway[]](SettingsGateway.md)classSettingsGateway9fields
idstringnamestringregionstringhostnamestringhostnamesarray<string>portHttpintportSocks5intportAutointportHaproxyintspentTotalfloatordersTotalintordersActiveintdataAvailableintdataSpentintreferralsSettingsReferralclassSettingsReferral4fields
rewardBalancePercentagefloatrewardDataPercentagefloatrewardMinBalancefloatrewardMinDatafloatcryptoSettingsCryptoclassSettingsCrypto1field
currenciesarray<string>paymentMethodsarray<string>paymentGateways[PaymentGateway[]](PaymentGateway.md)classPaymentGateway6fields
codestringnamestringkindstringsupportedCurrenciesarray<string>supportedCryptoCurrenciesarray<string>requiresCryptoCurrencyboolThrows
ApiExceptionNormalized API, transport, and response processing failure.
ErrorKind::AuthenticationAuthentication credentials are missing, expired, or invalid.ErrorKind::PermissionThe authenticated account cannot perform this operation.ErrorKind::ServerProxyRequest could not complete the operation.ErrorKind::ValidationThe request arguments or business rules are invalid.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->settings()->getWithResponse($acceptLanguage = null, string $contentType = self::contentTypes['get'][0]): \ProxyRequest\ApiResponseReturns an ApiResponse with decoded data and HTTP metadata.
$client->settings()->getWithHttpInfo($acceptLanguage = null, string $contentType = self::contentTypes['get'][0])Returns the OpenAPI Generator response tuple.
$client->settings()->getAsync($acceptLanguage = null, string $contentType = self::contentTypes['get'][0])Returns a Guzzle promise for the decoded result.
$client->settings()->getAsyncWithHttpInfo($acceptLanguage = null, string $contentType = self::contentTypes['get'][0])Returns a Guzzle promise for the response tuple.
$client->settings()->getRequest($acceptLanguage = null, string $contentType = self::contentTypes['get'][0])Builds the PSR-7 request without sending it.