# TicketType

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/objects/ticket-type


const [open, setOpen] = useState(startOpen);
  return (
    <details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
      <summary
        onClick={(e) => {
          e.preventDefault();
          setOpen((open) => !open);
        }}
        style={{ listStyle:'none' }}
      >
      {open ? dataOpen : dataClose}
      </summary>
      {open && children}
    </details>
  );
};

No description

```graphql
type TicketType {
  id: ID!
  name: String!
  quantity: Int
  description: String
  startsAt: DateTime!
  endsAt: DateTime!
  translations: [TicketTypeTranslation!]!
  ticketsSold: Int!
  isSoldOut: Boolean!
  eventGroup: EventGroup!
  isVisible: Boolean!
  priceCents: Int
  priceCentsFormatted: String
  priceCentsFormated: String @deprecated
}
```

### Fields

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>id</b></code>](#)<Bullet />[`ID!`](/organizer/content-api/graphql-event-api-schema/scalars/id) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>name</b></code>](#)<Bullet />[`String!`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>quantity</b></code>](#)<Bullet />[`Int`](/organizer/content-api/graphql-event-api-schema/scalars/int) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>description</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>startsAt</b></code>](#)<Bullet />[`DateTime!`](/organizer/content-api/graphql-event-api-schema/scalars/date-time) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>endsAt</b></code>](#)<Bullet />[`DateTime!`](/organizer/content-api/graphql-event-api-schema/scalars/date-time) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>translations</b></code>](#)<Bullet />[`[TicketTypeTranslation!]!`](/organizer/content-api/graphql-event-api-schema/objects/ticket-type-translation) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>ticketsSold</b></code>](#)<Bullet />[`Int!`](/organizer/content-api/graphql-event-api-schema/scalars/int) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>isSoldOut</b></code>](#)<Bullet />[`Boolean!`](/organizer/content-api/graphql-event-api-schema/scalars/boolean) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>eventGroup</b></code>](#)<Bullet />[`EventGroup!`](/organizer/content-api/graphql-event-api-schema/objects/event-group) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>isVisible</b></code>](#)<Bullet />[`Boolean!`](/organizer/content-api/graphql-event-api-schema/scalars/boolean) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>priceCents</b></code>](#)<Bullet />[`Int`](/organizer/content-api/graphql-event-api-schema/scalars/int) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>priceCentsFormatted</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>TicketType.<b>priceCentsFormated</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--deprecated badge--secondary" text="deprecated"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> :::caution DEPRECATED
> User priceCentsFormatted instead
> :::
> 
> 
> 

### Member Of

[`BadgeBarcode`](/organizer/content-api/graphql-event-api-schema/objects/badge-barcode)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`CreateTicketTypePayload`](/organizer/content-api/graphql-event-api-schema/objects/create-ticket-type-payload)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`Event`](/organizer/content-api/graphql-event-api-schema/objects/event)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`Registration`](/organizer/content-api/graphql-event-api-schema/objects/registration)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`UpdateTicketTypePayload`](/organizer/content-api/graphql-event-api-schema/objects/update-ticket-type-payload)  <Badge class="badge badge--secondary" text="object"/>
