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

# View Game Round History

> Retrieve the actions history for a specific game round.

> `GET` /platform/api/game-rounds

### Headers

| Name                                                                 | Type     | Description                                                           |
| -------------------------------------------------------------------- | -------- | --------------------------------------------------------------------- |
| **<span style={{color: "rgb(var(--primary)"}}>Authorization</span>** | `string` | Bearer token authorization header (format: `Bearer your_token_here`). |

### Request Parameters

| Name                                                           | Type     | Description                         |
| -------------------------------------------------------------- | -------- | ----------------------------------- |
| **<span style={{color: "rgb(var(--primary)"}}>roundId</span>** | `string` | Unique identifier of the game round |

### Response Parameters

| Name                                                           | Type    | Description                               |
| -------------------------------------------------------------- | ------- | ----------------------------------------- |
| **<span style={{color: "rgb(var(--primary)"}}>actions</span>** | `array` | Array of player actions in the game round |

Each action object contains:

| Name                                                             | Type     | Description                                               |
| ---------------------------------------------------------------- | -------- | --------------------------------------------------------- |
| **<span style={{color: "rgb(var(--primary)"}}>game</span>**      | `object` | Game information (uuid, name, softwareProvider, gameCode) |
| **<span style={{color: "rgb(var(--primary)"}}>player</span>**    | `object` | Player information (login, currency, uuid)                |
| **<span style={{color: "rgb(var(--primary)"}}>windowId</span>**  | `number` | Game window identifier                                    |
| **<span style={{color: "rgb(var(--primary)"}}>betId</span>**     | `number` | Bet identifier                                            |
| **<span style={{color: "rgb(var(--primary)"}}>actionId</span>**  | `number` | Action sequence number                                    |
| **<span style={{color: "rgb(var(--primary)"}}>timestamp</span>** | `string` | Action timestamp (format: "YYYY-MM-DD HH:mm:ss.SSS")      |
| **<span style={{color: "rgb(var(--primary)"}}>currency</span>**  | `string` | Transaction currency                                      |
| **<span style={{color: "rgb(var(--primary)"}}>bet</span>**       | `number` | Bet amount in original currency                           |
| **<span style={{color: "rgb(var(--primary)"}}>betEur</span>**    | `number` | Bet amount in EUR                                         |
| **<span style={{color: "rgb(var(--primary)"}}>betUsd</span>**    | `number` | Bet amount in USD                                         |
| **<span style={{color: "rgb(var(--primary)"}}>win</span>**       | `number` | Win amount in original currency                           |
| **<span style={{color: "rgb(var(--primary)"}}>winEur</span>**    | `number` | Win amount in EUR                                         |
| **<span style={{color: "rgb(var(--primary)"}}>winUsd</span>**    | `number` | Win amount in USD                                         |
| **<span style={{color: "rgb(var(--primary)"}}>action</span>**    | `string` | Action details string                                     |

## Implementation Guide

### 1. Embed History Viewer

Add the following iframe element to your page to display the game history:

```html theme={null}
<iframe id="history"
        width="800"
        height="600"
        src="http://back-office.b-cdn.net/#/action/short"
        style="display:none;"
>
</iframe>
```

### 2. Display History Data

Use the following JavaScript code to send the response data to the iframe:

```js theme={null}
const data = "..." //response here
const frame = document.getElementById("history");
const frameWindow = frame.contentWindow;
frameWindow.postMessage(JSON.parse(data), "*");
frame.style.display = "block"
```

### Possible Errors

| messageKey                    | message                                                                    |
| ----------------------------- | -------------------------------------------------------------------------- |
| error.player.id.not.found     | Player not found by id=\[\$id]                                             |
| error.operator.id.not.found   | Operator not found by id=\[\$id]                                           |
| error.user.no.access.operator | User\[uuid = \$userUuid] has no access to Operator\[uuid = \$operatorUuid] |
| error.game.id.not.found       | Game not found by id=\[\$id]                                               |
