Skip to content

Prices & Balance

Account Balance

You can use the /me endpoint to check your account balance, and what currency your account is set too.

GET /rest/me

Response JSON Object:

  • credit (float) - The remaining credit.
  • currency (string) - The currency of your credit.
  • id (integer) - The id of your account.

Status Codes:

  • 200 OK - Returns a dict with an array containing information on your account.
  • 400 Bad Request - Ie. invalid arguments, details in the JSON body
  • 401 Unauthorized - Ie. invalid API key or signature
  • 403 Forbidden - Ie. unauthorized ip address transferred to datastore.
  • 500 Internal Server Error - If the request cannot be processed due to an exception. The exception details is returned in the JSON body

Response example

1
2
3
4
5
6
7
8
HTTP/1.1 200 OK
Content-Type: application/json

{
    "credit": 1234.56,
    "currency": "DKK",
    "id": 1
}

Prices

You can use the prices endpoint to get our general price as csv, xlsx, or json. Select the desired output format by setting it on the fileformat field in the URL path.

GET /api/prices/list/sms/{fileformat:str}

Parameters:

  • fileformat (str) - One of json, csv, or xlsx. Required.

Status Codes:

Response example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
HTTP/1.1 200 OK
Content-Type: application/json

{
    "premium": [
        {
            "country": "AD",
            "country_name": "Andorra",
            "dkk": 0.33000,
            "eur": 0.04430,
            "prefix": 376
        },
        {
            "country": "AE",
            "country_name": "United Arab Emirates",
            "dkk": 0.19000,
            "eur": 0.02600,
            "prefix": 971
        }
    ],
    "standard": [
        {
            "country": "AD",
            "country_name": "Andorra",
            "dkk": 0.31000,
            "eur": 0.04160,
            "prefix": 376
        },
        {
            "country": "AE",
            "country_name": "United Arab Emirates",
            "dkk": 0.16000,
            "eur": 0.02100,
            "prefix": 971
        }
    ]
}