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
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| operatorId | String | Yes | Operator ID |
| userId | String | Yes | User unique ID in operator system |
| transactionType | String | Yes | BETS or FUNDS |
| startDate | Int64 | Yes | Unix milliseconds |
| endDate | Int64 | Yes | Unix format |
| page | Int64 | Yes | Page number |
| pageSize | Int64 | Yes | Records per page |
Response
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| status | String | Yes | RS_OK or error code |
| errorDescription | String | Yes | Error description |
| transactions | Array | Yes | Transaction list |
| balance | Float64 | Yes | Current balance |
| page | Int64 | Yes | Page number |
| pageSize | Int64 | Yes | Records per page |
| totalRecords | Int64 | Yes | Total records |
Transaction Object
| Parameter | Type | Description |
|---|---|---|
| transactionTime | Int64 | Unix milliseconds |
| transactionType | String | Transaction type |
| referenceId | String | Reference ID |
| amount | Float32 | Transaction 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
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| betId | String | Yes | Bet ID to look up |
Response
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| status | String | Yes | RS_OK or error code |
| error_description | String | Yes | Error description |
| bet_details | Object | Yes | Bet detail object |
bet_details Object
| Parameter | Type | Description |
|---|---|---|
| operator_id | String | Operator ID |
| operator_name | String | Operator name |
| partner_id | String | Partner ID |
| user_id | String | User ID |
| user_name | String | User name |
| game_id | String | Game ID |
| game_name | String | Game name |
| table_id | String | Table ID |
| table_name | String | Table name |
| round_id | String | Round ID |
| transaction_id | String | Transaction ID |
| net_amount | Float32 | Net amount |
| bet_details | Object | Nested bet detail |
| user_ip | String | User IP address |
Nested bet_details Object
| Parameter | Type | Description |
|---|---|---|
| betType | String | Bet type |
| oddValue | Float64 | Odd value |
| stakeAmount | Float64 | Stake amount |
| market_id | String | Market ID |
| marketType | String | Market type |
| marketName | String | Market name |
| runnerId | String | Runner ID |
| runnerName | String | Runner name |
| runnerType | String | Runner type |
| request_time | Int64 | Request time |
| debit_amount | Float64 | Debit amount |
| rate | Float64 | Rate |
| currency | String | Currency |
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
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| token | String | Yes | Token for a particular session |
| operatorId | String | Yes | operatorId |
| operatorName | String | Yes | Operator name |
| userName | String | Yes | User Name |
| userId | String | Yes | User unique ID in operator system |
| startTime | Int64 | Yes | In unixMilli format |
| endTime | Int64 | Yes | In unixMilli format |
| page | Int64 | Yes | Page number |
| pageSize | Int64 | Yes | No 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
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| status | String | Yes | Response Status message code |
| errorDescription | String | Yes | Error Description |
| settlementData | []settlementData | Yes | Data according to request |
settlementData Object
| Parameter | Type |
|---|---|
| userId | String |
| userName | String |
| gameName | String |
| gameType | String |
| transactionTime | Int64 |
| transactionId | String |
| updateTime | Int64 |
| currency | String |
| betType | String |
| gameCode | String |
| roundId | String |
| betAmount | String |
| winAmount | Float64 |
| rollBackAmount | Float64 |
| odds | Float64 |
| providerName | String |
| subProviderName | String |
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
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| operatorId | String | Yes | operatorId |
| userId | String | No | User unique ID in operator system |
| userName | Int64 | No | User unique name in operator system |
| startTime | Int64 | Yes | In unix millisecond format |
| endTime | String | Yes | In unix millisecond format |
| gameId | String | No | Unique gameId |
| page | Int64 | Yes | Page Number |
| pageSize | Int64 | Yes | No. 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
| Parameter | Type | Enforce | Description |
|---|---|---|---|
| status | String | Yes | Response Status message code |
| errorDescription | String | Yes | Error description |
| gameReport | []GameReportAggregation | Yes | Game reports data |
| page | Int64 | Yes | Page |
| pageSize | Int64 | Yes | Page size |
| totalRecords | Int64 | Yes | Total no. of records |
GameReportAggregation Object
| Parameter | Type |
|---|---|
| OperatorName | String |
| gameName | String |
| partnerId | String |
| profitLoss | Float64 |
| providerName | String |
| subProviderName | String |
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
}
]
}