> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.wuzzlo.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.wuzzlo.com/_mcp/server.

# Credit or settle a bet result

POST /resultrequest
Content-Type: application/json

Wuzzlo to Operator. Verify the Wuzzlo signature and settle the original debit atomically. A new settlement returns OP_SUCCESS. The same reqId returns OP_DUPLICATE_REQUEST. A new reqId for an already-settled transaction returns OP_DUPLICATE_TRANSACTION. Credit after rollback returns OP_TRANSACTION_ROLLED_BACK. A missing debit returns OP_TRANSACTION_DOES_NOT_EXIST. All rejected or duplicate scenarios leave balance unchanged.

Reference: https://docs.wuzzlo.com/wuzzlo/wuzzlo-to-operator/credit-or-settle-a-bet-result

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /resultrequest:
    post:
      operationId: creditOrSettleABetResult
      summary: Credit or settle a bet result
      description: >-
        Wuzzlo to Operator. Verify the Wuzzlo signature and settle the original
        debit atomically. A new settlement returns OP_SUCCESS. The same reqId
        returns OP_DUPLICATE_REQUEST. A new reqId for an already-settled
        transaction returns OP_DUPLICATE_TRANSACTION. Credit after rollback
        returns OP_TRANSACTION_ROLLED_BACK. A missing debit returns
        OP_TRANSACTION_DOES_NOT_EXIST. All rejected or duplicate scenarios leave
        balance unchanged.
      tags:
        - wuzzloToOperator
      parameters:
        - name: Signature
          in: header
          description: >-
            Wuzzlo-to-Operator: Base64 RSA-SHA256 PKCS#1 v1.5 signature of the
            exact UTF-8 JSON body, verified with the Wuzzlo public key.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            HTTP 200 settlement response. The body status MUST be the single
            exact value assigned to the matching scenario; statuses are not
            interchangeable.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Wuzzlo to
                  Operator_creditOrSettleABetResult_Response_200
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResultRequest'
components:
  schemas:
    ResultRequest:
      type: object
      properties:
        operatorId:
          type: string
        token:
          type: string
        sessionToken:
          type: string
          description: Operator session token validated through /auth/login.
        userId:
          type: string
        reqId:
          type: string
          description: >-
            Durable idempotency key. An exact replay must return
            OP_DUPLICATE_REQUEST without changing balance.
        transactionId:
          type: string
          description: Logical wallet transaction identifier shared by the debit lifecycle.
        gameId:
          type: string
        roundId:
          type: string
        amount:
          type: number
          format: double
          description: Authoritative monetary amount. Use decimal-safe arithmetic.
        creditAmount:
          type: number
          format: double
        settlementKind:
          type: string
        settlementStatus:
          type: string
        resultStatus:
          type: string
        betType:
          type: string
      required:
        - operatorId
        - sessionToken
        - userId
        - reqId
        - transactionId
        - gameId
        - roundId
        - amount
      title: ResultRequest
    ResultrequestPostResponsesContentApplicationJsonSchemaStatus:
      type: string
      enum:
        - OP_SUCCESS
        - OP_DUPLICATE_REQUEST
        - OP_DUPLICATE_TRANSACTION
        - OP_TRANSACTION_ROLLED_BACK
        - OP_TRANSACTION_DOES_NOT_EXIST
      description: >-
        Exact business status required by the matched endpoint scenario. A
        different status is a contract failure even when the returned balance is
        correct.
      title: ResultrequestPostResponsesContentApplicationJsonSchemaStatus
    Wuzzlo to Operator_creditOrSettleABetResult_Response_200:
      type: object
      properties:
        balance:
          type: number
          format: double
          description: >-
            Balance returned for this response scenario. Successful mutations
            return the calculated post-transaction balance; duplicate and
            rejected scenarios return the unchanged balance.
        status:
          $ref: >-
            #/components/schemas/ResultrequestPostResponsesContentApplicationJsonSchemaStatus
          description: >-
            Exact business status required by the matched endpoint scenario. A
            different status is a contract failure even when the returned
            balance is correct.
      required:
        - balance
        - status
      title: Wuzzlo to Operator_creditOrSettleABetResult_Response_200
  securitySchemes:
    WuzzloSignature:
      type: apiKey
      in: header
      name: Signature
      description: >-
        Wuzzlo-to-Operator: Base64 RSA-SHA256 PKCS#1 v1.5 signature of the exact
        UTF-8 JSON body, verified with the Wuzzlo public key.

