> For the complete documentation index, see [llms.txt](https://doc.xendbridge.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.xendbridge.com/api-method-calls/webhooks/order-canceled-notification.md).

# Order Canceled Notification

This sends a notification to the third-party application that an order is being canceled by either the consumer or the provider. See example and descriptions below;

```json
{
  "CheckSum": "7423ACC55801F2EDB1E756725CB61182D40988620EEF40BA2C3CCEB25E479423DA656F62CBEC1DFEF1EA0FBF09311F9FF689DF47DE9517D79E137CE165114FF3",
  "Data": {
    "OrderId": "844059b7-88ea-4b73-daca-08d9eb0f6c4a",
    "OrderReference": "XB_0cb80c382cd343ae9600cf6b177be55a",
    "OrderStatus": 2,
    "InitiatedBy": 0
  }
}
```

<table><thead><tr><th width="262.82520636977705">Key</th><th width="150">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>Checksum</code></td><td>string</td><td>This is a hash property signed with the merchant <code>secretkey</code>.</td></tr><tr><td><code>Data</code></td><td>object</td><td>This holds the properties of the payload data details.</td></tr><tr><td><code>OrderId</code></td><td>guid</td><td>This is the order id in the database.</td></tr><tr><td><code>OrderReference</code></td><td>string</td><td>This is the reference of the order in the database.</td></tr><tr><td><code>OrderStatus</code></td><td>enum</td><td>This is the status of an order at a particular time. It can be <code>Submitted = 1</code>, <code>Cancelled = 2</code>, <code>Acknowledged = 3</code>, <code>FundedProvider = 4</code>, <code>FundReceivedFromUser = 5</code>, <code>FundedUser = 6</code> or <code>Completed = 7</code>.</td></tr></tbody></table>


---

# 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 dynamically by asking a question.

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

```
GET https://doc.xendbridge.com/api-method-calls/webhooks/order-canceled-notification.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
