Skip to main content

GraphQL API Reference

Unchained Engine exposes a comprehensive GraphQL API built with GraphQL Yoga. The API is available at the /graphql endpoint.

Interactive Explorer

Use the GraphQL Playground to explore the schema interactively with auto-completion and documentation.

Custom Scalars

ScalarDescription
JSONArbitrary JSON object
DateTimeISO 8601 date-time string
DateDate value
TimestampUnix timestamp (integer)
LowerCaseStringString that enforces lowercase
LocaleBCP 47 locale code (e.g., en, de-CH)

Directives

@cacheControl

Controls HTTP caching behavior for fields and types:

directive @cacheControl(maxAge: Int, scope: CacheControlScope) on FIELD_DEFINITION | OBJECT

Scope values: PUBLIC, PRIVATE

Queries

Products

QueryArgumentsDescription
productproductId: ID, slug: StringGet product by ID or slug
productsqueryString, tags, slugs, limit, offset, includeDrafts, sortList products
productsCounttags, slugs, includeDrafts, queryStringCount products
productCatalogPricesproductId: ID!Get catalog prices
productReviewproductReviewId: ID!Get a product review
productReviewslimit, offset, sort, queryStringList all reviews
productReviewsCountqueryStringCount reviews
searchProductsqueryString, filterQuery, assortmentId, orderBy, includeInactive, ignoreChildAssortmentsSearch products with filters
translatedProductTextsproductId: ID!Get all translations
translatedProductMediaTextsproductMediaId: ID!Get media translations
translatedProductVariationTextsproductVariationId: ID!, productVariationOptionValue: StringGet variation translations

Orders

QueryArgumentsDescription
orderorderId: ID!Get order by ID
orderslimit, offset, includeCarts, queryString, status, sort, paymentProviderIds, deliveryProviderIds, dateRangeList orders
ordersCountincludeCarts, queryString, paymentProviderIds, deliveryProviderIds, dateRange, statusCount orders

Users

QueryArgumentsDescription
meCurrent authenticated user
impersonatorUser impersonating current user
useruserId: IDGet user (defaults to current user)
userslimit, offset, includeGuests, queryString, sort, emailVerified, lastLogin, tagsList users
usersCountincludeGuests, queryString, emailVerified, lastLogin, tagsCount users
validateResetPasswordTokentoken: String!Validate reset token
validateVerifyEmailTokentoken: String!Validate email token

Assortments

QueryArgumentsDescription
assortmentassortmentId: ID, slug: StringGet assortment by ID or slug
assortmentsqueryString, tags, slugs, limit, offset, includeInactive, includeLeaves, sortList assortments
assortmentsCounttags, slugs, includeInactive, includeLeaves, queryStringCount assortments
searchAssortmentsqueryString, assortmentIds, orderBy, includeInactiveSearch assortments
translatedAssortmentTextsassortmentId: ID!Get translations
translatedAssortmentMediaTextsassortmentMediaId: ID!Get media translations

Filters

QueryArgumentsDescription
filterfilterId: IDGet filter by ID
filterslimit, offset, includeInactive, queryString, sortList filters
filtersCountincludeInactive, queryStringCount filters
translatedFilterTextsfilterId: ID!, filterOptionValue: StringGet translations

Localization

QueryArgumentsDescription
languagelanguageId: ID!Get language
languageslimit, offset, includeInactive, queryString, sortList languages
languagesCountincludeInactive, queryStringCount languages
countrycountryId: ID!Get country
countrieslimit, offset, includeInactive, queryString, sortList countries
countriesCountincludeInactive, queryStringCount countries
currencycurrencyId: ID!Get currency
currencieslimit, offset, includeInactive, queryString, sortList currencies
currenciesCountincludeInactive, queryStringCount currencies

Providers

QueryArgumentsDescription
paymentProviderpaymentProviderId: ID!Get payment provider
paymentProviderstype: PaymentProviderTypeList payment providers
paymentProvidersCounttype: PaymentProviderTypeCount payment providers
paymentInterfacestype: PaymentProviderTypeList available payment interfaces
deliveryProviderdeliveryProviderId: ID!Get delivery provider
deliveryProviderstype: DeliveryProviderTypeList delivery providers
deliveryProvidersCounttype: DeliveryProviderTypeCount delivery providers
deliveryInterfacestype: DeliveryProviderTypeList available delivery interfaces
warehousingProviderwarehousingProviderId: ID!Get warehousing provider
warehousingProviderstype: WarehousingProviderTypeList warehousing providers
warehousingProvidersCounttype: WarehousingProviderTypeCount warehousing providers
warehousingInterfacestype: WarehousingProviderTypeList available warehousing interfaces

