Eventjet GraphQL API documentation

cart

The cart after applying the discount code.

Arguments

cart doesn't take any arguments.

Type

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

FieldDescriptionType
appliedCodesThe discount codes that have been applied to the cart.[ String! ]
checkoutOptionsGet checkout options data for the cart.[ KeyValuePair! ]!
checkoutOptionsFormElementsGet checkout options form elements for cart.[ FormElement! ]!
customerDataCustomer data applied to this cart via `applyCustomerDataToCart`, if any. Null if no customer data has been provided yet.CustomerData
customerDataIsValidWhether the current customer data passes all validation rules.Boolean!
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! ]!