```

## Examples

### New winning settlement: OP_SUCCESS



**Request**

```json
{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}
```

**Response**

```json
{
  "balance": 50094,
  "status": "OP_SUCCESS"
}
```

**SDK Code**

```python New winning settlement: OP_SUCCESS
import requests

url = "https://api.example.com/resultrequest"

payload = {
    "operatorId": "string",
    "sessionToken": "string",
    "userId": "string",
    "reqId": "string",
    "transactionId": "string",
    "gameId": "string",
    "roundId": "string",
    "amount": 1.1
}
headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript New winning settlement: OP_SUCCESS
const url = 'https://api.example.com/resultrequest';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"operatorId":"string","sessionToken":"string","userId":"string","reqId":"string","transactionId":"string","gameId":"string","roundId":"string","amount":1.1}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go New winning settlement: OP_SUCCESS
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/resultrequest"

	payload := strings.NewReader("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby New winning settlement: OP_SUCCESS
require 'uri'
require 'net/http'

url = URI("https://api.example.com/resultrequest")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}"

response = http.request(request)
puts response.read_body
```

```java New winning settlement: OP_SUCCESS
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/resultrequest")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")
  .asString();
```

```php New winning settlement: OP_SUCCESS
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/resultrequest', [
  'body' => '{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp New winning settlement: OP_SUCCESS
using RestSharp;

var client = new RestClient("https://api.example.com/resultrequest");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift New winning settlement: OP_SUCCESS
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/resultrequest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### New losing settlement: OP_SUCCESS



**Request**

```json
{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}
```

**Response**

```json
{
  "balance": 49900,
  "status": "OP_SUCCESS"
}
```

**SDK Code**

```python New losing settlement: OP_SUCCESS
import requests

url = "https://api.example.com/resultrequest"

payload = {
    "operatorId": "string",
    "sessionToken": "string",
    "userId": "string",
    "reqId": "string",
    "transactionId": "string",
    "gameId": "string",
    "roundId": "string",
    "amount": 1.1
}
headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript New losing settlement: OP_SUCCESS
const url = 'https://api.example.com/resultrequest';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"operatorId":"string","sessionToken":"string","userId":"string","reqId":"string","transactionId":"string","gameId":"string","roundId":"string","amount":1.1}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go New losing settlement: OP_SUCCESS
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/resultrequest"

	payload := strings.NewReader("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby New losing settlement: OP_SUCCESS
require 'uri'
require 'net/http'

url = URI("https://api.example.com/resultrequest")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}"

response = http.request(request)
puts response.read_body
```

```java New losing settlement: OP_SUCCESS
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/resultrequest")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")
  .asString();
```

```php New losing settlement: OP_SUCCESS
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/resultrequest', [
  'body' => '{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp New losing settlement: OP_SUCCESS
using RestSharp;

var client = new RestClient("https://api.example.com/resultrequest");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift New losing settlement: OP_SUCCESS
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/resultrequest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Valid payout reversal: OP_SUCCESS



**Request**

```json
{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}
```

**Response**

```json
{
  "balance": 49900,
  "status": "OP_SUCCESS"
}
```

**SDK Code**

```python Valid payout reversal: OP_SUCCESS
import requests

url = "https://api.example.com/resultrequest"

payload = {
    "operatorId": "string",
    "sessionToken": "string",
    "userId": "string",
    "reqId": "string",
    "transactionId": "string",
    "gameId": "string",
    "roundId": "string",
    "amount": 1.1
}
headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Valid payout reversal: OP_SUCCESS
const url = 'https://api.example.com/resultrequest';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"operatorId":"string","sessionToken":"string","userId":"string","reqId":"string","transactionId":"string","gameId":"string","roundId":"string","amount":1.1}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Valid payout reversal: OP_SUCCESS
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/resultrequest"

	payload := strings.NewReader("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Valid payout reversal: OP_SUCCESS
require 'uri'
require 'net/http'

url = URI("https://api.example.com/resultrequest")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}"

