Account
Get Account Balance
This API returns the current balance of the wallet of your Octa subscription. API calls are charged to this wallet. Use it to check the balance before running a batch of API calls. This API is not charged.
URL
GET https://cloud.octagst.com/api/octa/einvoice/getaccountbalance
Query Parameters
This API does not require any query parameters.
Request Headers
This API requires following HTTP headers:
Authorization
The Octa-Company header is not required.
Response
| Parameter | Data Type | Description |
|---|---|---|
| Success | Boolean | true in case of success, false if failure |
| Balance | Number | Current wallet balance in rupees |
| Errors | Error[] | List of errors when Success is false |
Error
| Parameter | Data Type | Description |
|---|---|---|
| Code | String | Error Code |
| Message | String | Error message |
Sample – Success
{
"Success": true,
"Balance": 4520.5
}
Sample – Failure
If the balance cannot be read, the response contains the failure status and error OCTA-203.
{
"Success": false,
"Errors": [
{
"Code": "OCTA-203",
"Message": "Application error. Contact support."
}
]
}
Authentication errors are returned as HTTP errors. Refer Error Handling.