Integration tests
Overview
| Request type | URL |
|---|---|
| POST | <server-pixmove-games>/test/self-validate |
Our API provides the ability to verify the correctness of the integration by sending a POST request that triggers various game scenarios.
In response, you will receive a final status (success or error) along with detailed information for each test case.
Successfully passing all tests indicates that the integration has been completed correctly.
How to check refund
In tests we expect that on any /bet request with transactionId: 999999999 will return error, so we can send /refund on this bet.
Parameters
Request
| Name | Type | Description | |
|---|---|---|---|
| partnerId | bigint | Unique partner identifier | |
| playerId | string | Unique player identifier in the partner’s system | |
| hash | string | Signature (sha256 from encryption string) | |
| currency | string | optional | The currency in which requests will be made (default - "USD") |
| gameId | bigint | optional | Unique identifier of the game (default - 1) |
| sessionId | string | optional | Unique game session identifier in the partner’s system |
String to hash
“self_validate” + partnerId + playerId + apiKey
Response
| Name | Type | Description |
|---|---|---|
| failedTests | array | Detailed data of failed tests |
Example
Request
js
{
partnerId: 1,
playerId: '1',
hash: 'f01729f278481b7934b9c859fdbf030195e924e2e17d99b925ec2bff4655dfc2'
}Response
js
{
"status": "success",
"data": {
"success": true,
"failedTests": []
},
"serverTime": 1748437219129,
"duration": 334
}