Credits
bal, err := client.Credits.Balance(ctx)
// bal.AccountID, bal.Balance (integer credit count)
history, err := client.Credits.History(ctx, sendafrica.PageQuery{Page: 1, PerPage: 25})
// []CreditTransaction{ID,Type,Amount,BalanceAfter,Description,CreatedAt}GET /v1/credits/balance
GET /v1/credits/historyWhen the balance runs out, sends fail with *sendafrica.APIError where IsInsufficientCredits() is true (HTTP 402) — see Error Handling. Top up with Payments.
Last updated on