> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search EventProducts

> Search and list EventProduct records with filtering, sorting, and pagination.

## Authentication

<Note>
  This endpoint requires OAuth2 authentication. Include a valid bearer token in the `Authorization` header.
  The authenticated user must be a full unrestricted administrator or have the **`EventProduct-List`** role.
</Note>

## Query Parameters

### Pagination & Sorting

<ParamField query="page" type="integer" default="1">
  The page number to retrieve.
</ParamField>

<ParamField query="size" type="integer" default="25">
  The number of records per page.
</ParamField>

<ParamField query="orderBy" type="string">
  The property name to sort results by (e.g. `Name`, `CreatedOn`).
</ParamField>

<ParamField query="dir" type="integer">
  Sort direction. `0` for ascending, `1` for descending.
</ParamField>

### Filters

<ParamField query="EventProduct_CalendarEvent" type="integer">
  Filter by Calendar Event Id.
</ParamField>

<ParamField query="EventProduct_Name" type="string">
  Filter by Name.
</ParamField>

<ParamField query="EventProduct_Description" type="string">
  Filter by Description.
</ParamField>

<ParamField query="EventProduct_TicketNotes" type="string">
  Filter by Ticket Notes.
</ParamField>

<ParamField query="EventProduct_Visible" type="boolean">
  Filter by Visible.
</ParamField>

<ParamField query="EventProduct_DisplayOrder" type="integer">
  Filter by Display Order.
</ParamField>

<ParamField query="EventProduct_StartDate" type="string">
  Filter by Start Date.
</ParamField>

<ParamField query="EventProduct_EndDate" type="string">
  Filter by End Date.
</ParamField>

<ParamField query="EventProduct_Allocation" type="integer">
  Filter by Allocation.
</ParamField>

<ParamField query="EventProduct_MaxTicketsPerAttendee" type="integer">
  Filter by Max Tickets Per Attendee.
</ParamField>

<ParamField query="EventProduct_Sales" type="integer">
  Filter by Sales.
</ParamField>

<ParamField query="EventProduct_Price" type="number">
  Filter by Price.
</ParamField>

<ParamField query="EventProduct_Currency" type="integer">
  Filter by Currency Id.
</ParamField>

<ParamField query="EventProduct_Currency_Code" type="string">
  Filter by Currency Code.
</ParamField>

<ParamField query="EventProduct_TaxRate" type="integer">
  Filter by Tax Rate Id.
</ParamField>

<ParamField query="EventProduct_FinancialAccount" type="integer">
  Filter by Financial Account Id.
</ParamField>

<ParamField query="EventProduct_OnlyForContacts" type="boolean">
  Filter by Only For Contacts.
</ParamField>

<ParamField query="EventProduct_OnlyForMembers" type="boolean">
  Filter by Only For Members.
</ParamField>

### Range Filters

<ParamField query="from_EventProduct_DisplayOrder" type="integer">
  Filter by display order greater than or equal to this value.
</ParamField>

<ParamField query="to_EventProduct_DisplayOrder" type="integer">
  Filter by display order less than or equal to this value.
</ParamField>

<ParamField query="from_EventProduct_StartDate" type="string">
  Filter by start date greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_EventProduct_StartDate" type="string">
  Filter by start date less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_EventProduct_EndDate" type="string">
  Filter by end date greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_EventProduct_EndDate" type="string">
  Filter by end date less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_EventProduct_Allocation" type="integer">
  Filter by allocation greater than or equal to this value.
</ParamField>

<ParamField query="to_EventProduct_Allocation" type="integer">
  Filter by allocation less than or equal to this value.
</ParamField>

<ParamField query="from_EventProduct_MaxTicketsPerAttendee" type="integer">
  Filter by max tickets per attendee greater than or equal to this value.
</ParamField>

<ParamField query="to_EventProduct_MaxTicketsPerAttendee" type="integer">
  Filter by max tickets per attendee less than or equal to this value.
</ParamField>

<ParamField query="from_EventProduct_Sales" type="integer">
  Filter by sales greater than or equal to this value.
</ParamField>

<ParamField query="to_EventProduct_Sales" type="integer">
  Filter by sales less than or equal to this value.
</ParamField>

<ParamField query="from_EventProduct_Price" type="number">
  Filter by price greater than or equal to this value.
</ParamField>

<ParamField query="to_EventProduct_Price" type="number">
  Filter by price less than or equal to this value.
</ParamField>

<ParamField query="from_EventProduct_CreatedOn" type="string">
  Filter records created on or after this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_EventProduct_CreatedOn" type="string">
  Filter records created on or before this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_EventProduct_UpdatedOn" type="string">
  Filter records updated on or after this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_EventProduct_UpdatedOn" type="string">
  Filter records updated on or before this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

## Code Examples

