TBS Apps API

<back to all web services

TransactionHistoryRequest

Requires Authentication
The following routes are available for this service:
GET,POST/TransactionHistoryGets the Transaction History for the currently authenticated user. Filtering avaiable.Gets Client Transaction History.
TransactionHistoryRequest Parameters:
NameParameterData TypeRequiredDescription
CriteriabodyTransactionSearchQueryParamsNoa list of criteria parameters for filtering
TransactionSearchQueryParams Parameters:
NameParameterData TypeRequiredDescription
StartDateformstringNo
EndDateformstringNo
IncludesBetPlacementsformboolNo
IncludesWinsformboolNo
IncludesDepositsformboolNo
IncludesWithdrawalsformboolNo
IncludesAllOtherformboolNo
AccountTypeformbyteNo
FilterformintNo
IsCSVReqformboolNo
SortformstringNo
PageNumberformintNo
RowsPerPageformintNo
TransactionHistoryResponse Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<TransactionHistoryItem>No
TotalCountformintNo
TransactionHistoryItem Parameters:
NameParameterData TypeRequiredDescription
TransactionTypeformstringNo
TransactionDate_DateformstringNo
TransactionDate_TimeformstringNo
TransactionDateUTCformDateTimeNo
EventDateUTCformDateTimeNo
EventDateformstringNo
EventNameformstringNo
DisplayEventNameformstringNo
TransactionChannelformstringNo
TaggedGroupsformstringNo
EventTypeIcoformstringNo
TaggedGroupIcosformstringNo
AmountformdecimalNo
BetDescriptionformstringNo
BalanceAfterformdecimalNo
TicketNumberformstringNo
BetIdformlongNo
BetClassformstringNo
CategoryNameformstringNo
MasterEventNameformstringNo
EventTypeIdformintNo
ChannelIdformintNo
ChannelformstringNo
ChannelIcoformstringNo
PKIDformlongNo
BetTypeCodeformstringNo
BetSubTypeCodeformstringNo
VenueformstringNo
RaceNumberformintNo
SettledStateIdformintNo
AdvertisedStartTimeformDateTimeNo
DisplayAdvertisedStartTimeformstringNo
StatusformstringNo
TransactionTypeIdformintNo
TransactionDateformDateTimeNo
DebitOrCreditformstringNo
AcNotesformstringNo
BankIdformint?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /TransactionHistory HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Criteria: 
	{
		StartDate: String,
		EndDate: String,
		IncludesBetPlacements: False,
		IncludesWins: False,
		IncludesDeposits: False,
		IncludesWithdrawals: False,
		IncludesAllOther: False,
		AccountType: 0,
		Filter: 0,
		IsCSVReq: False,
		Sort: String,
		PageNumber: 0,
		RowsPerPage: 0
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Items: 
	[
		{
			TransactionType: String,
			TransactionDate_Date: 01 Jan 0001,
			TransactionDate_Time: "11:00:00 AEDT",
			TransactionDateUTC: 0001-01-01,
			EventDateUTC: 0001-01-01,
			EventDate: "",
			EventName: String,
			DisplayEventName: String,
			TransactionChannel: String,
			TaggedGroups: String,
			EventTypeIco: icon-unknown,
			TaggedGroupIcos: String,
			Amount: 0,
			BetDescription: String,
			BalanceAfter: 0,
			TicketNumber: String,
			BetId: 0,
			BetClass: String,
			CategoryName: String,
			MasterEventName: String,
			EventTypeId: 0,
			ChannelId: 0,
			Channel: String,
			ChannelIco: icon-unknown,
			PKID: 0,
			BetTypeCode: String,
			BetSubTypeCode: String,
			Venue: String,
			RaceNumber: 0,
			SettledStateId: 0,
			AdvertisedStartTime: 0001-01-01,
			DisplayAdvertisedStartTime: "01/01/0001 11:00",
			Status: "",
			TransactionTypeId: 0,
			TransactionDate: 0001-01-01T11:00:00+11:00,
			DebitOrCredit: CR,
			AcNotes: String,
			BankId: 0
		}
	],
	TotalCount: 0
}