Quotations & Enrollments

QueryArgumentsDescription
quotationquotationId: ID!Get quotation
quotationslimit, offset, queryString, sortList quotations
quotationsCountqueryStringCount quotations
enrollmentenrollmentId: ID!Get enrollment
enrollmentslimit, offset, queryString, status, sortList enrollments
enrollmentsCountqueryString, statusCount enrollments

Tokens

QueryArgumentsDescription
tokentokenId: ID!Get token
tokensqueryString, limit, offsetList tokens
tokensCountqueryStringCount tokens

Work Queue & Events

QueryArgumentsDescription
workworkId: ID!Get work item
workQueuelimit, offset, status, created, queryString, sort, typesList work queue
workQueueCountstatus, types, created, queryStringCount work items
activeWorkTypesList registered worker types
eventeventId: ID!Get event
eventstypes, limit, offset, queryString, created, sortList events
eventsCounttypes, queryString, createdCount events

Statistics & System

QueryArgumentsDescription
shopInfoShop configuration and default locale
orderStatisticsdateRangeOrder analytics
eventStatisticstypes, dateRangeEvent analytics
workStatisticstypes, dateRangeWorker analytics

Mutations

Authentication

MutationArgumentsDescription
loginWithPasswordusername, email, password!Login with credentials
loginWithWebAuthnwebAuthnPublicKeyCredentials: JSON!Login with WebAuthn
loginAsGuestCreate anonymous session
logoutEnd current session
logoutAllSessionsInvalidate all tokens
impersonateuserId: ID!Impersonate a user
stopImpersonationEnd impersonation
createUserusername, email, password, profile, webAuthnPublicKeyCredentialsRegister user
changePasswordoldPassword!, newPassword!Change password
forgotPasswordemail: String!Request password reset
resetPasswordnewPassword!, token!Reset with token
verifyEmailtoken: String!Verify email address
sendVerificationEmailemailResend verification
enrollUserprofile!, email!, passwordEnroll new user
sendEnrollmentEmailemail: String!Send enrollment email
heartbeatUpdate activity info

WebAuthn

MutationArgumentsDescription
createWebAuthnCredentialCreationOptionsusername!, extensionOptionsGet passkey registration options
createWebAuthnCredentialRequestOptionsusername, extensionOptionsGet passkey login options
addWebAuthnCredentialscredentials: JSON!Register passkey
removeWebAuthnCredentialscredentialsId: ID!Remove passkey

User Management

MutationArgumentsDescription
updateUserProfileprofile, meta, userIdUpdate user profile
removeUseruserId, removeUserReviewsDelete user
addEmailemail!, userIdAdd email address
removeEmailemail!, userIdRemove email address
setUserTagstags!, userId!Set user tags
setUsernameusername!, userId!Set username
setPasswordnewPassword!, userId!Set password
setRolesroles!, userId!Set user roles
addPushSubscriptionsubscription!, unsubscribeFromOtherUsersAdd push subscription
removePushSubscriptionp256dh: String!Remove push subscription
pageViewpath!, referrerLog page view

Web3

MutationArgumentsDescription
addWeb3Addressaddress: String!Add blockchain address
removeWeb3Addressaddress: String!Remove blockchain address
verifyWeb3Addressaddress!, hash!Verify blockchain address

Cart & Checkout

MutationArgumentsDescription
createCartorderNumber: String!Create alternative cart
addCartProductorderId, productId!, quantity, configurationAdd product to cart
addMultipleCartProductsorderId, items!Add multiple products
addCartDiscountorderId, code!Apply discount code
addCartQuotationorderId, quotationId!, quantity, configurationAdd quotation to cart
updateCartorderId, billingAddress, contact, meta, paymentProviderId, deliveryProviderIdUpdate cart details
emptyCartorderIdRemove all items
updateCartItemitemId!, quantity, configurationUpdate cart item
removeCartItemitemId: ID!Remove cart item
removeCartDiscountdiscountId: ID!Remove discount
updateCartDeliveryShippingorderId, deliveryProviderId!, address, metaSet shipping delivery
updateCartDeliveryPickUporderId, deliveryProviderId!, orderPickUpLocationId!, metaSet pickup delivery
updateCartPaymentInvoiceorderId, paymentProviderId!, metaSet invoice payment
updateCartPaymentGenericorderId, paymentProviderId!, metaSet generic payment
checkoutCartorderId, paymentContext, deliveryContextProcess checkout

