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
Name | Type | Required | Description |
---|---|---|---|
transactions | array | Yes | List of transactions |
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 | Response status indicator When true – the request is successful Accepted values: true , false |
result | object | Yes | Contains the transaction results |
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 in case of an internal error Transactions are initially created with status 5 |
result.transactions.statusMessage | string | Yes | Description of the transaction status |
errorDesc | string | No | Error 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"
}
}