> This page is for 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.

# Change Reservation Schedule

POST https://api.npretail.app/{tenant}/{environment}/{company}/ticket/reschedule/change
Content-Type: application/json

Moves reservation lines to new slots. Take `systemId`, `admissionCode` and `scheduleNumber` from [Find Reschedule Options](./rescheduleFind).

- Send at most 100 lines, with only the admissions that move. All lines move, or none do.
- Each changed line gets a new `systemId`. Call find again before the next change.
- BC takes no payment. If the guest pays for the move, authorize the payment first, then call change. Capture it after a `200` and cancel the authorization on any error. This way a guest never pays for a move that did not happen, for example when someone else changed the same line first.
- Errors:
  - `404`: wrong token or pin. Change accepts only `reservationToken`.
  - `400` `invalid_input`: a bad body.
  - `400` `invalid_reference`: a line, admission or slot is not valid any more, or another request is changing the reservation. Call find again.
  - `400` `capacity_exceeded`: the new slot has no capacity for the line.
  - `400` `reschedule_not_allowed`: an admission cannot move. The message names the line, the admission and the reason.
- E-ticket delivery errors do not fail a stored change. The answer is still `200`.

Reference: https://docs.navipartner.com/apis/api-reference/ticketing/service-ticket/reschedule-change

## Authentication

- `x-np-api-key` header (required) — API Key authentication via header

## Request

### Path parameters