Order Administration

MutationArgumentsDescription
removeOrderorderId: ID!Remove open order
confirmOrderorderId!, paymentContext, deliveryContext, commentConfirm order
rejectOrderorderId!, paymentContext, deliveryContext, commentReject order
payOrderorderId: ID!Mark order as paid
deliverOrderorderId: ID!Mark order as delivered
signPaymentProviderForCheckoutorderPaymentId, transactionContextSign payment

Product Management

MutationArgumentsDescription
createProductproduct!, textsCreate product
updateProductproductId!, product!Update product
publishProductproductId: ID!Publish product
unpublishProductproductId: ID!Unpublish product
removeProductproductId: ID!Delete product
updateProductCommerceproductId!, commerce!Update pricing info
updateProductSupplyproductId!, supply!Update supply info
updateProductPlanproductId!, plan!Update plan info
updateProductWarehousingproductId!, warehousing!Update warehousing info
updateProductTokenizationproductId!, tokenization!Update tokenization
updateProductTextsproductId!, texts!Update translations
updateProductMediaTextsproductMediaId!, texts!Update media texts
removeProductMediaproductMediaId: ID!Remove media
reorderProductMediasortKeys!Reorder media
createProductVariationproductId!, variation!, textsCreate variation
removeProductVariationproductVariationId: ID!Remove variation
updateProductVariationTextsproductVariationId!, productVariationOptionValue, texts!Update variation texts
createProductVariationOptionproductVariationId!, option!, textsAdd variation option
removeProductVariationOptionproductVariationId!, productVariationOptionValue!Remove option
createProductBundleItemproductId!, item!Add bundle item
removeBundleItemproductId!, index!Remove bundle item
addProductAssignmentproxyId!, productId!, vectors!Link variant
removeProductAssignmentproxyId!, vectors!Unlink variant

Assortment Management

MutationArgumentsDescription
createAssortmentassortment!, textsCreate assortment
updateAssortmentassortment!, assortmentId!Update assortment
removeAssortmentassortmentId: ID!Delete assortment
updateAssortmentTextsassortmentId!, texts!Update translations
addAssortmentProductassortmentId!, productId!, tagsAdd product
removeAssortmentProductassortmentProductId: ID!Remove product
reorderAssortmentProductssortKeys!Reorder products
addAssortmentLinkparentAssortmentId!, childAssortmentId!, tagsLink assortments
removeAssortmentLinkassortmentLinkId: ID!Unlink assortments
reorderAssortmentLinkssortKeys!Reorder links
addAssortmentFilterassortmentId!, filterId!, tagsAdd filter
removeAssortmentFilterassortmentFilterId: ID!Remove filter
reorderAssortmentFilterssortKeys!Reorder filters
removeAssortmentMediaassortmentMediaId: ID!Remove media
reorderAssortmentMediasortKeys!Reorder media
updateAssortmentMediaTextsassortmentMediaId!, texts!Update media texts

Filter Management

MutationArgumentsDescription
createFilterfilter!, textsCreate filter
updateFilterfilter!, filterId!Update filter
removeFilterfilterId: ID!Delete filter
createFilterOptionfilterId!, option!, textsAdd option
removeFilterOptionfilterId!, filterOptionValue!Remove option
updateFilterTextsfilterId!, filterOptionValue, texts!Update texts

Provider Management

