Запросить HLR
Создает новый HLR объект. BSG отправляет созданный HLR объект с каждым запросом.
Definition
PUT (POST) https://app.bsg.hk/rest/hlr/create
Обязательные параметры
The telephone number that you want to do a network query on. Required
A client reference. Required
Single HLR request
Обратите внимание! Тип контента должен быть установлен в “multipart/form-data”
The telephone number. Required
A client reference. Required
Tariff code of a price grid.
The URL on your call back server on which the Number Lookup response will be sent.
Example response
{ «error»:»0″,
«id»:»12123″,
«price»:»0.002″,
«currency»:»EUR»
}
Multiple HLR request
The telephone number. Required
A client reference. Required
Tariff code of a price grid
The URL on your call back server on which the Number Lookup response will be sent.
Example request
[ {
«msisdn»:»380972920000″,
«reference»:»extid1″,
«tariff»:»0″,
«callback_url»:»http://someurl.com/callback/?id=12345″
},
{
«msisdn»:»380972920000″,
«reference»:»extid2″,
«tariff»:»0″,
«callback_url»:»http://someurl.com/callback/?id=12346″
}
]
Example response
{ «result»:
[
{
«reference»:»extid1″,
«id»:»1″,
«error»:»0″,
«price»:»0.002″,
«currency»:»EUR»
},
{
«reference»:»extid2″,
«id»:»2″,
«error»:»0″,
«price»:»0.002″,
«currency»:»EUR»
}
],
«error»:»0″,
«totalprice»:»0.004″,
«currency»:»EUR»
}