Eventjet GraphQL API documentation

cart

Get a cart by its ID (Cart.id).

Example:

query GetCart($id: ID!) {
  cart(id: $id) {
    id
  }
}
query GetCart($id: ID!) {
  cart(id: $id) {
    id
  }
}

To create a new cart, use one of the following mutations:

Resolves to null if no cart with the given ID exists.

If a cart is expired, it is still returned. However, the cart's Cart.expires field will be in the past.

Arguments

ArgumentDescriptionType
idID!

Type

This field resolves to Cart, which has the following fields:

FieldDescriptionType
appliedCodesThe discount codes that have been applied to the cart.[ String! ]
customerDataCustomerData
customerDataIsValidBoolean!
events[ Event! ]!
expiresDate!
grandTotalMoney!
hasDiscountsBoolean!
idID!
isEmptyBoolean!
itemGroupsThe cart items grouped by context, such as the event they belong to.[ CartItemGroup! ]!
itemsA flat list of all items in the cart.[ CartItem! ]!
numberOfEventsInt!
numberOfItemsThe number of items the customer has added to their cart. Does *not* include items that were added automatically, like free giveaways or fees.Int!
paymentMethodsThe payment methods that are available for the cart.[ PaymentMethod ]
ticketHolderForms[ TicketHolderForm! ]!
ticketHolders[ CartTicketHolder! ]!
checkoutOptionsFormElementsGet checkout options form elements for cart.[ FormElement! ]!
checkoutOptionsGet checkout options data for the cart.[ KeyValuePair! ]!