gethttps://onlinesim.io/api/getTariffs.php

GET /api/getTariffs.php

Get information about tariffs for "SMS receiving" service

This request will provide you Onlinesim tariff list for single-service activations.

It is actually a representation of a service list ("Buy a number" section) located in the user dashboard.

Service list

Security

OAuth2Scopes: sms-scope
sms-scope
grants access to manage numbers for the SMS receiving service from Onlinesim

Parameters

query7
NameTypeDescription
locale_pricestring

Price charged for the service in the currency of your profile (USD by default)

countrystring

Country for which you want to get a tariff list for single-service activations

filter_countrystring

Filter for country

filter_servicestring

Filter for service

countstring

Filter for count

pagestring

Page of the tariff list (pagination navigation)

langstring

Response language: fr - French, de - German, ru - Russian, en - English, zh - Chinese. Please note that the translation applies only to string field values, such as service names or country names. Field names themselves, error messages, and standard values (for example, true/false for boolean fields) remain in English.

Enum:frderuenzhDefault:ruExample:en

Responses

200

OK

Content-Typeapplication/json
Schema
Responseobject
responseoneOf

1, if the request has been completed successfully, or an error message

Example:1
One Of
[0]integer
[1]string
countriesobject
country_codeobject
namestring

Country name

originalstring

Country name (required upon ordering a number)

codeinteger

International dialing code of the country

posinteger

Country position in the list in the user dashboard (by default)

otherboolean

"Other sites" service availability for this country (if false the service is unavailable)

newboolean

Recently added country (true/false)

enableboolean

Availability for order for this country (available/unavailable)

servicesobject
service_nameobject

Service name

idinteger

Service ID (service position by default)

countinteger

Amount of available numbers for this service

pricestring

Service price

servicestring

Full service name

slugstring

Short service name (required upon ordering a number)

favorite_countriesobject

List of favorite countries (country can be added to your favorites in the user dashboard by clicking pin icon in the country list)

favorite_servicesobject[]
itemsobject

List of favorite services (service can be added to your favorites in the user dashboard by clicking pin icon in the service list)

pageinteger

Pagination index (for navigation)

countryinteger

Selected country

filterstring

List of enabled filters

endboolean

Check if this page is the last one (auxiliary parameter for navigation)

favoritesobject

Favorites list

Code Samples

Generating examples...