Developer Docs

Table of contents

Get SMS price

Method for getting information about the price of one SMS message.

To get SMS price, make a request to this URL:

GET  http://one-api.bsg.world/api/prices/tariff

Request parameters:

ParameterRequiredTypeDefaultDescription
productYesstringNoService for which the tariff is being requested. Available values: sms
mccYesstringNoMobile country code (MCC), the price of the message to which you need to get
mncYesstringNoMNC of the operator, the price for which you need to get
tariff_codeNostringuser_default_tariffTariff scale number (integer from 0 to 9). 
If the parameter is not specified, the price will be specified according to the tariff that is assigned as default on the account

Response parameters:

ParameterTypeDescription
country_idstringCountry code according to ISO 3166-1 alpha-2 standard
brandstringOperator brand
namestringOperator name
pricestringPrice of the message to the direction specified in the input parameters
currencystringCurrency code in which the message price is specified. ISO 4217 format

If the request is successful, you will receive a response:

{
  "data": [
    {
      "country_id": "UA",
      "brand": "MTS",
      "name": "MTS Ukraine",
      "price": "0.010828",
      "currency": "UAH"
    }
  ]
}

We use cookies (and other similar technologies) to collect data to improve your experience on our site. By using our website, you’re agreeing to the collection of data as described in our Website Data Collection Policy.