Skip to main content

GAP Transfer Wallet — Reports API

These APIs are called by the Operator to GAP's server for reports in the Transfer Wallet model.

POST v1/wallet/get-my-account-statement

Account Statement: POST /api/v1/wallet/get-my-account-statement

Retrieve user transaction history.

  • Request URL: https://dev-api.dreamdelhi.com/api/v1/wallet/get-my-account-statement [POST]
  • Content-Type: application/json
  • Signature: Required

Request

ParameterTypeEnforceDescription
operatorIdStringYesOperator ID
userIdStringYesUser unique ID in operator system
transactionTypeStringYesBETS or FUNDS
startDateInt64YesUnix milliseconds
endDateInt64YesUnix format
pageInt64YesPage number
pageSizeInt64YesRecords per page

Response

ParameterTypeEnforceDescription
statusStringYesRS_OK or error code
errorDescriptionStringYesError description
transactionsArrayYesTransaction list
balanceFloat64YesCurrent balance
pageInt64YesPage number
pageSizeInt64YesRecords per page
totalRecordsInt64YesTotal records

Transaction Object

ParameterTypeDescription
transactionTimeInt64Unix milliseconds
transactionTypeStringTransaction type
referenceIdStringReference ID
amountFloat32Transaction amount

POST v1/wallet/get-bet-details

Bet Details: POST /api/v1/wallet/get-bet-details

Retrieve specific bet details.

  • Request URL: https://dev-api.dreamdelhi.com/api/v1/wallet/get-bet-details [POST]
  • Content-Type: application/json
  • Signature: Required

Request

ParameterTypeEnforceDescription
betIdStringYesBet ID to look up

Response

ParameterTypeEnforceDescription
statusStringYesRS_OK or error code
error_descriptionStringYesError description
bet_detailsObjectYesBet detail object

bet_details Object

ParameterTypeDescription
operator_idStringOperator ID
operator_nameStringOperator name
partner_idStringPartner ID
user_idStringUser ID
user_nameStringUser name
game_idStringGame ID
game_nameStringGame name
table_idStringTable ID
table_nameStringTable name
round_idStringRound ID
transaction_idStringTransaction ID
net_amountFloat32Net amount
bet_detailsObjectNested bet detail
user_ipStringUser IP address

Nested bet_details Object

ParameterTypeDescription
betTypeStringBet type
oddValueFloat64Odd value
stakeAmountFloat64Stake amount
market_idStringMarket ID
marketTypeStringMarket type
marketNameStringMarket name
runnerIdStringRunner ID
runnerNameStringRunner name
runnerTypeStringRunner type
request_timeInt64Request time
debit_amountFloat64Debit amount
rateFloat64Rate
currencyStringCurrency

POST v1/wallet/settlement-data

Settlement Data: POST /api/v1/wallet/settlement-data

Retrieve settlement information for a specified period. Parameter should be in JSON format.

  • Request URL: https://dev-api.dreamdelhi.com/api/v1/wallet/settlement-data [POST]
  • Content-Type: application/json
  • Signature: Required

Request

ParameterTypeEnforceDescription
tokenStringYesToken for a particular session
operatorIdStringYesoperatorId
operatorNameStringYesOperator name
userNameStringYesUser Name
userIdStringYesUser unique ID in operator system
startTimeInt64YesIn unixMilli format
endTimeInt64YesIn unixMilli format
pageInt64YesPage number
pageSizeInt64YesNo of records in a page

Example: Sample Object of the data

{
StartTime int64 `json:"startTime"`
EndTime int64 `json:"endTime"`
OperatorId string `json:"operatorId"`
UserId string `json:"userId"`
UserName string `json:"userName"`
OperatorName string `json:"operatorName"`
Token string `json:"token"`
Page int64 `json:"page"`
PageSize int64 `json:"pageSize"`
}

Response

ParameterTypeEnforceDescription
statusStringYesResponse Status message code
errorDescriptionStringYesError Description
settlementData[]settlementDataYesData according to request

settlementData Object

ParameterType
userIdString
userNameString
gameNameString
gameTypeString
transactionTimeInt64
transactionIdString
updateTimeInt64
currencyString
betTypeString
gameCodeString
roundIdString
betAmountString
winAmountFloat64
rollBackAmountFloat64
oddsFloat64
providerNameString
subProviderNameString

Example: Sample Object of the data

{
Balance float64 `json:"balance"`
Status string `json:"status"`
SettlementData []SettlementData `json:"setlementData"`
}

SettlementData:

