For the best experience turn off the battery saving mode.

Welcome to the
BSG Developer Docs.

Whether you're looking to use our REST APIs, receive
notifications with webhooks, or build an app for the
Intercom Messenger, you've come to the right place.

PRICE introduction

BSG provides an API to get the price information of your account.

Available http methods:

  • GET /rest/hlr/prices/{tariff}
  • GET /rest/sms/prices/{tariff}
  • GET /rest/viber/prices/{tariff}

The price object

{ „type“:“hlr“,
„country“:“UA“,
„country_name“:“Ukraine“,
„mcc“:“255″,
„price“:“0.0200000″,
„currency“:“EUR“
}

This object represents your price information.

ATTRIBUTES

Attribute
Type
Description
type
type: string

Type of the service. Possible values: sms, hlr, viber.

country
type: string

Country name.

country_name
type: string

Country code (ISO-3166-1).

mcc
type: int

Mobile Country Code.

mnc
type: int

Mobile Network Code

price
type: float

The price value.

currency
type: string

For all supported currencies, an ISO-4217 code is returned.

REQUIRED PARAMETERS

No required parameters.

OPTIONAL PARAMETERS

Parameter
Type
Description
tariff
type: int

Tariff code of a price grid.

RETURNS
Returns a price object if the request was successful. If the request failed, an error object will be returned.

EXAMPLE RESPONSE

{ „error“:0,
„errorDescription“:“No errors“,
„prices“:[
{
„type“:“viber“,
„country“:“UA“,
„country_name“:“Ukraine“,
„mcc“:“255″,
„price“:“0.2300000″,
„currency“:“EUR“
}
]
}

IN ERROR CASE

{ „error“:“6″,
„errorDescription“:“Invalid tariff code“
}

Rate this post