3.2. GetHistoryStatement
Retrieves betting statement history of the account. The information provided is similar to the History on the Asianodds web platform as shown below:
Request
Method | URL |
---|---|
GET | /AsianOddsService/GetHistoryStatement?from={mm/dd/yyyy}&to={mm/dd/yyyy}&bookies={listofbookies}&shouldHideTransactionData={true|false} |
Type | Params | Values |
---|---|---|
HEADER | AOToken | string |
HEADER | accept | application/json |
QUERY STRING | from | String in mm/dd/yyyy format |
QUERY STRING | to | String in mm/dd/yyyy format |
QUERY STRING | bookies | String list of bookies separated by comma |
QUERY STRING | shouldHideTransactionData | Boolean true or false |
Â
Request Values
Value | What is this for |
---|---|
AOToken | Token generated also by the Login method. This token identifies which user is requesting or executing the API Method. This has to be sent for all of the request except during execution of the Login method |
accept | application/json |
from | Start date the History Statement should include when reporting the statement |
to | End date the history statement should include when reporting the statement |
bookies | List of bookies. Bookies here are the Bookie ID retrieved from GetBookies method. Multiple bookies has to be separated by comma. |
shouldHideTransactionData | True or false,the transaction total is to be hidden or not. |
Sample Request URL
/AsianOddsService/GetHistoryStatement?from=04/19/2016&to=07/11/2016&bookies=IBC,SBO,SIN,PIN,ISN,GA&shouldHideTransactionData=false
Â
Response Values
Value | What is this for |
---|---|
Balance | Shows the running balance |
Commission | Shows the commission |
DateDay | Shows the date the bet was posted |
DateDayName | Name of the Day of the week |
Remark | Message for this statement |
Turnover | Stake |
WinLoss | Amount won or lost |
Code | Holds the status of the response. If it is 0, then it is successful. Negative values indicate failure |
Â
Sample JSON Response
Response Type | Response |
---|---|
Success | { |
Fail | { |