Run Automated Tests
curl --request GET \
--url https://ss.game-services.work/tbs/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://ss.game-services.work/tbs/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ss.game-services.work/tbs/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ss.game-services.work/tbs/test",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ss.game-services.work/tbs/test"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ss.game-services.work/tbs/test")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ss.game-services.work/tbs/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyWallet Test
Run Automated Tests
Launches the built‑in regression‑test suite against a target wallet platform and returns a human‑readable report.
Run Automated Tests
curl --request GET \
--url https://ss.game-services.work/tbs/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://ss.game-services.work/tbs/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ss.game-services.work/tbs/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ss.game-services.work/tbs/test",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://ss.game-services.work/tbs/test"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://ss.game-services.work/tbs/test")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ss.game-services.work/tbs/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body
GET /tbs/test
Each call starts a fresh test run. Two identical requests will both execute the full suite, so the operation is not idempotent.
Query Parameters (required)
| Name | Type | Description |
|---|---|---|
| `authorization_header` | string | Value forwarded as the HTTP X-Auth-Token header when the test engine talks to the target platform. Example: 5QhbQdQr4EMMNnY79qNPhJEUpXv3vdvp |
| `base_url` | string | Root URL of the platform under test (scheme + host + optional port). Example: https://wallet.dev.example.com |
| `player_token` | string | Token that the test engine will exchange for a player session (/session endpoint). |
| `currency` | string | ISO‑4217 code used when creating transactions during the test run. |
| `game_uuid` | string | Game identifier passed to /session, /credit-debit, /debit, etc. |
Response 200 OK
| Name | Type | Description |
|---|---|---|
| “ | string | Multi‑line text summarising every scenario. Format shown below. |
GET /tbs/test?authorization_header=5QhbQdQr4EMMNnY79qNPhJEUpXv3vdvp&base_url=https://wallet.dev.example.com&player_token=abcd1234¤cy=USD&game_uuid=b23e45a7-9be8-d312-56a4-174000426614
──────── API TEST REPORT ────────
Credit Rollback | PASSED |
Credit-Debit (Spin) | PASSED |
Credit-Debit (Purchase) | PASSED |
Credit and Debit | PASSED |
Tournament Prize | PASSED |
──────────────────────────────────
Error Handling
If the request is malformed (missing parameter, empty string, etc.) the service returns:| HTTP Status | Body | Meaning |
|---|---|---|
| `500` | { "error_code": "INVALID_PARAMETER", "message": "base_url must not be blank" } | Validation failed before any tests were started. |
| `500` | { "error_code": "NOT_AUTHORIZED" } | The caller is not permitted to invoke the test runner. |
| `500` | { "error_code": "ENGINE_FAILURE", "message": "NullPointerException at CreditRollbackWorkflowTest" } | An unexpected exception occurred while executing the suite. |
⌘I