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 a 1000 transactions at most are taken from the request.

Request parameters

NameTypeRequiredDescription
transactionsarrayYesTransaction list
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
statusbooleanYesIndicator of the response status
When true - request is successful
Accepted values: true, false
resultobjectYesResult Description
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 when there is an error on our side
When created, the transaction is given a status of 5
result.transactions.statusMessagestringYesTransaction status description
errorDescstringNoDescription of error in case of 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"
}
}