Developer Docs

Table of contents

Get tariff

The BSG API allows you to get detailed information about the tariffs for sending SMS and Viber messages, as well as phone Number Verifier requests.

All rates are specified in the currency that is set in the account settings on the BSG platform.

The method transmits information about all available account tariffs for the SMS / 2 Way SMS, Viber, and Number Verifier service.

To get tariffs, make a request to this URL:


Response parameters

idintegerTariff id.
namestringTariff name.
code integerTariff code in the tariff scale.
is_activebooleanIndicates whether the tariff is active. Possible values ​​are true or false.
is_defaultbooleanIndicates whether the rate is the default. Possible values ​​are true or false.

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

  "data": [
      "id": 3242,
      "name": "Global",
      "code": 0,
      "is_active": true,
      "is_default": false
      "id": 3241,
      "name": "Default from prod",
      "code": 9,
      "is_active": true,
      "is_default": true