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

Method

URL

GET

/AsianOddsService/GetHistoryStatement?from={mm/dd/yyyy}&to={mm/dd/yyyy}&bookies={listofbookies}&shouldHideTransactionData={true|false}

Type

Params

Values

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

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

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

Response Type

Response

Success

{
"Code": 0,
"BetHistoryStatementItems": [
{
"Balance": "2 549.45",
"Commission": "0.00",
"DateDay": "4/27/2016",
"DateDayName": "Wednesday",
"Remark": "Beting Statement",
"TurnOver": "50.00",
"WinLoss": "-10.28"
},
{
"Balance": "2 544.45",
"Commission": "0.00",
"DateDay": "4/28/2016 ",
"DateDayName": "Thursday",
"Remark": "Beting Statement",
"TurnOver": "5.00",
"WinLoss": "- 5.00"
},
],
"TotalCommission": "0.00",
"TotalTurnover": "55.00",
"TotalWinLoss": "-15.28",
}
}

Fail

{
"Code": -1,
"Result": {
"BetHistoryStatementItems": null,
"TotalCommission": null,
"TotalTurnover": null,
"TotalWinLoss": null,
}
}

Related pages