Skip to main content

Check transactions

Request

URI: /checkTransactions

Example usage: https://{base_url}/checkTransactions

The request is executed using the POST method.

This method allows you to get transaction statuses.

note

Only up to 1000 transactions are processed per request.

Request parameters

NameTypeRequiredDescription
transactionsarrayYesList of transactions
transactions.userIdintegerYesUser ID
transactions.transactionIdstringYesTransaction ID
transactions.gameIdintegerYesGame ID

Example of a request parameters

Request: /checkTransactions
{
"transactions": [
{
"userId": 16065,
"transactionId": "4db8f482-4240-4049-98a7-03e38333b066",
"gameId": 1000837
},
{
"userId": 12644,
"transactionId": "d6746885-0a87-4ce8-bf08-826ce1f71035",
"gameId": 1000819
},
{
"userId": 7416,
"transactionId": "aa5c2168-f257-4a86-a6fa-0c0f25cee4d7",
"gameId": 1040848
},
{
"userId": 5249,
"transactionId": "d12dee25-64ad-4eb4-a2fd-f52039062a68",
"gameId": 1033828
},
{
"userId": 13392,
"transactionId": "076e2e53-c7ae-4c2e-b081-558c088d387a",
"gameId": 1000821
},
{
"userId": 11899,
"transactionId": "a4b1f099-b7d6-4b8a-b901-57b6a806fd50",
"gameId": 1000556
}
]
}

Response parameters

NameTypeRequiredDescription
statusbooleanYesResponse status indicator
When true – the request is successful
Accepted values: true, false
resultobjectYesContains the transaction results
result.transactionsarrayYesList of transactions
result.transactions.transactionIdstringYesTransaction ID
result.transactions.userIdintegerYesUser ID
result.transactions.gameIdintegerYesGame ID
result.transactions.statusstringYesTransaction status code
Accepted values:
0Failed
1Success
2Insufficient funds
3Platform limit
4User blocked
5Pending
9Timeout
Status 0 is assigned in case of an internal error
Transactions are initially created with status 5
result.transactions.statusMessagestringYesDescription of the transaction status
errorDescstringNoError description if status = false

Example of a successful response

Response: /checkTransactions
{
"status": true,
"result": {
"transactions": [
{
"transactionId": "cf1e5b08-dcb4-46a2-9623-f12b174f507e",
"userId": 14730,
"gameId": 1028683,
"status": "5",
"statusMessage": "Pending"
},
{
"transactionId": "e85acbb5-799b-44c2-a80b-df1748ed4b5c",
"userId": 14730,
"gameId": 1028683,
"status": "0",
"statusMessage": "Failed"
}
]
}
}

Example of an unsuccessful response

Response: /checkTransactions
{
"status": false,
"errors": {
"error": "The transactions.0.userId field is required"
}
}