Skip to main content
POST
/
cancel-orders
Cancel specific orders
curl --request POST \
  --url https://v2.55-tech.com/cancel-orders \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "requestUuids": [
    "ee9f4007-e5ab-4085-bffb-8d938e4cad5f",
    "fb5f2dd9-c855-4ba9-8ef9-4c2278ca2f1d"
  ]
}
'
import requests

url = "https://v2.55-tech.com/cancel-orders"

payload = { "requestUuids": ["ee9f4007-e5ab-4085-bffb-8d938e4cad5f", "fb5f2dd9-c855-4ba9-8ef9-4c2278ca2f1d"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}

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

print(response.text)
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requestUuids: ['ee9f4007-e5ab-4085-bffb-8d938e4cad5f', 'fb5f2dd9-c855-4ba9-8ef9-4c2278ca2f1d']
})
};

fetch('https://v2.55-tech.com/cancel-orders', 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://v2.55-tech.com/cancel-orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'requestUuids' => [
'ee9f4007-e5ab-4085-bffb-8d938e4cad5f',
'fb5f2dd9-c855-4ba9-8ef9-4c2278ca2f1d'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

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

func main() {

url := "https://v2.55-tech.com/cancel-orders"

payload := strings.NewReader("{\n \"requestUuids\": [\n \"ee9f4007-e5ab-4085-bffb-8d938e4cad5f\",\n \"fb5f2dd9-c855-4ba9-8ef9-4c2278ca2f1d\"\n ]\n}")

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

req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://v2.55-tech.com/cancel-orders")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"requestUuids\": [\n \"ee9f4007-e5ab-4085-bffb-8d938e4cad5f\",\n \"fb5f2dd9-c855-4ba9-8ef9-4c2278ca2f1d\"\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://v2.55-tech.com/cancel-orders")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"requestUuids\": [\n \"ee9f4007-e5ab-4085-bffb-8d938e4cad5f\",\n \"fb5f2dd9-c855-4ba9-8ef9-4c2278ca2f1d\"\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "status": "cancelled",
  "cancelledCount": 1,
  "cancelled": [
    {
      "orderId": 327,
      "requestUuid": "eb45b192-317b-42d5-9f65-af497b9fa8c1",
      "allowedBookmakers": "*",
      "fixtureId": "id1000004461512432",
      "outcomeId": 103,
      "playerId": 0,
      "orderPrice": 1.95,
      "orderStake": 10,
      "filledStake": 0,
      "userRef": "bettor1234",
      "testOrder": false,
      "orderCurrency": "USD",
      "back": true,
      "expiresAt": "2026-02-07T12:20:06.302841+00:00",
      "acceptBetterOdds": true,
      "acceptPartialStake": true,
      "clientName": "demo",
      "orderStatus": "CANCELLED",
      "createdAt": "2026-02-07T12:20:01.302841+00:00",
      "updatedAt": "2026-02-07T12:20:01.302841+00:00",
      "meta": null,
      "bets": [],
      "fixtureInfo": {
        "fixtureId": "id1000004461512432",
        "status": {
          "live": false,
          "statusId": 0,
          "statusName": "Pre-Game"
        },
        "sport": {
          "sportId": 10,
          "sportName": "Soccer"
        },
        "tournament": {
          "tournamentId": 44,
          "tournamentName": "2. Bundesliga",
          "categoryName": "Germany"
        }
      },
      "outcomeInfo": {
        "marketId": 101,
        "marketName": "Full Time Result",
        "outcomeId": 103,
        "outcomeName": "2"
      }
    }
  ],
  "notCancelled": {
    "reason": "Order not cancellable",
    "orders": []
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Contact contact@55-tech.com to obtain a key.

Body

application/json

At least one filter must be provided. Multiple filters are combined with OR logic.

orderIds
integer[] | null

List of numeric order IDs to cancel

requestUuids
string<uuid>[] | null

List of request UUIDs to cancel

userRef
string | null

Cancel all orders matching this user reference

Response

Cancellation result with enriched order details

status
string

'cancelled'

cancelledCount
integer

Number of orders cancelled

cancelled
object[]

Cancelled orders with enriched details

notCancelled
object

Orders that could not be cancelled