> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gomry.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel an order

> Cancel an order when the marketplace cancels or refunds the sale.

Use it when the marketplace cancels or refunds the sale. The tickets (or seats) stop working at the door and go back on sale, and you no longer owe their wholesale. Cancelling twice changes nothing.

**id** `string` *required*

Gomry's order id, or your `external_ref`.

**reason** `string` *required*

Why, for example `buyer_refunded`. Shown to Gomry staff.

A ticket that was already scanned cannot be cancelled: Gomry answers `already_used`.

## Response

The [order](https://docs.gomry.com/distribution-api/get-order.md#the-order), with `status` `cancelled`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.