🚨 Announcing Vendure v2 Beta

Types

ActiveOrderResult

union ActiveOrderResult = Order | NoActiveOrderError

AddPaymentToOrderResult

Address

Adjustment

AlreadyLoggedInError

Returned when attempting to set the Customer for an Order when already logged in.

ApplyCouponCodeResult

Asset

AssetList

AuthenticationMethod

AuthenticationResult

union AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError

Boolean

The Boolean scalar type represents true or false.

BooleanCustomFieldConfig

Channel

Collection

CollectionBreadcrumb

CollectionList

CollectionResult

Which Collections are present in the products returned by the search, and in what quantity.

CollectionTranslation

ConfigArg

ConfigArgDefinition

ConfigurableOperation

ConfigurableOperationDefinition

Coordinate

Country

CountryList

CountryTranslation

CouponCodeExpiredError

Returned if the provided coupon code is invalid

CouponCodeInvalidError

Returned if the provided coupon code is invalid

CouponCodeLimitError

Returned if the provided coupon code is invalid

CurrentUser

CurrentUserChannel

CustomFieldConfig

Customer

CustomerGroup

CustomerList

DateTime

A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the date-time format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.

DateTimeCustomFieldConfig

Expects the same validation formats as the <input type="datetime-local"> HTML element. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes

DeletionResponse

Discount

EmailAddressConflictError

Returned when attempting to create a Customer with an email address already registered to an existing User.

Facet

FacetList

FacetTranslation

FacetValue

FacetValueResult

Which FacetValues are present in the products returned by the search, and in what quantity.

FacetValueTranslation

Float

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

FloatCustomFieldConfig

Fulfillment

FulfillmentLineSummary

HistoryEntry

HistoryEntryList

ID

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

IdentifierChangeTokenExpiredError

Returned if the token used to change a Customer’s email address is valid, but has expired according to the verificationTokenDuration setting in the AuthOptions.

IdentifierChangeTokenInvalidError

Returned if the token used to change a Customer’s email address is either invalid or does not match any expected tokens.

IneligiblePaymentMethodError

Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible.

IneligibleShippingMethodError

Returned when attempting to set a ShippingMethod for which the Order is not eligible

InsufficientStockError

Returned when attempting to add more items to the Order than are available

Int

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

IntCustomFieldConfig

InvalidCredentialsError

Returned if the user authentication credentials are not valid

JSON

The JSON scalar type represents JSON values as specified by ECMA-404.

LocaleStringCustomFieldConfig

LocalizedString

MissingPasswordError

Returned when attempting to register or verify a customer account without a password, when one is required.

NativeAuthStrategyError

Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured.

NativeAuthenticationResult

NegativeQuantityError

Returned when attempting to set a negative OrderLine quantity.

NoActiveOrderError

Returned when invoking a mutation which depends on there being an active Order on the current session.

NotVerifiedError

Returned if authOptions.requireVerification is set to true (which is the default) and an unverified user attempts to authenticate.

Order

  • id: ID!
  • createdAt: DateTime!
  • updatedAt: DateTime!
  • // The date & time that the Order was placed, i.e. the Customer completed the checkout and the Order is no longer “active”
  • orderPlacedAt: DateTime
  • // A unique code for the Order
  • code: String!
  • state: String!
  • // An order is active as long as the payment process has not been completed
  • active: Boolean!
  • customer: Customer
  • shippingAddress: OrderAddress
  • billingAddress: OrderAddress
  • lines: [OrderLine!]!
  • // Surcharges are arbitrary modifications to the Order total which are neither ProductVariants nor discounts resulting from applied Promotions. For example, one-off discounts based on customer interaction, or surcharges based on payment methods.
  • surcharges: [Surcharge!]!
  • discounts: [Discount!]!
  • // An array of all coupon codes applied to the Order
  • couponCodes: [String!]!
  • // Promotions applied to the order. Only gets populated after the payment process has completed.
  • promotions: [Promotion!]!
  • payments: [Payment!]
  • fulfillments: [Fulfillment!]
  • totalQuantity: Int!
  • // The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level discounts which have been prorated (proportionally distributed) amongst the OrderItems. To get a total of all OrderLines which does not account for prorated discounts, use the sum of OrderLine.discountedLinePrice values.
  • subTotal: Int!
  • // Same as subTotal, but inclusive of tax
  • subTotalWithTax: Int!
  • currencyCode: CurrencyCode!
  • shippingLines: [ShippingLine!]!
  • shipping: Int!
  • shippingWithTax: Int!
  • // Equal to subTotal plus shipping
  • total: Int!
  • // The final payable amount. Equal to subTotalWithTax plus shippingWithTax
  • totalWithTax: Int!
  • // A summary of the taxes being applied to this Order
  • taxSummary: [OrderTaxSummary!]!
  • history(options: HistoryEntryListOptions): HistoryEntryList!
  • customFields: JSON

