Skip to content

Integration tests ​

Overview ​

Request typeURL
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 ​

NameTypeDescription
partnerIdbigintUnique partner identifier
playerIdstringUnique player identifier in the partner’s system
hashstringSignature (sha256 from encryption string)
currencystringoptionalThe currency in which requests will be made
(default - "USD")
gameIdbigintoptionalUnique identifier of the game (default - 1)
sessionIdstringoptionalUnique game session identifier in the partner’s system

String to hash

“self_validate” + partnerId + playerId + apiKey

Response ​

NameTypeDescription
failedTestsarrayDetailed 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
}