Transactions API

Transactions API is an API which provides a list of all user's gameplay transactions, including their status and unique transaction IDs, which are crucial for processing transactions as well as troubleshooting any issues during gameplays.


Get user's gameplay transactions

post

Allows retrieval of a list of gameplay transactions. The list can be filtered by datetime fields (start_time and end_time) or by round. At least one of these filters must be included for the request to be valid.

Header parameters
X-Hub88-SignaturestringRequired

RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key associated with the provided operator_id.

Body
userstringOptional
sub_partner_idstringOptional

ID of Operator's sub-partner (brand, whitelabel, site, etc.) which uses same integration and credentials as an Operator. Used for detailed reporting and integration type switching. Sites under the same Operator can use different integration types: TransferWallet or SeamlessWallet. A single site (sub_partner_id) can NOT have both kinds of integration at the same time.

Example: my-casino-id
start_timestring · ISO-8601Optional

The date and time combination in ISO 8601 Extended format (YYYY-MM-DDThh:mm:ss).

Example: 2017-11-05T13:15:30
operator_idintegerRequired

Unique identifier for the Operator in Hub88 system. Used to authorize incoming requests. You can obtain your operator_id from the Hub88 BackOffice after your Operator entity is registered and set up in the Hub88 system by the internal teams.

Example: 1
end_timestring · ISO-8601Optional

The date and time combination in ISO 8601 Extended format (YYYY-MM-DDThh:mm:ss).

Example: 2017-11-05T13:15:30
currencystring · enumOptional

The ISO 4217 currency code. The following list contains all currencies supported by our system. Note that native gameplay support for these currencies may vary per Provider. Please contact us to know which Provider supports which currencies.

Example: EURPossible values:
roundstringOptional

Allows to specify the round for which transactions data and list is needed. Value for a round must be added when end_time and start_time aren't specified. Values can be either string or null.

Example: JB007
Responses
200
OK
application/json
post
POST /operator/generic/v2/transactions/list HTTP/1.1
Host: 
X-Hub88-Signature: text
Content-Type: application/json
Accept: */*
Content-Length: 85

{
  "start_time": "2017-11-05T20:15:30",
  "end_time": "2017-11-06T20:15:30",
  "operator_id": 1
}
200

OK

[
  {
    "user": "foo",
    "transaction_uuid": "8441e007-cd9b-4b2f-b6d6-9aefc756ea15",
    "status": "TS_SUCCESS",
    "round": "b5875ff2-92a0-456f-b232-c14e4f9f5682",
    "round_closed": false,
    "kind": "TK_BET",
    "inserted_at": "2018-05-23T10:11:59.058598",
    "id": 3541,
    "game_code": "clt_dragonrising",
    "currency": "USD",
    "amount": 100500
  }
]

Last updated

Was this helpful?