OrderAddress

OrderItem

  • id: ID!
  • createdAt: DateTime!
  • updatedAt: DateTime!
  • cancelled: Boolean!
  • // The price of a single unit, excluding tax and discounts
  • unitPrice: Int!
  • // The price of a single unit, including tax but excluding discounts
  • unitPriceWithTax: Int!
  • *// The price of a single unit including discounts, excluding tax.

If Order-level discounts have been applied, this will not be the actual taxable unit price (see proratedUnitPrice), but is generally the correct price to display to customers to avoid confusion about the internal handling of distributed Order-level discounts.*

  • discountedUnitPrice: Int!
  • // The price of a single unit including discounts and tax
  • discountedUnitPriceWithTax: Int!
  • // The actual unit price, taking into account both item discounts and prorated (proportionally-distributed) Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax and refund calculations.
  • proratedUnitPrice: Int!
  • // The proratedUnitPrice including tax
  • proratedUnitPriceWithTax: Int!
  • unitTax: Int!
  • taxRate: Float!
  • adjustments: [Adjustment!]!
  • taxLines: [TaxLine!]!
  • fulfillment: Fulfillment
  • refundId: ID

OrderLimitError

Returned when the maximum order size limit has been reached.

OrderLine

  • id: ID!
  • createdAt: DateTime!
  • updatedAt: DateTime!
  • productVariant: ProductVariant!
  • featuredAsset: Asset
  • // The price of a single unit, excluding tax and discounts
  • unitPrice: Int!
  • // The price of a single unit, including tax but excluding discounts
  • unitPriceWithTax: Int!
  • // Non-zero if the unitPrice has changed since it was initially added to Order
  • unitPriceChangeSinceAdded: Int!
  • // Non-zero if the unitPriceWithTax has changed since it was initially added to Order
  • unitPriceWithTaxChangeSinceAdded: Int!
  • *// The price of a single unit including discounts, excluding tax.

If Order-level discounts have been applied, this will not be the actual taxable unit price (see proratedUnitPrice), but is generally the correct price to display to customers to avoid confusion about the internal handling of distributed Order-level discounts.*

  • discountedUnitPrice: Int!
  • // The price of a single unit including discounts and tax
  • discountedUnitPriceWithTax: Int!
  • // The actual unit price, taking into account both item discounts and prorated (proportionally-distributed) Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax and refund calculations.
  • proratedUnitPrice: Int!
  • // The proratedUnitPrice including tax
  • proratedUnitPriceWithTax: Int!
  • quantity: Int!
  • items: [OrderItem!]!
  • taxRate: Float!
  • // The total price of the line excluding tax and discounts.
  • linePrice: Int!
  • // The total price of the line including tax but excluding discounts.
  • linePriceWithTax: Int!
  • // The price of the line including discounts, excluding tax
  • discountedLinePrice: Int!
  • // The price of the line including discounts and tax
  • discountedLinePriceWithTax: Int!
  • // The actual line price, taking into account both item discounts and prorated (proportionally-distributed) Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax and refund calculations.
  • proratedLinePrice: Int!
  • // The proratedLinePrice including tax
  • proratedLinePriceWithTax: Int!
  • // The total tax on this line
  • lineTax: Int!
  • discounts: [Discount!]!
  • taxLines: [TaxLine!]!
  • order: Order!
  • fulfillments: [Fulfillment!]
  • customFields: JSON