response = http.request(request)
puts response.read_body
```

```java Valid payout reversal: OP_SUCCESS
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/resultrequest")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")
  .asString();
```

```php Valid payout reversal: OP_SUCCESS
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/resultrequest', [
  'body' => '{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Valid payout reversal: OP_SUCCESS
using RestSharp;

var client = new RestClient("https://api.example.com/resultrequest");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Valid payout reversal: OP_SUCCESS
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/resultrequest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Same reqId replay: OP_DUPLICATE_REQUEST



**Request**

```json
{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}
```

**Response**

```json
{
  "balance": 50094,
  "status": "OP_DUPLICATE_REQUEST"
}
```

**SDK Code**

```python Same reqId replay: OP_DUPLICATE_REQUEST
import requests

url = "https://api.example.com/resultrequest"

payload = {
    "operatorId": "string",
    "sessionToken": "string",
    "userId": "string",
    "reqId": "string",
    "transactionId": "string",
    "gameId": "string",
    "roundId": "string",
    "amount": 1.1
}
headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Same reqId replay: OP_DUPLICATE_REQUEST
const url = 'https://api.example.com/resultrequest';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"operatorId":"string","sessionToken":"string","userId":"string","reqId":"string","transactionId":"string","gameId":"string","roundId":"string","amount":1.1}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Same reqId replay: OP_DUPLICATE_REQUEST
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/resultrequest"

	payload := strings.NewReader("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Same reqId replay: OP_DUPLICATE_REQUEST
require 'uri'
require 'net/http'

url = URI("https://api.example.com/resultrequest")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}"

response = http.request(request)
puts response.read_body
```

```java Same reqId replay: OP_DUPLICATE_REQUEST
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/resultrequest")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")
  .asString();
```

```php Same reqId replay: OP_DUPLICATE_REQUEST
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/resultrequest', [
  'body' => '{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Same reqId replay: OP_DUPLICATE_REQUEST
using RestSharp;

var client = new RestClient("https://api.example.com/resultrequest");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Same reqId replay: OP_DUPLICATE_REQUEST
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/resultrequest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Already-settled transactionId with new reqId: OP_DUPLICATE_TRANSACTION



**Request**

```json
{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}
```

**Response**

```json
{
  "balance": 50094,
  "status": "OP_DUPLICATE_TRANSACTION"
}
```

**SDK Code**

```python Already-settled transactionId with new reqId: OP_DUPLICATE_TRANSACTION
import requests

url = "https://api.example.com/resultrequest"

payload = {
    "operatorId": "string",
    "sessionToken": "string",
    "userId": "string",
    "reqId": "string",
    "transactionId": "string",
    "gameId": "string",
    "roundId": "string",
    "amount": 1.1
}
headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Already-settled transactionId with new reqId: OP_DUPLICATE_TRANSACTION
const url = 'https://api.example.com/resultrequest';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"operatorId":"string","sessionToken":"string","userId":"string","reqId":"string","transactionId":"string","gameId":"string","roundId":"string","amount":1.1}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Already-settled transactionId with new reqId: OP_DUPLICATE_TRANSACTION
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/resultrequest"

	payload := strings.NewReader("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Already-settled transactionId with new reqId: OP_DUPLICATE_TRANSACTION
require 'uri'
require 'net/http'

url = URI("https://api.example.com/resultrequest")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}"

response = http.request(request)
puts response.read_body
```

```java Already-settled transactionId with new reqId: OP_DUPLICATE_TRANSACTION
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/resultrequest")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")
  .asString();
```

```php Already-settled transactionId with new reqId: OP_DUPLICATE_TRANSACTION
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/resultrequest', [
  'body' => '{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Already-settled transactionId with new reqId: OP_DUPLICATE_TRANSACTION
using RestSharp;

var client = new RestClient("https://api.example.com/resultrequest");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Already-settled transactionId with new reqId: OP_DUPLICATE_TRANSACTION
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/resultrequest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Credit after rollback: OP_TRANSACTION_ROLLED_BACK



**Request**

```json
{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}
```

**Response**

