Prices & Balance¶
Account Balance¶
You can use the /me endpoint to check your account balance, and what currency your account is set to.
GET /rest/me
¶
Response JSON Object:
- credit (string) - The remaining credit.
- currency (string) - The currency of your credit.
- id (integer) - The ID of your account.
Status Codes:
- 200 OK - Returns an object with an array containing information on your account
- 400 Bad Request - i.e. invalid arguments, details in the JSON body
- 401 Unauthorized - i.e. invalid API key or signature
- 403 Forbidden - i.e. unauthorized IP address
- 500 Internal Server Error - If the request cannot be processed due to an exception. The exception details are returned in the JSON body
Response example
1 2 3 4 5 6 7 8 |
|
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
orxlsx
. Required
Status Codes:
- 200 OK - Returns an object with lists of prices
- 400 Bad Request - i.e. invalid arguments, details in the JSON body
- 401 Unauthorized - i.e. invalid API key or signature
- 403 Forbidden - i.e. unauthorized IP address
- 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 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 |
|