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
Name | Type | Required | Description |
---|---|---|---|
transactions | array | Yes | Transaction list |
transactions.userId | integer | Yes | User ID |
transactions.transactionId | string | Yes | Transaction ID |
transactions.gameId | integer | Yes | Game 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
Name | Type | Required | Description |
---|---|---|---|
status | boolean | Yes | Indicator of the response status When true - request is successful Accepted values: true , false |
result | object | Yes | Result Description |
result.transactions | array | Yes | List of transactions |
result.transactions.transactionId | string | Yes | Transaction ID |
result.transactions.userId | integer | Yes | User ID |
result.transactions.gameId | integer | Yes | Game ID |
result.transactions.status | string | Yes | Transaction status code Accepted values: 0 – Failed, 1 – Success, 2 – Insufficient funds, 3 – Platform Limit, 4 – User blocked, 5 – Pending, 9 – Timeout Status 0 is assigned when there is an error on our side When created, the transaction is given a status of 5 |
result.transactions.statusMessage | string | Yes | Transaction status description |
errorDesc | string | No | Description 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"
}
}