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

You are here

provision error

3 posts / 0 new
Last post

Hilary's picture
by Hilary

provision error
I wanna to try the new api to migrate our app. When I provision a number , it keeps send me response {   "description": "no destination MSISDNs specified" } Any Idea ? Here are the request from example  #!/bin/bash # curl -X POST \   https://tapi.telstra.com/v2/messages/provisioning/subscriptions \   -H 'Authorization: Bearer 1pUtSJeDqKP6riEkzwV3FlSKDxwu' \   -H 'Cache-Control: no-cache' \   -H 'Content-Type: application/json' \   -d '{   "activeDays":30,   "notifyURL":"https://xxx.com/sms/",   "callbackData": { } }'

DeveloperSteve's picture
by DeveloperSteve

Hi it_2, 

Hi it_2, 

Ive just tested these calls from our docs using a public trial account (and all working), can you please try again with the following 

CONSUMER_KEY="your consumer key"
CONSUMER_SECRET="your consumer secret"
curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' \
  -d "grant_type=client_credentials&client_id=$CONSUMER_KEY&client_secret=$CONSUMER_SECRET&scope=NSMS" \
  'https://tapi.telstra.com/v2/oauth/token'

Then using the returned access_token

curl -X POST \
  https://tapi.telstra.com/v2/messages/provisioning/subscriptions \
  -H 'authorization: Bearer $ACCESS_TOKEN' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -d '{
  "activeDays":30,
  "notifyURL":"http://example.com/callback",
  "callbackData":
  {
    "anything":"some data"
  }
}'

The response back should be something like 

{
  "destinationAddress": "+61472880391"
}

 

DeveloperSteve's picture
by DeveloperSteve

Hi All, 

Hi All, 

Can you please try again, we identified an issue last night in one of the servers that should now be resolved. 

Log in or register to post comments