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

ParameterData TypeDescription
SuccessBooleantrue in case of success, false if failure
BalanceNumberCurrent wallet balance in rupees
ErrorsError[]List of errors when Success is false

Error

ParameterData TypeDescription
CodeStringError Code
MessageStringError 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.