### Simple listing

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/content/eventproducts?page=1&size=15&orderBy=Name&dir=0" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/content/eventproducts?' + new URLSearchParams({
      page: 1,
      size: 15,
      orderBy: 'Name',
      dir: 1 // Ascending
    }),
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://spaces.nexudus.com/api/content/eventproducts',
      params={
          'page': 1,
          'size': 15,
          'orderBy': 'Name',
          'dir': 0 // Ascending
      },
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

  data = response.json()
  ```
</CodeGroup>

### Filtering by Name

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/content/eventproducts?EventProduct_Name=example-value&orderBy=Name&dir=0" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/content/eventproducts?' + new URLSearchParams({
      EventProduct_Name: 'example-value',
      orderBy: 'Name',
      dir: 1
    }),
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://spaces.nexudus.com/api/content/eventproducts',
      params={
          'EventProduct_Name': 'example-value',
          'orderBy': 'Name',
          'dir': 0 // Ascending
      },
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

  data = response.json()
  ```
</CodeGroup>

### Range filters

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/content/eventproducts?from_EventProduct_UpdatedOn=2025-01-01T00:00&to_EventProduct_UpdatedOn=2025-12-31T23:59&orderBy=UpdatedOn&dir=0" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/content/eventproducts?' + new URLSearchParams({
      from_EventProduct_UpdatedOn: '2025-01-01T00:00',
      to_EventProduct_UpdatedOn: '2025-12-31T23:59',
      orderBy: 'UpdatedOn',
      dir: 1 // Descending
     }),
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://spaces.nexudus.com/api/content/eventproducts',
      params={
          'from_EventProduct_UpdatedOn': '2025-01-01T00:00',
          'to_EventProduct_UpdatedOn': '2025-12-31T23:59',
          'orderBy': 'UpdatedOn',
          'dir': 1 // Descending
      },
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

  data = response.json()
  ```
</CodeGroup>

## Response

### 200

<ResponseField name="Records" type="EventProduct[]">
  The list of EventProduct records matching the query. See the [Get one EventProduct](/rest-api/content/get-eventproducts-by-id) endpoint for the full list of properties returned for each record.
</ResponseField>

<Warning>
  **Partial records** — The listing endpoint returns a summary representation of each EventProduct. The following fields are **not populated** in the `Records[]` response: `Description`, `TicketNotes`, `Visible`, `DisplayOrder`, `OnlyForContacts`, `OnlyForMembers`.

  To get all fields, fetch the full record using the [Get one EventProduct](/rest-api/content/get-eventproducts-by-id) endpoint.

  **Important for updates:** When updating a record via `PUT`, always retrieve the full record with a `GET` request first, apply your changes to that complete data, and then send the updated record. Do not use data from a listing response as the base for a `PUT` request, as missing fields may be unintentionally cleared.
</Warning>

<ResponseField name="CurrentPage" type="integer">
  Current page number.
</ResponseField>

<ResponseField name="CurrentPageSize" type="integer">
  Number of records per page.
</ResponseField>

<ResponseField name="CurrentOrderField" type="string">
  The field used for sorting.
</ResponseField>

<ResponseField name="CurrentSortDirection" type="integer">
  The sort direction (`0` = ascending, `1` = descending).
</ResponseField>

<ResponseField name="FirstItem" type="integer">
  Index of the first item on the current page.
</ResponseField>

<ResponseField name="LastItem" type="integer">
  Index of the last item on the current page.
</ResponseField>

<ResponseField name="TotalItems" type="integer">
  Total number of matching records across all pages.
</ResponseField>

<ResponseField name="TotalPages" type="integer">
  Total number of pages.
</ResponseField>

<ResponseField name="HasNextPage" type="boolean">
  Whether there is a next page of results.
</ResponseField>

<ResponseField name="HasPreviousPage" type="boolean">
  Whether there is a previous page of results.
</ResponseField>

```json Example Response theme={null}
{
  "Records": [
    {
      "CalendarEventId": 0,
      "Name": "",
      "StartDate": "2025-01-15T10:30:00Z",
      "EndDate": "2025-01-15T10:30:00Z",
      "Allocation": null,
      "MaxTicketsPerAttendee": null,
      "Sales": null,
      "Price": 0,
      "CurrencyId": 0,
      "CurrencyCode": null,
      "TaxRateId": null,
      "FinancialAccountId": null,
      "Tariffs": [],
      "Id": 87654321,
      "UpdatedOn": "2025-01-15T10:30:00Z",
      "CreatedOn": "2025-01-10T08:00:00Z",
      "UniqueId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "UpdatedBy": "admin@example.com",
      "IsNew": false,
      "SystemId": null,
      "ToStringText": "EventProduct Example",
      "LocalizationDetails": null,
      "CustomFields": null
    }
  ],
  "CurrentPageSize": 15,
  "CurrentPage": 1,
  "CurrentOrderField": "Name",
  "CurrentSortDirection": 1,
  "FirstItem": 1,
  "HasNextPage": false,
  "HasPreviousPage": false,
  "LastItem": 1,
  "PageNumber": 1,
  "PageSize": 15,
  "TotalItems": 1,
  "TotalPages": 1
}
```
