You can use the API to check your account balance.
curl "https://api-eu1.stannp.com/v1/accounts/balance" \
-u {API_KEY}:
{
"success": true,
"data": {
"balance": "214.42"
}
}You can use the API to top up your balance if you have a saved card and set one to default.
| Parameter | Details | Description |
|---|---|---|
| net | str required | The amount to top up. Eg: "10.00". Be aware tax may be added on after. |
curl "https://api-eu1.stannp.com/v1/accounts/topup" \
-u {API_KEY}: \
-d "net=10.00"
{
"success": true,
"data": {
"receipt_pdf": "https://www.stannp.com/invoice/12345-uhusdsfsi34545-fgfdfdb.pdf"
}
}