- `tenant` (string, required) — Your Entra Tenant ID. [More details.](/paths#1-tenant)
- `environment` (string, required) — Your Business Central Environment. [More details.](/paths#2-environment)
- `company` (string, required) — Your Business Central Company. [More details.](/paths#3-company)

### Body (application/json)

This endpoint expects a RescheduleChangeRequest.

- `reservationToken` (string, required) — The original or a change token of the reservation.
- `pinCode` (string, required) — A pin code for the ticket, used to authorize rescheduling or revoking a confirmed ticket. Returned only for confirmed reservations. The format is configured per tenant, so do not validate it against a fixed length or pattern.
- `reservationLines` (list of RescheduleChangeLine, required) — 1 to 100 lines, each `systemId` once.

## Response

### 200

- `reservationLines` (list of RescheduleChangedLine, required)

## Errors

### 400 Bad Request Error

The request is invalid

- `code` (string, required) — A unique identifier for an error
- `message` (string, required) — A description of the error

### 404 Not Found Error

The requested resource was not found

- `code` (string, required) — A unique identifier for an error
- `message` (string, required) — A description of the error

## Types

### RescheduleChangeLine

- `systemId` (UUID, required) — The line's `systemId` from find.
- `admissions` (list of RescheduleChangeAdmission, required) — At least one admission, each code once. At least one slot must change.

### RescheduleChangedLine

- `systemId` (UUID, required) — The new `systemId` of the line.
- `itemNumber` (string, required) — An item or product number defined in the ticketing system
- `variantCode` (string, required)
- `quantity` (integer, required) — Quantity on the reservation line.
- `admissions` (list of RescheduleChangedAdmission, required) — Every admission of the line with its slot after the change.

### RescheduleChangeAdmission

- `admissionCode` (string, required) — A unique code that identifies a specific admission.
- `scheduleNumber` (integer, required) — A positive `scheduleNumber` from the admission's `slots` in find.

### RescheduleChangedAdmission

- `admissionCode` (string, required) — A unique code that identifies a specific admission.
- `endDate` (date, required)
- `endTime` (string, required)
- `scheduleNumber` (integer, required) — The ID of a specific time slot for a specific admission
- `startDate` (date, required)
- `startTime` (string, required)

## Examples

**Request**

```json
{
  "reservationToken": "ABC123456DEF789GHI",
  "pinCode": "1234-5678",
  "reservationLines": [
    {
      "systemId": "6f1c2a9e-3b4d-4e5f-8a7b-1c2d3e4f5a6b",
      "admissions": [
        {
          "admissionCode": "CASTLE",
          "scheduleNumber": 489
        }
      ]
    }
  ]
}
```

**Response**

```json
{
  "reservationLines": [
    {
      "systemId": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
      "itemNumber": "31001",
      "variantCode": "",
      "quantity": 2,
      "admissions": [
        {
          "admissionCode": "CASTLE",
          "endDate": "2026-06-02",
          "endTime": "11:00:00",
          "scheduleNumber": 489,
          "startDate": "2026-06-02",
          "startTime": "10:00:00"
        }
      ]
    }
  ]
}
```

**SDK Code**

```python Move one line to another slot
import requests

url = "https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./ticket/reschedule/change"

payload = {
    "reservationToken": "ABC123456DEF789GHI",
    "pinCode": "1234-5678",
    "reservationLines": [
        {
            "systemId": "6f1c2a9e-3b4d-4e5f-8a7b-1c2d3e4f5a6b",
            "admissions": [
                {
                    "admissionCode": "CASTLE",
                    "scheduleNumber": 489
                }
            ]
        }
    ]
}
headers = {
    "x-np-api-key": "<NaviPartner API Key>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Move one line to another slot
const url = 'https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./ticket/reschedule/change';
const options = {
  method: 'POST',
  headers: {'x-np-api-key': '<NaviPartner API Key>', 'Content-Type': 'application/json'},
  body: '{"reservationToken":"ABC123456DEF789GHI","pinCode":"1234-5678","reservationLines":[{"systemId":"6f1c2a9e-3b4d-4e5f-8a7b-1c2d3e4f5a6b","admissions":[{"admissionCode":"CASTLE","scheduleNumber":489}]}]}'
};

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

```go Move one line to another slot
package main

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

func main() {

	url := "https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./ticket/reschedule/change"

	payload := strings.NewReader("{\n  \"reservationToken\": \"ABC123456DEF789GHI\",\n  \"pinCode\": \"1234-5678\",\n  \"reservationLines\": [\n    {\n      \"systemId\": \"6f1c2a9e-3b4d-4e5f-8a7b-1c2d3e4f5a6b\",\n      \"admissions\": [\n        {\n          \"admissionCode\": \"CASTLE\",\n          \"scheduleNumber\": 489\n        }\n      ]\n    }\n  ]\n}")

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

	req.Header.Add("x-np-api-key", "<NaviPartner API Key>")
	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 Move one line to another slot
require 'uri'
require 'net/http'

url = URI("https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./ticket/reschedule/change")

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

request = Net::HTTP::Post.new(url)
request["x-np-api-key"] = '<NaviPartner API Key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"reservationToken\": \"ABC123456DEF789GHI\",\n  \"pinCode\": \"1234-5678\",\n  \"reservationLines\": [\n    {\n      \"systemId\": \"6f1c2a9e-3b4d-4e5f-8a7b-1c2d3e4f5a6b\",\n      \"admissions\": [\n        {\n          \"admissionCode\": \"CASTLE\",\n          \"scheduleNumber\": 489\n        }\n      ]\n    }\n  ]\n}"

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

```java Move one line to another slot
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./ticket/reschedule/change")
  .header("x-np-api-key", "<NaviPartner API Key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"reservationToken\": \"ABC123456DEF789GHI\",\n  \"pinCode\": \"1234-5678\",\n  \"reservationLines\": [\n    {\n      \"systemId\": \"6f1c2a9e-3b4d-4e5f-8a7b-1c2d3e4f5a6b\",\n      \"admissions\": [\n        {\n          \"admissionCode\": \"CASTLE\",\n          \"scheduleNumber\": 489\n        }\n      ]\n    }\n  ]\n}")
  .asString();
```

```php Move one line to another slot
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./ticket/reschedule/change', [
  'body' => '{
  "reservationToken": "ABC123456DEF789GHI",
  "pinCode": "1234-5678",
  "reservationLines": [
    {
      "systemId": "6f1c2a9e-3b4d-4e5f-8a7b-1c2d3e4f5a6b",
      "admissions": [
        {
          "admissionCode": "CASTLE",
          "scheduleNumber": 489
        }
      ]
    }
  ]
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-np-api-key' => '<NaviPartner API Key>',
  ],
]);

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

```csharp Move one line to another slot
using RestSharp;

var client = new RestClient("https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./ticket/reschedule/change");
var request = new RestRequest(Method.POST);
request.AddHeader("x-np-api-key", "<NaviPartner API Key>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"reservationToken\": \"ABC123456DEF789GHI\",\n  \"pinCode\": \"1234-5678\",\n  \"reservationLines\": [\n    {\n      \"systemId\": \"6f1c2a9e-3b4d-4e5f-8a7b-1c2d3e4f5a6b\",\n      \"admissions\": [\n        {\n          \"admissionCode\": \"CASTLE\",\n          \"scheduleNumber\": 489\n        }\n      ]\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Move one line to another slot
import Foundation

let headers = [
  "x-np-api-key": "<NaviPartner API Key>",
  "Content-Type": "application/json"
]
let parameters = [
  "reservationToken": "ABC123456DEF789GHI",
  "pinCode": "1234-5678",
  "reservationLines": [
    [
      "systemId": "6f1c2a9e-3b4d-4e5f-8a7b-1c2d3e4f5a6b",
      "admissions": [
        [
          "admissionCode": "CASTLE",
          "scheduleNumber": 489
        ]
      ]
    ]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.npretail.app/01234567-89ab-cdef-0123-456789abcdef/production/CRONUS%2520International%2520Ltd./ticket/reschedule/change")! 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()
```