# Booking price snapshots

What the price calculation of a booking used, and what it resulted in

Endpoint: `https://api.bookingmood.com/v1/booking_price_snapshots`, supporting `GET`. Authenticate with the header `Authorization: Bearer YOUR_API_KEY` (see [authentication](https://www.bookingmood.com/lt-LT/api-reference/authentication.md)).

## The booking price snapshot object

| Attribute | Type | Description |
| --- | --- | --- |
| `id` | `uuid` | Unique identifier. |
| `booking_id` | `uuid` | Identifier of the related booking. |
| `organization_id` | `uuid` | Identifier of the related organization. |
| `created_at` | `timestamp with time zone` | Creation timestamp. Read-only: set by the database. |
| `engine_version` | `text \| null` | Commit of the code that made the calculation. |
| `inputs` | `jsonb` | The settings, dates and choices the calculation used, per calendar event. Holds no guest data. |
| `lines` | `jsonb` | The line items the calculation resulted in. |
| `reason` | `BookingPriceSnapshotReason` | What led to the calculation. |
| `total` | `int64` | Total of the booking after the calculation, in cents. |
| `total_before` | `int64 \| null` | Total of the booking before a recalculation, in cents. |

```json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "booking_id": "00000000-0000-0000-0000-000000000000",
  "organization_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2026-11-22T12:50:50.852Z",
  "engine_version": "",
  "inputs": {},
  "lines": {},
  "reason": "admin-create",
  "total": 0,
  "total_before": 0
}
```

### Types

```typescript
type BookingPriceSnapshotReason = "admin-create" | "checkout" | "recompute";
```

## List booking price snapshots

`GET /v1/booking_price_snapshots` · requires the `bookings:read` scope

Filter on any attribute with `column=operator.value` (see [filtering](https://www.bookingmood.com/lt-LT/api-reference/filtering.md)). Choose columns and embed related resources with `select` (see [selecting](https://www.bookingmood.com/lt-LT/api-reference/selecting.md)), and sort and paginate with `order`, `limit` and `offset` (see [sorting and pagination](https://www.bookingmood.com/lt-LT/api-reference/sorting-pagination.md)).

```bash
curl "https://api.bookingmood.com/v1/booking_price_snapshots?select=*&limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Responses:

- `200`: A list of booking price snapshots with the selected columns. `206` when the list is a partial range.
- `400`: The request is malformed, for example an unknown column or an invalid filter.
- `401`: The API key is missing or invalid.
- `403`: The API key or access token doesn't have the scope this request needs.
- `429`: The API key made more requests per minute than its rate limit allows. Retry after the number of seconds in the `Retry-After` header.

Errors have a JSON body with a `code`, `message`, `details` and `hint`. See the [introduction](https://www.bookingmood.com/lt-LT/api-reference.md) for more on errors. The full API is described by the OpenAPI spec at https://api.bookingmood.com/v1/openapi.json.
