Skip to content

User Bet History

The User Bet History endpoint allows you to retrieve the betting history for a specific player or all players within a date range.

ParameterTypeRequiredDescription
pagenumberPage number (Min: 1)
typestringType of history (ALL, END, ING)
user_idstringYour player’s unique identifier
start_datestringSearch start date
end_datestringSearch end date
last_indexnumberLast index from previous request
bet_indexnumberSpecific bet index to search

Successful Response

interface BetHistoryResponse {
code: number
data: {
total_page: number
req_page: number
list: {
game_no: string
table_no: string
user_id: string
bet_index: string
start_date: string
bet_date: string
end_date: string
bet_type: string
bet_amount: number
winlose: number
stat: string
balance_before: number
balance_after: number
currency: string
game_type: string
result: string
result_detail: string
}[],
}
}

fetch('https://API-PLATFORM/bet-history', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Api-Id': 'YOUR_SECRET_TOKEN',
'Api-Key': 'YOUR_SECRET_TOKEN'
},
body: JSON.stringify({
type: 'ALL',
page: 1,
user_id: '',
start_date: '',
end_date: '',
last_index: 1,
bet_index: 1
})
})

📌
For a comprehensive guide on how this works, please refer to the Common and Transfer Introduction or Seamless Introduction sections within the Introduction page.