Actions8
- Order Actions
- Service Actions
- Country Actions
- Account Actions
Account → Get Balance
AI-generatedSummary
Fetches the current VirtualSMS account balance by sending an authenticated GET request to /api/v1/customer/balance.
Inputs
None.
Output shape
One output item per input item, with json set to the API's balance response. If the API returned an array, each element becomes its own item.
The exact fields in the response aren't defined in the node source; they are passed through unchanged from VirtualSMS. Requires the virtualSmsApi credential; the base URL defaults to https://virtualsms.io unless the credential overrides it. With Continue On Fail enabled, a failed item outputs { error: message } paired to its input item. Otherwise the node throws.
Examples
Example 1: Check funds before buying a number, so the workflow stops if the balance is too low.
Resource: Account, Operation: Get Balance, followed by an IF node that compares the returned balance to a threshold.
Example 2: Run a scheduled balance check and send an alert when the account runs low.
Schedule Trigger -> VirtualSMS (Account / Get Balance) -> IF -> Slack or Email.