Seamless
JDB Platform API
Functions
Report-Related
Action 66: Query Daily Summary

Action 66: Query Daily Summary

Function Description

  • Query daily summary, grouped by game type.
  • Available date range: from yesterday to 3 month.
  • Range of 01-01-2021: played at time zone UTC+8 from 01-01-2021 12:00:00 to 02-01-2021 12:00:00

Parameter

ParameterFormatMandatoryDescription
actionIntegerY66
tsLongYCurrent system time
parentString(50)YHouse/Manager/Master Agent/Agent ID
dateString(10)YSearch date
(dd - MM - yyyy)

Example

{
  "action": 66,
  "ts": 1447452951820,
  "parent": "testag",
  "date": "07-07-2021"
}

Return Results

ParameterFormatDescription
statusString(4)Success: 0000

Error: See Error Codes in in Appendix
No Data: 0000
dataJSON ArrayThe returned data will be listed in the following table.
err_textString(255)Error message

Data Object

ParameterFormatDescription
gTypeSummaryJSON ArraySummaries grouped by game type
The returned data will be listed in the following table.
totalSummaryJSON ObjectTotal summary
The returned data will be listed in the following table.

GtypeSummary Object

ParameterFormatDescription
gTypeString(2)Game types
See Game Provider
windoubleWinning points
netWindoubleTotal Win Loss
betdoubleBet amount
jackpotdoubleThe amount of the jackpot won
jackpotContributedoubleJackpot contributions
countIntegerBet count
validBetdoubleValid bet amount
taxdoubletax

TotalSummary Object

ParameterFormatDescription
windoubleWinning points
netWindoubleTotal Win Loss
betdoubleBet amount
jackpotdoubleThe amount of the jackpot won
jackpotContributedoubleJackpot contributions
countIntegerBet count
validBetdoubleValid bet amount
taxdoubletax

Operation Sample

// Http Request
http://{API_Address}/apiRequest.do?dc=jb&x=udbFVt_xv0tsAmLDpz5Z3Ct4-p0gedUPdQOUWsfd6PHz9Ky-wM3mIC9El4kwl_SlX3lpraVaCLnpK0WsgKmpYTV9XpYncHzbtvn591qfaAwpGyOvsS4v1Yj7OvpRw_iU4554RuSsvHpI9jaj4XU
gTK5yzbWKEddANjAAbxF0s=
 
// Http Response (success)
{
  "status":"0000",
  "data":{
    "gTypeSummary": [
      {
        "gType": 0,
        "win": 0,
        "netWin": -500,
        "jackpot": 0,
        "bet": -500,
        "jackpotContribute": 0,
        "count": 1,
        "validBet": -500,
        "tax": 0
      },
      {
        "gType": 7,
        "win": 62,
        "netWin": -101,
        "jackpot": 0,
        "bet": -163,
        "jackpotContribute": 0,
        "count": 3,
        "validBet": -163,
        "tax": 0
      },
      {
        "gType": 18,
        "win": 2280.67,
        "netWin": 2271.67,
        "jackpot": 0,
        "bet": -4045.67,
        "jackpotContribute": 0,
        "count": 17,
        "validBet": -4045.67,
        "tax": 9
      }
    ],
    "totalSummary": {
      "win": 2342.67,
      "netWin": 1670.67,
      "jackpot": 0,
      "bet": -4708.67,
      "jackpotContribute": 0,
      "count": 21,
      "validBet": -4708.67,
      "tax": 9
    }
  }
}
 
// Http Response (error)
{
  "status":"9005",
  "err_text":"Assertion(SAML) didn't pass the timestamp validation."
}
 
// Http Response (no data)
{
  "status": "0000",
  "data": {
    "gTypeSummary": [],
    "totalSummary": {
      "win": 0,
      "netWin": 0,
      "jackpot": 0,
      "bet": 0,
      "jackpotContribute": 0,
      "count": 0,
      "validBet": 0,
      "tax": 0
    }
  }
}