Account Balance
Request a balance
Section titled “Request a balance”await mpesa.account.balance({ resultUrl: "https://example.com/mpesa/balance/result", queueTimeOutUrl: "https://example.com/mpesa/balance/timeout", remarks: "Daily balance check",});SDK behavior
Section titled “SDK behavior”- If you do not pass
remarks, the SDK sendsAccount balance query. identifierTypedefaults to4, which fits shortcode-based account balance requests.
Recommended use
Section titled “Recommended use”- Run this from an operational worker or back-office tool.
- Persist
ConversationIDandOriginatorConversationIDso you can match the later callback payload.