Sorry, you need to enable JavaScript to visit this website.

You are here

SMS Sending Error.

2 posts / 0 new
Last post

Pal's picture
by Pal

SMS Sending Error.

Hi,

I got the following error when I was trying to seend SMS to a mobile (non Telstra)

{

"status": "400",
"code": "DELIVERY-OUT-OF-RANGE",
"message": "Refer to API docs at https://tdev.telstra.com"
}

The below jsaon was used (phone nr is replaced to X-es) Is there any API changes?

{
"to": "04xxxxxxxx",
"body": "Test SMS",
"from": "",
"validity": 1,
"scheduledDelivery": 0,
"notifyURL": "",
"replyRequest": false
}

curl -X POST --header "Content-Type: application/json" --header "Authorization: Bearer YYYYYYYYYYYYYYYYY" -d "{

\"to\": \"04XXXXXXX\",
\"body\": \"Test SMS\",
\"from\": \"\",
\"validity\": 0,
\"scheduledDelivery\": 0,
\"notifyURL\": \"\",
\"replyRequest\": false
}" https://tapi.telstra.com/v2/messages/sms

anonymous's picture
by anonymous

Hi @pai.dorogi, 
Hi @pai.dorogi,  Try setting scheduledDelivery as anything > 1  {     "to": "04xxxxxxxx",     "body": "test",     "from": "",     "validity": 1,     "scheduledDelivery": 1,     "notifyURL": "",     "replyRequest": false }
Log in or register to post comments