# Voids

Before being approved an [order](/core-api-reference/orders.md) can be cancelled. On successful cancellation, the order's payment status becomes `voided` and a new void transaction is created.

Fetching a void returns all the information and messages provided by the [payment gateway](/core-api-reference/payment_gateways.md).

If a void gets stuck (for any reason) on our platform but succeeds on the payment gateway, you can [unblock](/core-api-reference/transactions.md#unblocking-stuck-transactions) it by passing the `_forward` trigger attribute.

<details>

<summary>Data model</summary>

Check the related [ER diagram](/data-model/orders/orders-management.md) and explore the flowchart that illustrates how the void resource relates to the order and the transaction APIs.

</details>

{% hint style="info" %}
Create and delete operations are not allowed on this endpoint. You can only fetch a list of voids or a specific single one, which can also be updated in order to mark it as succeeded, unblock it manually, or add/change common attributes (metadata, references, etc.).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.commercelayer.io/core-api-reference/voids.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
