> For the complete documentation index, see [llms.txt](https://developers.tiqets.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.tiqets.dev/basics/openapi/booking-api/cancel-order.md). Agents can also search and read this documentation through its [MCP server](https://developers.tiqets.dev/~gitbook/mcp).

# Cancel order

This method initiates and performs an order cancellation.

Not all orders are eligible for cancellation. Check the GET order endpoint to find out if the order is eligible for cancellation.

If the order is not eligible, please do not proceed with a cancellation request.

### Order Cancellation

The Tiqets Distributor API supports order cancellations on a growing catalog of our products using the order endpoint. Information regarding order cancellation is returned by the following endpoints:

* The Availability endpoint shows the cancellation policy and the cancellation window of a product. This information applies before an order is placed.
* The Order endpoint shows whether or not an order is eligible for cancellation, plus the cancellation deadline. This information applies for existing orders.

While our B2C website tiqets.com offers cancellation as an upsell option for some other products, this is currently not available in the Distributor API.

#### Cancellation policy

Orders are eligible for cancellation based on various criteria, such as the cancellation deadline or the cancellation policy as set by the supplier of the product. For products that are cancellable, the cancellation deadline is returned by the Availability endpoint in hours, either \`before\_date\` or \`before\_timeslot\`.

* `before_date`: Cancellation is possible until X hours (returned as `window`) before midnight on the visit date.
* `before_timeslot`: Cancellation is possible until X hours (returned as `window`) before the booked timeslot (if the product makes use of timeslots) or the opening hour of the venue (if the product does not have timeslots).

For existing orders, the Order endpoint returns if and until when this order can be cancelled.

* `is_currently_cancellable`: Indicates if the order is currently eligible for cancellation.
* `cancellation_deadline`: The latest timestamp allowed for the order cancellation. Only returned if the value of `is_currently_cancellable` is `true`.

If an order is not eligible, please do not proceed with a cancellation request.

Cancellation requests on an ineligible order will yield an error message 'This Order is not cancellable'.

#### Examples

Cancellation policy as returned by the Availability endpoint. For all examples, we assume an visit date of June 15.

**Product 1**

Cancellation policy:

* `policy: before_date`
* `window: 16`

This order can be cancelled until 16 hours before midnight on June 15. Thus, cancellation is possible until June 14, 07:59. It is not relevant whether or not the product uses timeslots.

**Product 2**

The product does not use timeslots; the venue opens at 09:00 on the visit date.

Cancellation policy:

* `policy: before_timeslot`
* `window: 5`

In this case, the venue opening time applies as timeslot which determines the start time of the cancellation window. This order can be cancelled until 5 hours before 09:00 on June 15. Thus, cancellation is possible until June 15, 03:59.

**Product 3**

The product uses timeslots; the booked timeslot is 14:00.

Cancellation policy:

* `policy: before_timeslot`
* `window: 12`

In this case, timeslot determines the start time of the cancellation window. This order can be cancelled until 12 hours before 14:00 on June 15. Thus, cancellation is possible until June 15, 01:59.

#### Cancellation process

The order cancellation process requires partners to send the cancellation request with the order details and reason for cancellation. Once the cancellation request is accepted, Tiqets will process the order cancellation and create the settlement in the monthly invoice. The order endpoint and the order overview in the API portal will then show the order as *Cancelled*.

**Tip:** We recommend partners to call the order endpoint to ensure that the order is eligible for cancellation before sending the cancellation request.

#### Cancellation settlement

A successful cancellation triggers the reverse transaction of any payments related to the order.

There are two possible scenarios:

* If the guest paid to the partner and the partner paid to Tiqets: Tiqets refunds the partner; the partner needs to refund the guest. This applies for API orders.
* If the guest paid to Tiqets and the partner received a commission for the order: Tiqets refunds the guest and charges back the commission from the partner. This applies for affiliate orders.

There is no cancellation fee applicable.

#### Cancellation by the product supplier

Under certain conditions, order cancellations can be triggered by the supplier of a product. A common example are bad weather conditions that force the supplier to cancel all orders for a product for a certain time range.

If an order was created by API and is then cancelled by the supplier, the partner needs to inform their customers about the cancellation and refund the customers accordingly.

There are two methods for partners to get information about order cancellations:

* Regularly pulling order details using the Orders endpoint. If the order status changes from `done` to `cancelled` (and the cancellation was not initiated by the partner via the Distributor API), please inform and refund the customer.
* Tiqets sends an automated email to partners whenever an order is cancelled outside of the API cancellation process. If a partner receives a cancellation notification email, please inform and refund the customer. (Should you be an active API partner but are not yet receiving these emails, please reach out to Tiqets to activate them.)

{% hint style="warning" %}
In order to use the Booking API, please make sure to refer to our guide on how to Sign your API requests to our standard. [JWT Signing for Secure API Requests](https://developers.tiqets.dev/integration-guides/jwt-signing-for-secure-api-requests.md)
{% endhint %}

## DELETE /orders/{orderReferenceId}

> Cancel Order

```json
{"openapi":"3.1.0","info":{"title":"Tiqets Distributor API","version":"2.10.0"},"tags":[{"name":"Booking API"}],"servers":[{"url":"https://api.tiqets.com/v2","description":"Production Environment"},{"url":"https://api-tiqt-test.steq.it/v2","description":"Test Environment (until February 4th, 2026)"},{"url":"https://api.api-tiqt-test.steq.it/v2","description":"Test Environment (from February 4th, 2026)"}],"paths":{"/orders/{orderReferenceId}":{"delete":{"tags":["Booking API"],"parameters":[{"$ref":"#/components/parameters/OrderReferenceId"},{"$ref":"#/components/parameters/Authorization"}],"requestBody":{"description":"The request body must be signed with the distributor's private key. See the Integration Guide for details on how to generate the key pair and JWT [**request signing**](#section/API-Basics/Request-signing).\n Partners are required to send one of the possible cancellation reason in the request body:\n - COULD_NOT_MAKE_IT\n - NEED_TO_RESCHEDULE\n - FOUND_A_BETTER_PRICE_ELSEWHERE\n - DID_NOT_RECEIVE_TICKETS\n - OTHER.\n","content":{"application/json":{"schema":{"type":"object","properties":{"cancellation_reason":{"type":"string","enum":["COULD_NOT_MAKE_IT","NEED_TO_RESCHEDULE","FOUND_A_BETTER_PRICE_ELSEWHERE","DID_NOT_RECEIVE_TICKETS -","OTHER"],"description":"Reason for cancellation from the customer."}}}}}},"responses":{"200":{"description":"Successful operation.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful (`True`) or not (`False`)."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}},"summary":"Cancel Order"}}},"components":{"parameters":{"OrderReferenceId":{"name":"orderReferenceId","in":"path","description":"Tiqets Order ID.","required":true,"schema":{"type":"string"}},"Authorization":{"name":"Authorization","in":"header","required":true,"description":"Token <Your_API_Key>.","schema":{"type":"string","default":"Token <Partner_API_key>."}}},"responses":{"BadRequest":{"description":"Bad Request -- Check your request parameters (typo in parameter or invalid value).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"},"field_errors":{"type":"object"}}}}}},"Unauthorized":{"description":"Unauthorized -- Your API key is incorrect.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"}}}}}},"Forbidden":{"description":"Forbidden -- The endpoint or parameters are not allowed for the matching API key.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"}}}}}},"NotFound":{"description":"Not Found -- Requested resource/endpoint could not be found.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"}}}}}},"MethodNotAllowed":{"description":"Method Not Allowed -- Check your request method.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"}}}}}},"TooManyRequests":{"description":"Too Many Requests -- We currently apply a fair-use policy, but we might enforce limits in the future.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"}}}}}},"InternalServerError":{"description":"Internal Server Error -- We had a problem with our server. Try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"}}}}}},"ServiceUnavailable":{"description":"Service Unavailable -- We're temporarily offline for maintenance. Please try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.tiqets.dev/basics/openapi/booking-api/cancel-order.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
