Transactions API

Transaction API Reference - Operator 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.

Retrieves player transaction history with flexible response formats.

post

Provides two response modes based on sessionId parameter:

  • With sessionId: Returns flat list of individual transactions for the session

  • Without sessionId: Returns transactions grouped by gaming sessions

Features:

  • Time range filtering required (startTime and endTime)

  • Supports multiple transaction types: BET, WIN, DEPOSIT, WITHDRAWAL

  • Pagination support (max 120 items per page)

  • Integrates with BgWallet service

Required headers: X-Player-Token

Sample request (with sessionId):

{
    "startTime": "2025-10-01T00:00:00Z",
    "endTime": "2025-10-08T23:59:59Z",
    "sessionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "page": 1,
    "pageSize": 20
}

Sample request for grouped sessions (without sessionId):

Sample response for individual transactions:

Sample response for grouped sessions:

Transaction Types:

  • BET: Debit transactions for game rounds

  • WIN: Credit transactions for game winnings

  • DEPOSIT: Wallet funding transactions

  • WITHDRAWAL: Wallet withdrawal transactions

Authorizations
AuthorizationstringRequired

REQUIRED - JWT Authorization header using the Bearer scheme. All API endpoints require authentication, except for authentication endpoints (Connect/authentication). Example: "Authorization: Bearer {token}"

Query parameters
api-versionstringOptional
Header parameters
X-Player-TokenstringOptional

Player access token for session validation

Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Body
startTimestring · date-time | nullableOptional
endTimestring · date-time | nullableOptional
sessionIdstring · uuid | nullableOptional
pageinteger · int32Optional
pageSizeinteger · int32Optional
Responses
200

Successfully retrieved transaction data. Format depends on sessionId parameter presence.

Responseany
post
/transactions/list

No content

Last updated