> For the complete documentation index, see [llms.txt](https://docs.sportradar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sportradar.com/live-data/introduction/system-communication/xml-messages-sent-from-the-client-system/match-booking.md).

# Match Booking

Match booking can be done using the web interface on [www.betradar.com](http://www.betradar.com/) > Live booking calendar, but it’s also possible to book matches over the XML feed. Note that booking matches will have a cost depending on the type of agreement you have with Sportradar. Each match booking message must contain 1 match id, i.e. it’s only possible to book 1 match per message.

**XML example**

```xml
<bookmatch matchid="944423"/>
```

***XML attributes definition***

| Element   | Attributes | Description                                         | Possible values |
| --------- | ---------- | --------------------------------------------------- | --------------- |
| bookmatch | *matchid*  | The id of the match which the client wants to book. | Integer         |

**Match booking reply**\
Reply sent when client books a match. If the match booking failed for some reason (match already bought, match finished etc.), the message will contain an explanation.

XML example

```xml
<bookmatch matchid="944423" result="valid" message="OK" />
```

***XML attributes definition***

| Element                  | Attributes | Description                                                         | Possible values                                                                                        |
| ------------------------ | ---------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| <p>bookmatch<br><br></p> | *matchid*  | The id of the match which the client wants to book.                 | Integer                                                                                                |
|                          | *result*   | Whether the match was booked successfully or not.                   | <p>String. Possible values:<br>valid = match booked successfully<br>invalid = match booking failed</p> |
|                          | *message*  | Textual representation of additional information about the booking. | String                                                                                                 |

<br>


---

# 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://docs.sportradar.com/live-data/introduction/system-communication/xml-messages-sent-from-the-client-system/match-booking.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.
