> This page is for Entria API Reference.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.navipartner.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.navipartner.com/_mcp/server.

# List the times a booking can move to

GET https://api.entria.app/api/account/bookings/{reservationToken}/schedule

The times the whole booking can move to, read live from Business Central (not the catalog schedule). A time is listed only when every part of the booking can go there. `from` defaults to today and `to` to a month after `from`; the window is at most 62 days, so page through months for a longer calendar. Times are local to the venue. Nothing is held: a listed time can be gone by the time it is chosen. Requires the account token.

Reference: https://docs.navipartner.com/entria-api/entria-api-reference/rebooking/get-get-account-booking-schedule

## Authentication

- `Authorization` header (bearer token, required) — Account token, browser-safe. Obtain one from POST /api/account/session with the 6-digit code POST /api/account/login emailed to the shopper; valid 30 minutes, for one store and one proven email, and it reads only that account’s own data. Sent as `Authorization: Bearer <token>`. Not interchangeable with the BearerAuth client token in either direction.

## Request

### Path parameters

- `reservationToken` (string, required) — From `GET /api/account/bookings`.

### Query parameters

- `from` (string, optional) — First date, YYYY-MM-DD. Defaults to today.
- `to` (string, optional) — Last date, YYYY-MM-DD, at most 62 days after `from`. Defaults to `from` plus one month.

### Headers

- `x-entria` (string, required) — Identifies which store this request is for. Required on every store-scoped route. It is not authentication and not a secret — it grants no privileges and is safe to send from a browser. You receive the value once your Entria backend has been created and configured. Missing header returns 400; an unknown store returns 404.

## Response

### 200

The booking’s current time and the times it can move to.

- `reservationToken` (string, required)
- `current` (ApiAccountBookingsReservationTokenScheduleGetResponsesContentApplicationJsonSchemaCurrent, required, nullable)
- `slots` (list of ApiAccountBookingsReservationTokenScheduleGetResponsesContentApplicationJsonSchemaSlotsItems, required)

## Errors

### 400 Bad Request Error

Invalid dates (`code: INVALID_WINDOW`), or an invalid request.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 401 Unauthorized Error

No usable account token (`code: ACCOUNT_TOKEN_INVALID`): the `Authorization: Bearer` is missing, is not an account token (a `POST /oauth/token` client token is not one), or is expired, not yet valid or minted for another store. Log the shopper in again with `POST /api/account/login`.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 404 Not Found Error

Not one of this account’s bookings (`code: BOOKING_NOT_FOUND`), or email login is not enabled for this store (`code: ACCOUNT_LOGIN_DISABLED`).

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 409 Conflict Error

The booking cannot move any more (`code: BOOKING_NOT_RESCHEDULABLE`, with `reasons`). Reload the list.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 429 Too Many Requests Error

Too many requests from this client.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 500 Internal Server Error

Business Central answered in an unexpected shape (`code: BC_RESPONSE_INVALID`) — not retryable.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 502 Bad Gateway Error

Business Central could not be reached — safe to retry.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

### 503 Service Unavailable Error

Email login is switched on but cannot run: Business Central is not configured for the store (`code: BC_NOT_CONFIGURED`), or this service is missing its token configuration (`code: ACCOUNT_LOGIN_NOT_CONFIGURED`). Neither depends on the email.

- `error` (string, required)
- `code` (string, optional)
- `details` (list of ErrorResponseDetailsItems, optional) — Per-field validation failures; present when code is VALIDATION_ERROR.
- `success` (boolean, optional, deprecated) — Deprecated. Use code === VALIDATION_ERROR.
- `errors` (list of any, optional, deprecated) — Deprecated. Raw zod issues; use details instead.

## Types

### ApiAccountBookingsReservationTokenScheduleGetResponsesContentApplicationJsonSchemaCurrent

- `startDate` (string, required) — Local to the venue, YYYY-MM-DD
- `startTime` (string, required) — Local to the venue, HH:MM:SS
- `endDate` (string, required)
- `endTime` (string, required)

### ApiAccountBookingsReservationTokenScheduleGetResponsesContentApplicationJsonSchemaSlotsItems

- `startDate` (string, required) — Local to the venue, YYYY-MM-DD
- `startTime` (string, required) — Local to the venue, HH:MM:SS
- `endDate` (string, required)
- `endTime` (string, required)
- `remainingCapacity` (double, required, nullable) — Places left; null when the time has no capacity limit.

### ErrorResponseDetailsItems

- `path` (string, required)
- `message` (string, required)

## Examples

**Response**

```json
{
  "reservationToken": "string",
  "current": {
    "startDate": "string",
    "startTime": "string",
    "endDate": "string",
    "endTime": "string"
  },
  "slots": [
    {
      "startDate": "string",
      "startTime": "string",
      "endDate": "string",
      "endTime": "string",
      "remainingCapacity": 1.1
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.entria.app/api/account/bookings/reservationToken/schedule"

headers = {
    "x-entria": "x-entria",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.entria.app/api/account/bookings/reservationToken/schedule';
const options = {
  method: 'GET',
  headers: {'x-entria': 'x-entria', Authorization: 'Bearer <token>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.entria.app/api/account/bookings/reservationToken/schedule"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-entria", "x-entria")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.entria.app/api/account/bookings/reservationToken/schedule")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-entria"] = 'x-entria'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.entria.app/api/account/bookings/reservationToken/schedule")
  .header("x-entria", "x-entria")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.entria.app/api/account/bookings/reservationToken/schedule', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'x-entria' => 'x-entria',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.entria.app/api/account/bookings/reservationToken/schedule");
var request = new RestRequest(Method.GET);
request.AddHeader("x-entria", "x-entria");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-entria": "x-entria",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.entria.app/api/account/bookings/reservationToken/schedule")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```