Developer Docs
Table of contents

Getting the table of HLR requests prices

GET /hlr/prices/{tariff}

Endpoint URL: https://api.affiliate-sms.com/hlr/prices/{tariff}

The optional parameter tariff indicates the number of the rate scale. By default (if absent) it is assumed to be 9 (Best quality tariff).

Example of the correct response:

{"error":"0",
"prices":
[
{"type":"hlr",
"country":"AE",
"country_name":"United Arab Emirates",
"mcc":"424","
price":"0.002",
"currency":"EUR"}, 
[
{"type":"hlr", 
"country":"AF",
"country_name":"Afghanistan",
"mcc":"412",
"price":"0.002",
"currency":"EUR"
}
]
}

The response will list all countries for which the HLR requests are available, together with the prices.

In case if the request contains an error:

{
"error":"6","errorDescription":"Invalid tariff code"
}