Developer Docs

Table of contents

Viewing an SMS status

GET /sms/{id}

 or

GET /sms/{reference}

or 

GET /sms/{task_id}

By message ID

GET /sms/{id}

Where {id} is a unique random ID that is created on the BSG platform and is returned upon creation of the object. Integer value only.

Example response:

{
"error":0,
"errorDescription":"No errors",
"id":"211″,
"msisdn":"85228927936″,
"reference":"ext_id_19″,
"time_in":"2017-01-17 09:11:41″,
"time_sent":"2017-01-17 09:11:41″,
"time_dr":"2017-01-17 09:11:41″,
"status":"delivered",
"price":0.23,
"currency":"EUR"
}

According to the reference message

GET /sms/{reference}

Where {reference} is a client reference

By task ID

GET /sms/{task_id}

Where {task_id} is a unique random ID created for multiple requests. Required.

Example response:

{
"originator":"alpha_name",
"body":"message text",
"validity":72,
"totalprice":0.23,
"currency":"EUR",
"sent":1,
"delivered":1,
"expired":0,
"undeliverable":0,
"unknown":0
}

Example error response for task info:

{
"error": 30,
"errorDescription":"Task not found"
}

We use cookies (and other similar technologies) to collect data to improve your experience on our site. By using our website, you’re agreeing to the collection of data as described in our Website Data Collection Policy.