delivery SMS JSON

Description
Delivery status
Usage
All requests has to be sent to URLs below.
In case of success, HTTP response code 200 is returned and message body contains response. In case of error, HTTP response error code is returned.
Request
POST http://api.viamobile.sk/bsms/rest/v2/json/delivery
Request body
{ "username": "test", "password": "test", "deliveries": [ {"id": 123}, {"id": 124}, {"id": 125} ] }
Parameter Required Type Description
username
required string(32) user login
password
required string(32) user password
id
required int64 unique ID of sent MT SMS
Response
{ "response": { "status": 200, "delivery": [ { "id": 123, "received": "2014-02-01 22:59:00", "status": "delivered" }, { "id": 124, "received": "2014-02-01 22:59:00", "status": "undeliverable" }, { "id": 125, "received": "2014-02-01 22:59:00", "status": "waiting" } ] } }
Parameter Type Description
id
int64 unique ID of sent MT SMS
received timestamp delivery report timestamp
status string(50) delivered - message delivered, undeliverable - message not delivered, waiting - waiting for status, expired - message not delivered/expired
Error response
{ "response": { "status": 401, "code": 1000, "description": "Unauthorized" } }
Error codes
HTTP Code Code Description Info
401 1000 Unauthorized unknown username or password
500 unknown error unknown error - please contact Viamobile
Versions
Version Date Description
1.0 1.2.2014 initial version