The two fields
Which account
The one the login bills to —app_credential.account_id, not the login name. Several logins on
one account all report the same balance, and all spend the same credit.
A positive balance can still refuse one message
Do not poll this per message
It is a database read, it tells you nothing about whether this message will be accepted, and it doubles your request volume. Poll it on a schedule for alerting, and let a402 be your per-message signal.
Decimal places
balance is displayed with smsg.money.scale decimal places — 0 to 4, default 4. India uses
2.
Storage never changes: amounts are integers of ten-thousandths. This is presentation only.
Rates on /secure/rate always keep four places regardless, because a rate
shown as 0.05 instead of 0.0450 is 11% out on every message.
Errors
Only the shared ones — see API errors.Related
Balance and quotes
Using this alongside
/secure/rate.Prepaid credit
The operator’s side: blocks, ledger and the money identity.