single number
To get the customers rate for a destination we’re providing the rates module. It’s really easy to use. You just need to bring the dialled destination and the back end engine will split it into the prefix and the destination name. The request will respond with the name, the price, the prefix and the user currency for the given number.
GET http://login.42call.com/api/rest/v2/?rates&numbers=0177123456|030123456
Request Headers:
Connection: keep-alive x-date: 2014-02-20 17:51:47.000000 GMT+0000 x-authorization: demo:VpxszNu25G+Kca3oHni3mkfRQm8= Host: login.42call.com
Response Body:
{ "error": false, "codes": [ { "code": 200, "description": "OK" } ], "body": { "currency": "EUR", "rates": [ [ { "number": "0177123456", "destinationname": "Germany Mobile EPlus", "price": "0,10", "prefix": "0049177" }, { "number": "030123456", "destinationname": "Germany", "price": "0,04", "prefix": "0049" } ] ] } }
Test the endpint with Mashape.