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

# Find active tickets by email

GET https://api.entria.app/api/ticket/find

Looks up active tickets registered to an email — the rebooking check: is there anything to rebook before letting a change proceed. Blocked and expired tickets are excluded (BC’s `activeOnly`, pinned upstream rather than exposed as an option); already-admitted tickets are NOT excluded, so check admission state before treating a result as rebookable. No match is a 200 with an empty tickets array, not a 404.

Reference: https://docs.navipartner.com/entria-api/entria-api-reference/ticketing/get-find-ticket

## Authentication

- `Authorization` header (bearer token, required) — OAuth client token, for a partner backend only. A short-lived access token for endpoints that return personal data about any member. Obtain one from POST /oauth/token (RFC 7523 JWT-bearer), signing the assertion with the private key of the key pair registered for your store. Sent as `Authorization: Bearer <token>`. This is separate from the `x-entria` store header, which is still required.

## Request

### Query parameters

- `email` (string, required) — Email address to look up active tickets for

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

Active tickets found by an email — expired and already-consumed tickets are excluded, so an empty list does not mean the email never had tickets

- `tickets` (list of ApiTicketFindGetResponsesContentApplicationJsonSchemaTicketsItems, required)

## Errors

### 400 Bad Request Error

Invalid request — email query param is missing or not a valid address

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

Missing or invalid access token

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

### 403 Forbidden Error

Access token not valid for this store, or API auth not enabled

- `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 — rate limit exceeded

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

BC's response did not match the expected 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

Upstream Business Central failure or misconfiguration. Deliberately 502, not 400 as on /api/members — this is not the caller’s fault.

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

Business Central is not configured for this store (`code: BC_NOT_CONFIGURED`), or API auth is not configured for this store (no `code`)

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

### ApiTicketFindGetResponsesContentApplicationJsonSchemaTicketsItems

- `ticketId` (string, required)
- `ticketNumber` (string, required)
- `ticketKind` (string, required) — BC ticket kind, e.g. individualAdmission, groupAdmission. Not an enum: a new BC kind must not 502 this endpoint.
- `reservationToken` (string, optional, nullable)
- `itemNumber` (string, optional, nullable)
- `validFrom` (string, optional, nullable) — ISO 8601 UTC, e.g. 2024-10-15T00:00:00Z
- `validUntil` (string, optional, nullable) — ISO 8601 UTC, e.g. 2025-10-14T23:59:59Z
- `issuedAt` (string, optional, nullable) — ISO 8601 UTC, e.g. 2024-10-15T12:13:00Z
- `blocked` (boolean, optional, nullable)
- `unitPrice` (double, optional, nullable) — Major units, e.g. 10.5 for $10.50
- `unitPriceInclVat` (double, optional, nullable) — Major units, e.g. 10.5 for $10.50
- `currencyCode` (string, optional, nullable)
- `ticketHolder` (string, optional, nullable)
- `ticketHolderLanguage` (string, optional, nullable)
- `notificationAddress` (string, optional, nullable)
- `printCount` (double, optional, nullable)
- `printedAt` (string, optional, nullable) — ISO 8601 UTC, e.g. 2024-10-15T12:13:00Z
- `admissionEntitlements` (double, optional, nullable) — Typically present for ticketKind: groupAdmission
- `description` (ApiTicketFindGetResponsesContentApplicationJsonSchemaTicketsItemsDescription, optional, nullable)

### ErrorResponseDetailsItems

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

### ApiTicketFindGetResponsesContentApplicationJsonSchemaTicketsItemsDescription

- `title` (string, optional, nullable)
- `subtitle` (string, optional, nullable)
- `name` (string, optional, nullable)
- `description` (string, optional, nullable)
- `fullDescription` (string, optional, nullable)

## Examples

**Response**

```json
{
  "tickets": [
    {
      "ticketId": "string",
      "ticketNumber": "string",
      "ticketKind": "string",
      "reservationToken": "string",
      "itemNumber": "string",
      "validFrom": "string",
      "validUntil": "string",
      "issuedAt": "string",
      "blocked": true,
      "unitPrice": 1.1,
      "unitPriceInclVat": 1.1,
      "currencyCode": "string",
      "ticketHolder": "string",
      "ticketHolderLanguage": "string",
      "notificationAddress": "string",
      "printCount": 1.1,
      "printedAt": "string",
      "admissionEntitlements": 1.1,
      "description": {
        "title": "string",
        "subtitle": "string",
        "name": "string",
        "description": "string",
        "fullDescription": "string"
      }
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.entria.app/api/ticket/find"

querystring = {"email":"shopper@example.com"}

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

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

print(response.json())
```

```javascript
const url = 'https://api.entria.app/api/ticket/find?email=shopper%40example.com';
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/ticket/find?email=shopper%40example.com"

	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/ticket/find?email=shopper%40example.com")

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/ticket/find?email=shopper%40example.com")
  .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/ticket/find?email=shopper%40example.com', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'x-entria' => 'x-entria',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.entria.app/api/ticket/find?email=shopper%40example.com");
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/ticket/find?email=shopper%40example.com")! 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()
```