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

# Get Invoice Event Attendee Line

# Get Invoice Event Attendee Line

Returns the `EventAttendee` record linked to a specific invoice line. This endpoint is used to enrich invoice lines that originate from an event ticket purchase, providing event name, product pricing, and attendee details.

## Authentication

This endpoint requires an authenticated customer session.

## Path Parameters

<ParamField path="invoiceId" type="number" required>
  The unique identifier of the parent invoice.
</ParamField>

<ParamField path="attendeeUniqueId" type="string" required>
  The `UniqueId` of the event attendee record associated with the invoice line. Available on the invoice line as `EventAttendeeUniqueId`.
</ParamField>

## Query Parameters

<ParamField query="_shape" type="string">
  Comma-separated list of field paths to include in the response. When provided, only the
  specified fields are returned — useful for reducing payload size. Supports nested paths
  using dot notation. Example: `_shape=Attendee.FullName,Attendee.EventProductName,Attendee.CalendarEvent.Name`.
</ParamField>

## Response

Returns an `EventAttendee` object.

<ResponseField name="CalendarEventId" type="number">
  ID of the calendar event the attendee signed up for.
</ResponseField>

<ResponseField name="EventProductId" type="number">
  ID of the event product (ticket type) purchased.
</ResponseField>

<ResponseField name="FullName" type="string">
  Full name of the attendee.
</ResponseField>

<ResponseField name="Email" type="string">
  Email address of the attendee.
</ResponseField>

<ResponseField name="CalendarEventName" type="string">
  Display name of the event.
</ResponseField>

<ResponseField name="EventProductName" type="string">
  Name of the ticket type or event product purchased.
</ResponseField>

<ResponseField name="EventProductPrice" type="string">
  Price of the event product as a formatted string.
</ResponseField>

<ResponseField name="EventProductCurrencyCode" type="string">
  ISO 4217 currency code for the event product price.
</ResponseField>

<ResponseField name="CoworkerId" type="number">
  ID of the customer who purchased the ticket (if applicable).
</ResponseField>

<ResponseField name="CoworkerFullName" type="string">
  Full name of the customer (if applicable).
</ResponseField>

<ResponseField name="CoworkerInvoiceNumber" type="string">
  Invoice number associated with the purchase (if applicable).
</ResponseField>

<ResponseField name="CoworkerInvoicePaid" type="string">
  Whether the associated invoice has been paid (if applicable).
</ResponseField>

<ResponseField name="UniqueId" type="string">
  Globally unique identifier for the attendee record.
</ResponseField>

## Example Response

```json theme={null}
{
  "CalendarEventId": 201,
  "EventProductId": 55,
  "FullName": "Jane Smith",
  "Email": "jane.smith@example.com",
  "CalendarEventName": "Monthly Networking Meetup",
  "EventProductName": "General Admission",
  "EventProductPrice": "$25.00",
  "EventProductCurrencyCode": "USD",
  "CoworkerId": 987,
  "CoworkerFullName": "Jane Smith",
  "CoworkerInvoiceNumber": "INV-2025-000124",
  "CoworkerInvoicePaid": "false",
  "UniqueId": "f1e2d3c4-b5a6-7890-cdef-1234567890ab"
}
```

## Usage in Portal

Used to render event/ticket details in invoice line rows within the basket and invoice summary.

* File: `src/components/Basket/invoiceLines/EventAttendeeInvoiceLineRow.tsx`

### Typical integration pattern

```ts theme={null}
// From src/api/endpoints.ts
// endpoints.billing.invoices.attendee = (invoiceId: number, attendeeUniqueId: string) => ({
//   url: `/api/public/billing/invoices/${invoiceId}/attendees/${attendeeUniqueId}`,
//   type: null as unknown as EventAttendee,
// })

// Usage in React
const endpoint = endpoints.billing.invoices.attendee(invoice.Id, line.EventAttendeeUniqueId)
const { resource: attendee } = useData<typeof endpoint.type>(httpClient, endpoint.url)
```

## Related Endpoints

* `GET /api/public/billing/invoices/{invoiceId}` – Get full invoice details
* `GET /api/public/events/{id}` – Get event details

## Error Responses

<ResponseField name="401 Unauthorized" type="error">
  The current user is not authenticated or does not have access to this invoice.
</ResponseField>

<ResponseField name="404 Not Found" type="error">
  The invoice or attendee record does not exist.
</ResponseField>
