Retrieves the balance on a general account.
| Name | Description | Default |
|---|---|---|
id
|
Unique general account ID. | |
date
|
Date to retrieve the balance for. Omit to get the current balance. |
|
forecast
|
Whether to include transactions currently pending processing. |
False
|
Content Type:
application/xml
or
application/json
Account balance or an error message.
| XML JSON |
|---|
<Response> <Result>decimal</Result> <!--Account balance--> <Message>string</Message> <!--Error message--> </Response> |
{
"Result": "decimal", // Account balance
"Message": "string" // Error message
}
|
| Code | Condition |
|---|---|
| 200 OK | The operation completed successfully. |
| 400 Bad Request | Invalid account or file ID. |
| 401 Unauthorized | Access token is invalid, expired or not specified. |
| 403 Forbidden | User does not have permission to view the balance. |
| 404 Not Found | Account not found. |
| 406 Not Acceptable | Content type specified in the Accept header isn't supported. |
| 500 Internal Server Error | An internal error occurred. |