Endpoint: PUT (POST) https://app.bsg.hk/rest/sms/create
Below is an example of functional code in JSON format:
Single message:
{ "destination":"phone",
"originator":"Sender",
"body":"message text",
"msisdn":"Number in international format",
"reference":"ext_id_16"
}
Response for a single message:
{ "result":{
"error":0,
"errorDescription":"No errors",
"reference":"ext_id_16",
"id":"213",
"price":0.23,
"currency":"EUR"
}
}
Multiple messages:
{
"destination":"phones",
"originator":"Sender",
"body":"message text",
"phones":[
{
"msisdn":"380972000000",
"reference":"ext_id_17"
},
{
"msisdn":"380972000001",
"reference":"ext_id_18"
}
]}
Response for multiple messages:
Task_id: Unique ID of the campaign in the BSG system
{ "task_id":"6",
"result":[
{
"error":0,
"errorDescription":"No errors",
"reference":"ext_id_17",
"id":"214",
"price":0.23,
"currency":"EUR"
},
{
"error":0,
"errorDescription":"No errors",
"reference":"ext_id_18",
"id":"215",
"price":0.23,
"currency":"EUR"
}
],
"total_price":0.46,
"currency":"EUR"
}
Comments
0 comments
Article is closed for comments.