GET api/v1/account/balance
Gets your account balance information
Requires authorization!
Response Codes
200
– Successfully got info of your balance401
– User is not Authorized
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Gets your account balance information
List of active MyAccountBalance set to Payload property
Name | Description | Type | Additional information |
---|---|---|---|
Payload |
The payload of the response. Type depends on the API request. |
MyAccountBalance |
None. |
Success |
Indicates if the request was successfull or not.
|
boolean |
Required |
Errors |
Error(s) accociated with the API request. |
Collection of ApiError |
None. |
Response Formats
application/json, text/json
Sample:
{ "Payload": { "Balance": 1.0, "Reserved": 2.0, "BidRequestAmount": 3, "TotalAvailable": -4.0, "GoGrowAccounts": [ { "Name": "sample string-1", "NetDeposits": 0.0, "NetProfit": 5.0, "TotalSaved": 5.0 }, { "Name": "sample string-1", "NetDeposits": 0.0, "NetProfit": 5.0, "TotalSaved": 5.0 } ] }, "Success": true, "Errors": [ { "Code": 1, "Message": "sample string-2", "Details": "sample string-3" }, { "Code": 1, "Message": "sample string-2", "Details": "sample string-3" } ] }
application/xml, text/xml
Sample:
<ApiResultMyAccountBalance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sobralaen.Api.Models"> <Errors> <ApiError> <Code>1</Code> <Details>sample string-3</Details> <Message>sample string-2</Message> </ApiError> <ApiError> <Code>1</Code> <Details>sample string-3</Details> <Message>sample string-2</Message> </ApiError> </Errors> <Success>true</Success> <Payload> <Balance>1</Balance> <BidRequestAmount>3</BidRequestAmount> <GoGrowAccounts> <MyAccountBalance.GoGrowAccount> <Name>sample string-1</Name> </MyAccountBalance.GoGrowAccount> <MyAccountBalance.GoGrowAccount> <Name>sample string-1</Name> </MyAccountBalance.GoGrowAccount> </GoGrowAccounts> <Reserved>2</Reserved> </Payload> </ApiResultMyAccountBalance>