MutationArgumentsDescription
createPaymentProviderpaymentProvider!Create payment provider
updatePaymentProviderpaymentProvider!, paymentProviderId!Update payment provider
removePaymentProviderpaymentProviderId: ID!Delete payment provider
signPaymentProviderForCredentialRegistrationpaymentProviderId!, transactionContextSign credential registration
registerPaymentCredentialstransactionContext!, paymentProviderId!Register credentials
markPaymentCredentialsPreferredpaymentCredentialsId: ID!Set preferred
removePaymentCredentialspaymentCredentialsId: ID!Delete credentials
createDeliveryProviderdeliveryProvider!Create delivery provider
updateDeliveryProviderdeliveryProvider!, deliveryProviderId!Update delivery provider
removeDeliveryProviderdeliveryProviderId: ID!Delete delivery provider
createWarehousingProviderwarehousingProvider!Create warehousing provider
updateWarehousingProviderwarehousingProvider!, warehousingProviderId!Update warehousing provider
removeWarehousingProviderwarehousingProviderId: ID!Delete warehousing provider

Localization Management

MutationArgumentsDescription
createLanguagelanguage!Create language
updateLanguagelanguage!, languageId!Update language
removeLanguagelanguageId: ID!Delete language
createCountrycountry!Create country
updateCountrycountry!, countryId!Update country
removeCountrycountryId: ID!Delete country
createCurrencycurrency!Create currency
updateCurrencycurrency!, currencyId!Update currency
removeCurrencycurrencyId: ID!Delete currency

Quotations

MutationArgumentsDescription
requestQuotationproductId!, configurationRequest for Proposal
verifyQuotationquotationId!, quotationContextVerify eligibility
rejectQuotationquotationId!, quotationContextReject quotation
makeQuotationProposalquotationId!, quotationContextMake proposal

Enrollments

MutationArgumentsDescription
createEnrollmentplan!, billingAddress, contact, payment, delivery, metaCreate enrollment
updateEnrollmentenrollmentId, plan, billingAddress, contact, payment, delivery, metaUpdate enrollment
activateEnrollmentenrollmentId: ID!Activate enrollment
terminateEnrollmentenrollmentId: ID!Terminate enrollment

Reviews

MutationArgumentsDescription
createProductReviewproductId!, productReview!Create review
updateProductReviewproductReviewId!, productReview!Update review
removeProductReviewproductReviewId: ID!Remove review
removeUserProductReviewsuserId: ID!Remove user's reviews
addProductReviewVoteproductReviewId!, type!, metaAdd vote
removeProductReviewVoteproductReviewId!, typeRemove vote

Bookmarks

MutationArgumentsDescription
bookmarkproductId!, bookmarkedToggle bookmark
createBookmarkproductId!, userId!, metaCreate bookmark
removeBookmarkbookmarkId: ID!Remove bookmark

Work Queue

MutationArgumentsDescription
addWorktype!, priority, input, originalWorkId, scheduled, retries, workerQueue work
allocateWorktypes, workerAllocate next task
finishWorkworkId!, result, error, success, worker, started, finishedComplete work
processNextWorkworkerProcess next work unit
removeWorkworkId: ID!Remove work

Media Upload

MutationArgumentsDescription
prepareProductMediaUploadmediaName!, productId!Prepare product media upload
prepareAssortmentMediaUploadmediaName!, assortmentId!Prepare assortment media upload
prepareUserAvatarUploadmediaName!, userIdPrepare avatar upload
confirmMediaUploadmediaUploadTicketId!, size!, type!Confirm upload

Tokens

MutationArgumentsDescription
invalidateTokentokenId: ID!Invalidate token
exportTokentokenId!, quantity, recipientWalletAddress!Export token

Enums

EnumValues
ProductTypeSIMPLE_PRODUCT, CONFIGURABLE_PRODUCT, BUNDLE_PRODUCT, PLAN_PRODUCT, TOKENIZED_PRODUCT
ProductStatusDRAFT, ACTIVE, DELETED
OrderStatusOPEN, PENDING, CONFIRMED, FULFILLED, REJECTED
PaymentProviderTypeINVOICE, GENERIC
DeliveryProviderTypeSHIPPING, PICKUP
WarehousingProviderTypePHYSICAL, VIRTUAL
FilterTypeSWITCH, SINGLE_CHOICE, MULTI_CHOICE, RANGE
QuotationStatusREQUESTED, PROCESSING, PROPOSED, FULFILLED, REJECTED
EnrollmentStatusINITIAL, ACTIVE, PAUSED, TERMINATED
WorkStatusNEW, ALLOCATED, SUCCESS, FAILED, DELETED
SortDirectionASC, DESC