OrderList

OrderModificationError

Returned when attempting to modify the contents of an Order that is not in the AddingItems state.

OrderPaymentStateError

Returned when attempting to add a Payment to an Order that is not in the ArrangingPayment state.

OrderStateTransitionError

Returned if there is an error in transitioning the Order state

OrderTaxSummary

A summary of the taxes being applied to this order, grouped by taxRate.

  • // A description of this tax
  • description: String!
  • // The taxRate as a percentage
  • taxRate: Float!
  • // The total net price or OrderItems to which this taxRate applies
  • taxBase: Int!
  • // The total tax being applied to the Order at this taxRate
  • taxTotal: Int!

PasswordAlreadySetError

Returned when attempting to verify a customer account with a password, when a password has already been set.

PasswordResetTokenExpiredError

Returned if the token used to reset a Customer’s password is valid, but has expired according to the verificationTokenDuration setting in the AuthOptions.

PasswordResetTokenInvalidError

Returned if the token used to reset a Customer’s password is either invalid or does not match any expected tokens.

PasswordValidationError

Returned when attempting to register or verify a customer account where the given password fails password validation.

Payment

PaymentDeclinedError

Returned when a Payment is declined by the payment provider.

PaymentFailedError

Returned when a Payment fails due to an error.

PaymentMethod

PaymentMethodQuote

PriceRange

The price range where the result has more than one price

Product

ProductList

ProductOption

ProductOptionGroup

ProductOptionGroupTranslation

ProductOptionTranslation

ProductTranslation

ProductVariant

ProductVariantList

ProductVariantTranslation

Promotion

PromotionList

RefreshCustomerVerificationResult

union RefreshCustomerVerificationResult = Success | NativeAuthStrategyError

Refund

RegisterCustomerAccountResult

union RegisterCustomerAccountResult = Success | MissingPasswordError | PasswordValidationError | NativeAuthStrategyError

RelationCustomFieldConfig

RemoveOrderItemsResult

union RemoveOrderItemsResult = Order | OrderModificationError

RequestPasswordResetResult

union RequestPasswordResetResult = Success | NativeAuthStrategyError

RequestUpdateCustomerEmailAddressResult

union RequestUpdateCustomerEmailAddressResult = Success | InvalidCredentialsError | EmailAddressConflictError | NativeAuthStrategyError

ResetPasswordResult

Role

RoleList

SearchReindexResponse

SearchResponse

SearchResult

SearchResultAsset

SearchResultPrice

The price of a search result product, either as a range or as a single price

union SearchResultPrice = PriceRange | SinglePrice

SetCustomerForOrderResult

SetOrderShippingMethodResult

ShippingLine

ShippingMethod

ShippingMethodList

ShippingMethodQuote

  • id: ID!
  • price: Int!
  • priceWithTax: Int!
  • code: String!
  • name: String!
  • description: String!
  • // Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult
  • metadata: JSON
  • customFields: JSON

ShippingMethodTranslation

SinglePrice

The price value where the result has a single price

String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

StringCustomFieldConfig

StringFieldOption

Success

Indicates that an operation succeeded, where we do not want to return any more specific information.

Surcharge

Tag

TagList

  • items: [Tag!]!
  • totalItems: Int!

TaxCategory

TaxLine

TaxRate

TaxRateList

TextCustomFieldConfig

TransitionOrderToStateResult

union TransitionOrderToStateResult = Order | OrderStateTransitionError

UpdateCustomerEmailAddressResult

UpdateCustomerPasswordResult

UpdateOrderItemsResult

Upload

The Upload scalar type represents a file upload.

User

VerificationTokenExpiredError

Returned if the verification token (used to verify a Customer’s email address) is valid, but has expired according to the verificationTokenDuration setting in the AuthOptions.

VerificationTokenInvalidError

Returned if the verification token (used to verify a Customer’s email address) is either invalid or does not match any expected tokens.

VerifyCustomerAccountResult

Zone