> 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.

# Move a booking to another time

POST https://api.entria.app/api/account/bookings/{reservationToken}/reschedule
Content-Type: application/json

Moves the whole booking — every ticket on it — to the time that starts at `startDate` + `startTime`, one of the `slots` from the schedule call. All of it moves or none of it does; tickets, quantities and price stay as they are, and no new order or receipt is created. No email is sent: show the answer as the confirmation; the shopper’s existing e-tickets show the new time from now on. Choosing the current time changes nothing and answers 200. Requires the account token.

Reference: https://docs.navipartner.com/entria-api/entria-api-reference/rebooking/post-reschedule-account-booking

## 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`.

### 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.

### Body (application/json)

This endpoint expects an object.

- `startDate` (string, required)
- `startTime` (string, required)

## Response

### 200

The move is done: the booking at its new time, in the same shape as in the list — the data for a success page. Its `reservationToken` usually differs from the one in the path: use the new one from now on.

- `reservationToken` (string, required) — Identifies the booking in the schedule and reschedule calls. It changes when the booking moves: take it from the latest list or reschedule answer.
- `visit` (ApiAccountBookingsReservationTokenReschedulePostResponsesContentApplicationJsonSchemaVisit, required, nullable) — The current time. Null when parts of the booking sit at different times.
- `lines` (list of ApiAccountBookingsReservationTokenReschedulePostResponsesContentApplicationJsonSchemaLinesItems, required)
- `reschedulable` (boolean, required) — Whether the booking can be moved now. Only these open the schedule and reschedule calls.
- `reasons` (list of ApiAccountBookingsReservationTokenReschedulePostResponsesContentApplicationJsonSchemaReasonsItems, required) — Why it cannot move; empty when it can. `reasonCode` is `MIXED_TIMES` (parts of the booking are at different times, so it cannot move as one), or the ticketing system’s own code: `CUTOFF_PASSED`, `ALREADY_ADMITTED`, `SLOT_PASSED`, `TICKET_BLOCKED`, `TICKET_EXPIRED`, `NOT_CONFIGURED`, `NOT_ALLOWED` and others it adds. Can be empty for a booking that cannot move, when the system gave no reason.

## Errors

### 400 Bad Request Error

The request body is invalid.

- `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

Nothing moved. `SLOT_UNAVAILABLE`: that time is full or gone — reload the schedule and choose again. `BOOKING_NOT_RESCHEDULABLE`: the booking cannot move any more — 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

### ApiAccountBookingsReservationTokenReschedulePostResponsesContentApplicationJsonSchemaVisit

The current time. Null when parts of the booking sit at different times.

- `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)

### ApiAccountBookingsReservationTokenReschedulePostResponsesContentApplicationJsonSchemaLinesItems

- `itemNumber` (string, required, nullable)
- `title` (string, required, nullable)
- `quantity` (double, required, nullable)

### ApiAccountBookingsReservationTokenReschedulePostResponsesContentApplicationJsonSchemaReasonsItems

- `admissionCode` (string, required)
- `reasonCode` (string, required)

### ErrorResponseDetailsItems

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

## Examples

**Request**

```json
{
  "startDate": "string",
  "startTime": "string"
}
```

**Response**

```json
{
  "reservationToken": "string",
  "visit": {
    "startDate": "string",
    "startTime": "string",
    "endDate": "string",
    "endTime": "string"
  },
  "lines": [
    {
      "itemNumber": "string",
      "title": "string",
      "quantity": 1.1
    }
  ],
  "reschedulable": true,
  "reasons": [
    {
      "admissionCode": "string",
      "reasonCode": "string"
    }
  ]
}
```

**SDK Code**

```python
import requests

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

payload = {
    "startDate": "string",
    "startTime": "string"
}
headers = {
    "x-entria": "x-entria",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.entria.app/api/account/bookings/reservationToken/reschedule';
const options = {
  method: 'POST',
  headers: {
    'x-entria': 'x-entria',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"startDate":"string","startTime":"string"}'
};

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"
	"strings"
	"net/http"
	"io"
)

func main() {

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

	payload := strings.NewReader("{\n  \"startDate\": \"string\",\n  \"startTime\": \"string\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-entria", "x-entria")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	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/reschedule")

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

request = Net::HTTP::Post.new(url)
request["x-entria"] = 'x-entria'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"startDate\": \"string\",\n  \"startTime\": \"string\"\n}"

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.post("https://api.entria.app/api/account/bookings/reservationToken/reschedule")
  .header("x-entria", "x-entria")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"startDate\": \"string\",\n  \"startTime\": \"string\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.entria.app/api/account/bookings/reservationToken/reschedule', [
  'body' => '{
  "startDate": "string",
  "startTime": "string"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'x-entria' => 'x-entria',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.entria.app/api/account/bookings/reservationToken/reschedule");
var request = new RestRequest(Method.POST);
request.AddHeader("x-entria", "x-entria");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"startDate\": \"string\",\n  \"startTime\": \"string\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-entria": "x-entria",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "startDate": "string",
  "startTime": "string"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

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

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()
```