---
title: "Cancel all unmatched plays related to a market"
method: POST
path: "/mm/cancel_wagers_by_market"
tags: ["Play"]
---

# Cancel all unmatched plays related to a market

`POST /mm/cancel_wagers_by_market`

## Request

- Base URL: `https://cash.api.prophetx.co/partner`
- URL: `https://cash.api.prophetx.co/partner/mm/cancel_wagers_by_market`
- Auth: API key in header `Authorization`

Cancel all unmatched plays related to a market

## Request body

- WagerCancelWagersByMarketRequest
  - `event_id` integer
  - `line_id` string
  - `market_id` integer

## Response `200`

OK

- MarketMakerCancelWagersByMarketResponse
  - `data` WagerCancelWagersByMarketResponse
    - `success` boolean

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Your requested data is not found or play is cancelled
- `500`: Internal server error

## Changes

- **2026-11-03** `37e7808f6c3a`: 2 info
  - api tag `Play` added
  - api tag `play` removed

[Operation history](https://skmtc.dev/prophetx/apis/external-market-maker-api/changes/mm/cancel_wagers_by_market/post.md)

---

[API](https://skmtc.dev/prophetx/apis/external-market-maker-api.md) - [All operations](https://skmtc.dev/prophetx/apis/external-market-maker-api/llms.txt) - [OpenAPI document](https://skmtc.dev/prophetx/apis/external-market-maker-api/revisions/37e7808f6c3a?raw)
