200 OK. The actual outcome is communicated in the JSON body through a result integer and a human-readable message string. Never rely on the HTTP status to detect errors; always inspect the result field.
Response structure
A successful response and an error response share the same shape. Theresult field is the authoritative indicator of what happened.
Success response:
Your callback service must also follow this convention. Always return HTTP 200 with a JSON body. Use the
result field to report business errors such as insufficient funds or unknown users — never return a 4xx or 5xx status for business logic failures.Result codes
| Code | Name | Description |
|---|---|---|
0 | Success | The operation completed successfully. |
1 | General error | An unexpected error occurred. Check the message field for details. |
2 | Wrong input parameters | One or more request parameters are invalid or missing. Check the message field for details. |
3 | Invalid sign | The sign does not match. Verify your secret key and parameter concatenation order. |
4 | Invalid agent | The agentID is unknown or has been disabled. Contact GitSlotPark if your agent is active. |
5 | User not found | The userID does not exist in your system. |
6 | Insufficient funds | The player does not have enough balance for the requested withdrawal. |
7 | Invalid API token | The API token is missing, expired, or incorrect. |
8 | Transaction not found | The referenced transactionID cannot be found. |
9 | Already rolled back | The specified transaction was already rolled back. |
11 | Duplicate transaction | A transaction with this transactionID was already processed successfully. |
Troubleshooting common codes
Code 3 — Invalid sign
An Invalid Sign error means thesign value in your request does not match what the receiving server computed independently.
Start with these checks:
- Confirm you are using the correct secret key for the
agentIDin the request. - Verify you are concatenating parameters in the exact order documented for the endpoint — not alphabetically, not by insertion order.
- Ensure
amountis formatted to exactly two decimal places before concatenating (12.30, not12.3). - Confirm your output is uppercase hex, 64 characters long.
Code 6 — Insufficient funds
Your callback service should return code6 when a Withdraw request arrives but the player’s balance is too low to cover the bet amount. Do not apply a partial debit — either the full amount is available or you return this code.
Code 11 — Duplicate transaction
GitSlotPark may retry a callback if your server does not respond in time or returns a non-200 status. When a retry arrives, thetransactionID is identical to the original request.
When you receive a callback with a transactionID that you have already successfully processed:
- Look up the original transaction in your records.
- Return result code
0(Success) with the player’s current balance — not the balance from the time of the original transaction.