To check your balance, you need to make the following HTTP request:
curl -X GET https://api.msndr.net/v1/email/balance \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer $API_TOKEN'
The GET method and the /email/balance link are used.
If the request is successful, you will receive the following response
{
"tariff" : {
"subscribers" : {
"total" : 1000,
"available" : 997
},
"credits" : 0,
"expires_at" : 1629273060
},
"balance" : 12965.96
}
The json response consists of the following attributes, described below:
Attribute |
Description |
tariff.subscribers.total |
total number of subscribers |
tariff.subscribers.available |
number of available subscribers |
credits |
Number of emails |
expires_at |
Tariff expiry time (timestamp) |
balance |
Balance sheet amount |