Rates

Get current rates

Result example:

{
    "rates": [
        {
            "prefix": "353",
            "destination": "Ireland",
            "price": 0.01027
        },
        {
            "prefix": "3531",
            "destination": "Ireland - Dublin",
            "price": 0.01002
        }
    ]
}

Search current rates by prefix

Download current rates

Example:

    curl -o CommPeak-Rates.xls \
      -H 'Accept: application/vnd.commpeak.com; version=1,CONTENT_TYPE' \
      -H 'Authorization: Token token="API_TOKEN"' \
      https://api.commpeak.com/rates/current/download

Need to set CONTENT_TYPE to text/csv for CSV format or to application/vnd.ms-excel for XLS format