```json
{
  "balance": 50000,
  "status": "OP_TRANSACTION_ROLLED_BACK"
}
```

**SDK Code**

```python Credit after rollback: OP_TRANSACTION_ROLLED_BACK
import requests

url = "https://api.example.com/resultrequest"

payload = {
    "operatorId": "string",
    "sessionToken": "string",
    "userId": "string",
    "reqId": "string",
    "transactionId": "string",
    "gameId": "string",
    "roundId": "string",
    "amount": 1.1
}
headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Credit after rollback: OP_TRANSACTION_ROLLED_BACK
const url = 'https://api.example.com/resultrequest';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"operatorId":"string","sessionToken":"string","userId":"string","reqId":"string","transactionId":"string","gameId":"string","roundId":"string","amount":1.1}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Credit after rollback: OP_TRANSACTION_ROLLED_BACK
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/resultrequest"

	payload := strings.NewReader("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Credit after rollback: OP_TRANSACTION_ROLLED_BACK
require 'uri'
require 'net/http'

url = URI("https://api.example.com/resultrequest")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}"

response = http.request(request)
puts response.read_body
```

```java Credit after rollback: OP_TRANSACTION_ROLLED_BACK
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/resultrequest")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")
  .asString();
```

```php Credit after rollback: OP_TRANSACTION_ROLLED_BACK
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/resultrequest', [
  'body' => '{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Credit after rollback: OP_TRANSACTION_ROLLED_BACK
using RestSharp;

var client = new RestClient("https://api.example.com/resultrequest");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Credit after rollback: OP_TRANSACTION_ROLLED_BACK
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/resultrequest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Original debit missing: OP_TRANSACTION_DOES_NOT_EXIST



**Request**

```json
{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}
```

**Response**

```json
{
  "balance": 50000,
  "status": "OP_TRANSACTION_DOES_NOT_EXIST"
}
```

**SDK Code**

```python Original debit missing: OP_TRANSACTION_DOES_NOT_EXIST
import requests

url = "https://api.example.com/resultrequest"

payload = {
    "operatorId": "string",
    "sessionToken": "string",
    "userId": "string",
    "reqId": "string",
    "transactionId": "string",
    "gameId": "string",
    "roundId": "string",
    "amount": 1.1
}
headers = {
    "Signature": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Original debit missing: OP_TRANSACTION_DOES_NOT_EXIST
const url = 'https://api.example.com/resultrequest';
const options = {
  method: 'POST',
  headers: {Signature: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"operatorId":"string","sessionToken":"string","userId":"string","reqId":"string","transactionId":"string","gameId":"string","roundId":"string","amount":1.1}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Original debit missing: OP_TRANSACTION_DOES_NOT_EXIST
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/resultrequest"

	payload := strings.NewReader("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Signature", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Original debit missing: OP_TRANSACTION_DOES_NOT_EXIST
require 'uri'
require 'net/http'

url = URI("https://api.example.com/resultrequest")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Signature"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}"

response = http.request(request)
puts response.read_body
```

```java Original debit missing: OP_TRANSACTION_DOES_NOT_EXIST
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/resultrequest")
  .header("Signature", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}")
  .asString();
```

```php Original debit missing: OP_TRANSACTION_DOES_NOT_EXIST
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/resultrequest', [
  'body' => '{
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'Signature' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Original debit missing: OP_TRANSACTION_DOES_NOT_EXIST
using RestSharp;

var client = new RestClient("https://api.example.com/resultrequest");
var request = new RestRequest(Method.POST);
request.AddHeader("Signature", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"operatorId\": \"string\",\n  \"sessionToken\": \"string\",\n  \"userId\": \"string\",\n  \"reqId\": \"string\",\n  \"transactionId\": \"string\",\n  \"gameId\": \"string\",\n  \"roundId\": \"string\",\n  \"amount\": 1.1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Original debit missing: OP_TRANSACTION_DOES_NOT_EXIST
import Foundation

let headers = [
  "Signature": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "operatorId": "string",
  "sessionToken": "string",
  "userId": "string",
  "reqId": "string",
  "transactionId": "string",
  "gameId": "string",
  "roundId": "string",
  "amount": 1.1
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/resultrequest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```