{
UserId string `json:"userId"`
UserName string `json:"userName"`
GameName string `json:"gameName"`
GameType string `json:"gameType"`
TransactionTime int64 `json:"transactionTime"`
TransactionId string `json:"transactionId"`
UpdateTime int64 `json:"updateTime"`
Currency string `json:"currency"`
BetType string `json:"betType"`
GameCode string `json:"gameCode"`
RoundId string `json:"roundId"`
BetAmount float64 `json:"betAmount"`
WinAmount float64 `json:"winAmount"`
RollbackAmount float64 `json:"rollbackAmount"`
Odds string `json:"odds"`
ProviderName string `json:"providerName"`
SubProviderName string `json:"subProviderName"`
}

Example Request

curl --location 'https://dev-api.dreamdelhi.com/api/v1/wallet/settlement-data' \
--data '{
"token":"",
"operatorId":"HypexDemo",
"operatorName":"",
"userName":"",
"userId":"900001",
"startTime":1648497502068,
"endTime":1694630197000,
"page":1,
"pageSize":2
}'

Example Response (200 OK)

{
"status": "RS_OK",
"errorDescription": "",
"settlementData": [
{
"userId": "900001",
"userName": "",
"gameName": "7 Up Down",
"gameType": "",
"transactionTime": 1669611433000,
"transactionId": "c9da1e52-0277-45b1-81c9-7c684f785d0a",
"updateTime": 1669611433836,
"currency": "",
"betType": "",
"gameCode": "",
"roundId": "1669611423.0856981",
"betAmount": 100,
"winAmount": 0,
"rollBackAmount": 0,
"odds": 0
},
{
"userId": "900001",
"userName": "",
"gameName": "7 Up Down",
"gameType": "",
"transactionTime": 1669611439000,
"transactionId": "256098f6-caa7-499b-853f-69228d164172",
"updateTime": 1669611439844,
"currency": "",
"betType": "",
"gameCode": "",
"roundId": "1669611423.0856981",
"betAmount": 100,
"winAmount": 198,
"rollBackAmount": 0,
"odds": 0
}
]
}

POST v1/wallet/get-game-report

Game Report: POST /api/v1/wallet/get-game-report

Retrieve game report data. Parameter should be in JSON format.

  • Request URL: https://dev-api.dreamdelhi.com/api/v1/wallet/get-game-report [POST]
  • Content-Type: application/json
  • Signature: Required

Request

ParameterTypeEnforceDescription
operatorIdStringYesoperatorId
userIdStringNoUser unique ID in operator system
userNameInt64NoUser unique name in operator system
startTimeInt64YesIn unix millisecond format
endTimeStringYesIn unix millisecond format
gameIdStringNoUnique gameId
pageInt64YesPage Number
pageSizeInt64YesNo. of records in a page

Example: Sample Object of the data

{
StartTime int64 `json:"startTime"`
EndTime int64 `json:"endTime"`
OperatorId string `json:"operatorId"`
UserId string `json:"userId"`
UserName string `json:"userName"`
GameId string `json:"gameId"`
Page int64 `json:"page"`
PageSize int64 `json:"pageSize"`
}

Response

ParameterTypeEnforceDescription
statusStringYesResponse Status message code
errorDescriptionStringYesError description
gameReport[]GameReportAggregationYesGame reports data
pageInt64YesPage
pageSizeInt64YesPage size
totalRecordsInt64YesTotal no. of records

GameReportAggregation Object

ParameterType
OperatorNameString
gameNameString
partnerIdString
profitLossFloat64
providerNameString
subProviderNameString

Example: Sample Object of the data

{
Status string `json:"status"`
ErrorDescription string `json:"errorDescription"`
Page int64 `json:"page"`
PageSize int64 `json:"pageSize"`
TotalRecords int `json:"totalRecords"`
GameReport []GameReportAggregation `json:"gameReport"`
}

GameReportAggregation:

{
OperatorName string `json:"operatorName"`
GameName string `json:"gameName"`
PartnerId string `json:"partnerId"`
ProfitLoss float64 `json:"profitLoss"`
ProviderName string `json:"providerName"`
SubProviderName string `json:"subProviderName"`
}

Example Request

curl --location 'https://dev-api.dreamdelhi.com/api/v1/wallet/get-game-report' \
--data '{
"startTime": 1628497502068,
"endTime": 1698499439024,
"operatorId": "HypexDemo",
"userId": "testtw1",
"gameId":"901003",
"page": 1,
"pageSize": 1
}'

Example Response (200 OK)

{
"status": "RS_OK",
"errorDescription": "",
"totalRecords": 1,
"page": 1,
"pageSize": 1,
"gameReport": [
{
"OperatorName": "Hypex Demo Transfer Wallet",
"gameName": "VR Teen Patti",
"currency": "PTS",
"profitLoss": 100
}
]
}