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-ABP-API-KEY: <api-key>' \
  --data '
{
  "requestUuids": [
    "ee9f4007-e5ab-4085-bffb-8d938e4cad5f",
    "fb5f2dd9-c855-4ba9-8eh9-4c2278ca2f1d"
  ]
}
'
{
  "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",
      "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"
        },
        "startTime": 1754159400,
        "participants": {
          "participant1Id": 2540,
          "participant1Name": "Arminia Bielefeld",
          "participant2Id": 2588,
          "participant2Name": "Fortuna Dusseldorf"
        }
      },
      "outcomeInfo": {
        "marketId": 101,
        "marketName": "Full Time Result",
        "marketNameShort": "1X2",
        "marketType": "1x2",
        "period": "fulltime",
        "playerProp": false,
        "handicap": 0,
        "outcomeId": 103,
        "outcomeName": "2"
      },
      "currencyInfo": {
        "currency": "USD",
        "currencyValue": 1
      }
    }
  ],
  "notCancelled": {
    "reason": "Order not cancellable",
    "orders": [
      {
        "orderId": 328,
        "requestUuid": "be81ba8f-55f4-48ed-a6f9-69b8d920263b",
        "allowedBookmakers": "*",
        "fixtureId": "id1000004461512432",
        "outcomeId": 103,
        "playerId": 0,
        "orderPrice": 1.95,
        "orderStake": 10,
        "filledStake": 10,
        "userRef": "bettor1234",
        "testOrder": false,
        "orderCurrency": "USD",
        "back": true,
        "expiresAt": "2026-02-07T16:18:34.366795+00:00",
        "acceptBetterOdds": true,
        "acceptPartialStake": true,
        "clientName": "demo",
        "orderStatus": "FILLED",
        "createdAt": "2026-02-07T16:18:29.366795+00:00",
        "updatedAt": "2026-02-07T16:18:29.366795+00:00",
        "bets": [
          {
            "betId": 91,
            "orderId": 328,
            "bookmaker": "pinnacle",
            "bookmakerBetId": "63aeba8d-a2d6-49ba-a6cd-7ce70bb17701",
            "placedPrice": 1.98,
            "placedStake": 10,
            "placedCurrency": "USD",
            "placedAt": "2026-02-07T16:18:29.300906+00:00",
            "betStatus": "CONFIRMED",
            "settlementStatus": "UNSETTLED",
            "clientName": "demo",
            "testBet": false,
            "userRef": "bettor1234",
            "requestUuid": "be81ba8f-55f4-48ed-a6f9-69b8d920263b"
          }
        ],
        "fixtureInfo": {
          "fixtureId": "id1000004461512432",
          "status": {
            "live": false,
            "statusId": 0,
            "statusName": "Pre-Game"
          },
          "sport": {
            "sportId": 10,
            "sportName": "Soccer"
          },
          "tournament": {
            "tournamentId": 44,
            "tournamentName": "2. Bundesliga",
            "categoryName": "Germany"
          },
          "startTime": 1754159400,
          "participants": {
            "participant1Id": 2540,
            "participant1Name": "Arminia Bielefeld",
            "participant2Id": 2588,
            "participant2Name": "Fortuna Dusseldorf"
          }
        },
        "outcomeInfo": {
          "marketId": 101,
          "marketName": "Full Time Result",
          "marketNameShort": "1X2",
          "marketType": "1x2",
          "period": "fulltime",
          "playerProp": false,
          "handicap": 0,
          "outcomeId": 103,
          "outcomeName": "2"
        },
        "currencyInfo": {
          "currency": "USD",
          "currencyValue": 1
        }
      }
    ]
  }
}

Authorizations

X-ABP-API-KEY
string
header
required

API key for authentication. Contact admin to obtain a key.

Body

application/json

Request body for the POST /cancel-orders endpoint.

Cancel one or more pending orders. At least one filter must be provided. Multiple filters are combined with OR logic.

Behavior

  • Only orders in "pending" or "partial-placed" status can be cancelled
  • Orders with placed bets may not be fully cancellable (bookmaker-dependent)
  • Cancelled orders are marked in the database and signaled to stop retry loops

Response

Returns cancelled orders and any that couldn't be cancelled with reasons.

orderIds
integer[] | null

List of numeric order IDs to cancel

Minimum array length: 1
Example:
[123, 456]
requestUuids
string<uuid4>[] | null

List of request UUIDs to cancel

Minimum array length: 1
Example:
["eb45b192-317b-42d5-9f65-af497b9fa8c1"]
userRef
string | null

Cancel all orders matching this user reference

Minimum string length: 1
Example:

"bettor1234"

Response

Cancellation result with enriched order details