Mutations
activateEnrollment
Type: Enrollment!
Activate a enrollment by changing the status to ACTIVE
Arguments
Name | Description |
---|---|
enrollmentId |
addAssortmentFilter
Type: AssortmentFilter!
Add a new filter to an assortment
Arguments
Name | Description |
---|---|
assortmentId | |
filterId | |
tags |
addAssortmentLink
Type: AssortmentLink!
Add a new child assortment to an assortment
Arguments
Name | Description |
---|---|
parentAssortmentId | |
childAssortmentId | |
tags |
addAssortmentProduct
Type: AssortmentProduct!
Add a new product to an assortment
Arguments
Name | Description |
---|---|
assortmentId | |
productId | |
tags |
addCartDiscount
Type: OrderDiscount!
Add a new discount to the cart, a new order gets generated with status = open (= order before checkout / cart) if necessary
Arguments
Name | Description |
---|---|
orderId | |
code |
addCartProduct
Type: OrderItem!
Add a new item to the cart. Order gets generated with status = open (= order before checkout / cart) if necessary.
Arguments
Name | Description |
---|---|
orderId | |
productId | |
quantity | |
configuration |
addCartQuotation
Type: OrderItem!
Add a new quotation to the cart.
Arguments
Name | Description |
---|---|
orderId | |
quotationId | |
quantity | |
configuration |
addEmail
Type: User!
Update E-Mail address of any user or logged in user if userId is not provided
Arguments
Name | Description |
---|---|
email | |
userId |
addMultipleCartProducts
Type: Order!
Add multiple new item to the cart. Order gets generated with status = open (= order before checkout / cart) if necessary.
Arguments
Name | Description |
---|---|
orderId | |
items |
addProductAssignment
Type: Product!
Link a new product to a ConfigurableProduct by providing a configuration combination that uniquely identifies a row in the assignment matrix
Arguments
Name | Description |
---|---|
proxyId | |
productId | |
vectors |
addProductReviewVote
Type: ProductReview!
Add a vote to a ProductReview. If there there is a previous vote from the user invoking this it will be removed and updated with the new vote
Arguments
Name | Description |
---|---|
productReviewId | |
meta |
addPushSubscription
Type: User!
Store user W3C Push subscription object
Arguments
Name | Description |
---|---|
subscription | |
unsubscribeFromOtherUsers |
addWeb3Address
Type: User!
Web3
Arguments
Name | Description |
---|---|
address |
addWebAuthnCredentials
Type: User!
Register WebAuthn Credentials for current user
Arguments
Name | Description |
---|---|
credentials |
addWork
Type: Work
Add work to the work queue. Each type has its own input shape. If you pinpoint the worker by setting it during creation, the work will be only run by the worker who identifies as that worker.
Arguments
Name | Description |
---|---|
type | |
priority | |
input | |
originalWorkId | |
scheduled | |
retries | |
worker |
allocateWork
Type: Work
Get the next task from the worker queue. This will also mark the task as "started". Optional worker to identify the worker.
Arguments
Name | Description |
---|---|
types | |
worker |
bookmark
Type: Bookmark!
Toggle Bookmark state on a product as currently logged in user, Does not work when multiple bookmarks with different explicit meta configurations exist. In those cases please use createBookmark and removeBookmark
Arguments
Name | Description |
---|---|
productId | |
bookmarked |
changePassword
Type: SuccessResponse
Change the current user's password. Must be logged in.
Arguments
Name | Description |
---|---|
oldPassword | |
newPassword |
checkoutCart
Type: Order!
Process the checkout (automatically charge & deliver if possible), the cart will get transformed to an ordinary order if everything goes well.
Arguments
Name | Description |
---|---|
orderId | |
paymentContext | |
deliveryContext |
confirmMediaUpload
Type: Media!
Arguments
Name | Description |
---|---|
mediaUploadTicketId | |
size | |
type |
confirmOrder
Type: Order!
Manually confirm an order which is in progress
Arguments
Name | Description |
---|---|
orderId | |
paymentContext | |
deliveryContext | |
comment |
createAssortment
Type: Assortment!
Creates new assortment.
Arguments
Name | Description |
---|---|
assortment | |
texts |
createBookmark
Type: Bookmark!
Create a bookmark for a specific user
Arguments
Name | Description |
---|---|
productId | |
userId | |
meta |
createCart
Type: Order!
Creates an alternative cart. If you use this feature, you should use explicit orderId's when using the cart mutations. Else it will work like a stack and the checkout will use the very first cart of the user.
Arguments
Name | Description |
---|---|
orderNumber |
createCountry
Type: Country!
Arguments
Name | Description |
---|---|
country |
createCurrency
Type: Currency!
Arguments
Name | Description |
---|---|
currency |
createDeliveryProvider
Type: DeliveryProvider!
Creates new delivery provider
Arguments
Name | Description |
---|---|
deliveryProvider |
createEnrollment
Type: Enrollment!
Create a enrollment.
Arguments
Name | Description |
---|---|
plan | |
billingAddress | |
contact | |
payment | |
delivery | |
meta |
createFilter
Type: Filter!
Creates new Filter along with the user who created it.
Arguments
Name | Description |
---|---|
filter | |
texts |
createFilterOption
Type: Filter!
Adds new option to filters
Arguments
Name | Description |
---|---|
filterId | |
option | |
texts |
createLanguage
Type: Language!
Adds new language along with the user who created it
Arguments
Name | Description |
---|---|
language |
createPaymentProvider
Type: PaymentProvider!
Adds new payment provider
Arguments
Name | Description |
---|---|
paymentProvider |
createProduct
Type: Product!
Create a new product
Arguments
Name | Description |
---|---|
product | |
texts |
createProductBundleItem
Type: Product!
Adds one product as bundle for another products
Arguments
Name | Description |
---|---|
productId | |
createProductReview
Type: ProductReview!
Add a new ProductReview
Arguments
Name | Description |
---|---|
productId | |
productReview |
createProductVariation
Type: ProductVariation!
Creates new product variation for a product.
Arguments
Name | Description |
---|---|
productId | |
variation | |
createProductVariationOption
Type: ProductVariation!
Adds variation option to an existing product variations
Arguments
Name | Description |
---|---|
productVariationId | |
option | |
createUser
Type: LoginMethodResponse
Create a new user.
Arguments
Name | Description |
---|---|
username | |
email | |
webAuthnPublicKeyCredentials | |
password | |
profile |
createWarehousingProvider
Type: WarehousingProvider!
Creates new warehouse provider.
Arguments
Name | Description |
---|---|
warehousingProvider |
createWebAuthnCredentialCreationOptions
Type: JSON!
Create WebAuthn PublicKeyCredentialCreationOptions to use for Registering a new WebAuthn Device
Arguments
Name | Description |
---|---|
username | |
extensionOptions |
createWebAuthnCredentialRequestOptions
Type: JSON!
Create WebAuthn PublicKeyCredentialRequestrOptions to use for WebAuthn Login Flow
Arguments
Name | Description |
---|---|
username | |
extensionOptions |
deliverOrder
Type: Order!
Manually mark a undelivered order as delivered
Arguments
Name | Description |
---|---|
orderId |
emptyCart
Type: Order
Remove all items of an open order (cart) if possible. if you want to remove single cart item use removeCartItem instead
Arguments
Name | Description |
---|---|
orderId |
enrollUser
Type: User!
Enroll a new user, setting enroll to true will let the user choose his password (e-mail gets sent)
Arguments
Name | Description |
---|---|
profile | |
email | |
password |
exportToken
Type: Token!
Arguments
Name | Description |
---|---|
tokenId | |
quantity | |
recipientWalletAddress |
finishWork
Type: Work!
Register a work attempt manually. Note: Usually, work attempts are handled internally by the inbuilt cron worker. This mutation is part of the interface for "outside" workers.
Arguments
Name | Description |
---|---|
workId | |
result | |
error | |
success | |
worker | |
started | |
finished |
forgotPassword
Type: SuccessResponse
Request a forgot password email.
Arguments
Name | Description |
---|---|
email |
heartbeat
Type: User!
Update hearbeat (updates user activity information such as last login and logged in user IP address, locale and country where they accessed the system)
invalidateToken
Type: Token!
Tokenize
Arguments
Name | Description |
---|---|
tokenId |
loginAsGuest
Type: LoginMethodResponse
Login as Guest User (creates an anonymous user and returns logged in token)
loginWithPassword
Type: LoginMethodResponse
Log the user in with a password.
Arguments
Name | Description |
---|---|
username | |
email | |
password |
loginWithWebAuthn
Type: LoginMethodResponse
Log the user in with a WebAuthn device
Arguments
Name | Description |
---|---|
webAuthnPublicKeyCredentials |
logout
Type: SuccessResponse
Log the user out.
makeQuotationProposal
Type: Quotation!
Make a proposal as answer to the RFP by changing its status to PROCESSED
Arguments
Name | Description |
---|---|
quotationId | |
quotationContext |
markPaymentCredentialsPreferred
Type: PaymentCredentials
Make's the provided payment credential as the users preferred method of payment.
Arguments
Name | Description |
---|---|
paymentCredentialsId |
pageView
Type: String!
Arguments
Name | Description |
---|---|
path | |
referrer |
payOrder
Type: Order!
Manually mark an unpaid/partially paid order as fully paid
Arguments
Name | Description |
---|---|
orderId |
prepareAssortmentMediaUpload
Type: MediaUploadTicket!
Arguments
Name | Description |
---|---|
mediaName | |
assortmentId |
prepareProductMediaUpload
Type: MediaUploadTicket!
Arguments
Name | Description |
---|---|
mediaName | |
productId |
prepareUserAvatarUpload
Type: MediaUploadTicket!
Arguments
Name | Description |
---|---|
mediaName | |
userId |
processNextWork
Type: Work
This will pick up non-external work, execute, await result and finish it up on the target system. This function allows you to do work queue "ticks" from outside instead of waiting for default Cron and Event Listener to trigger and can be helpful in serverless environments.
Arguments
Name | Description |
---|---|
worker |
publishProduct
Type: Product!
Make the product visible on any shop listings (product queries)
Arguments
Name | Description |
---|---|
productId |
registerPaymentCredentials
Type: PaymentCredentials
Register credentials for an existing payment provider allowing to store and use them for later payments (1-click checkout or enrollments)
Arguments
Name | Description |
---|---|
transactionContext | |
paymentProviderId |
rejectOrder
Type: Order!
Manually reject an order which is in progress
Arguments
Name | Description |
---|---|
orderId | |
paymentContext | |
deliveryContext | |
comment |
rejectQuotation
Type: Quotation!
Reject an RFP, this is possible as long as a quotation is not fullfilled
Arguments
Name | Description |
---|---|
quotationId | |
quotationContext |
removeAssortment
Type: Assortment!
Removes assortment with the provided ID
Arguments
Name | Description |
---|---|
assortmentId |
removeAssortmentFilter
Type: AssortmentFilter!
Remove a product from an assortment
Arguments
Name | Description |
---|---|
assortmentFilterId |
removeAssortmentLink
Type: AssortmentLink!
Remove a child/parent assortment link from it's parent
Arguments
Name | Description |
---|---|
assortmentLinkId |
removeAssortmentMedia
Type: AssortmentMedia!
Remove a media asset from a assortment
Arguments
Name | Description |
---|---|
assortmentMediaId |
removeAssortmentProduct
Type: AssortmentProduct!
Remove a product from an assortment
Arguments
Name | Description |
---|---|
assortmentProductId |
removeBookmark
Type: Bookmark!
Remove an existing bookmark by ID
Arguments
Name | Description |
---|---|
bookmarkId |
removeBundleItem
Type: Product!
Removes products bundle item found at the given 0 based index.
Arguments
Name | Description |
---|---|
productId | |
index |
removeCartDiscount
Type: OrderDiscount!
Remove a discount from the cart
Arguments
Name | Description |
---|---|
discountId |
removeCartItem
Type: OrderItem!
Remove an item from an open order
Arguments
Name | Description |
---|---|
itemId |
removeCountry
Type: Country!
Deletes the specified country
Arguments
Name | Description |
---|---|
countryId |
removeCurrency
Type: Currency!
Deletes the specified currency
Arguments
Name | Description |
---|---|
currencyId |
removeDeliveryProvider
Type: DeliveryProvider!
Deletes a delivery provider by setting the deleted field to current timestamp. Note the delivery provider still exists.
Arguments
Name | Description |
---|---|
deliveryProviderId |
removeEmail
Type: User!
Update E-Mail address of any user or logged in user if userId is not provided
Arguments
Name | Description |
---|---|
email | |
userId |
removeFilter
Type: Filter!
Deletes the specified filter
Arguments
Name | Description |
---|---|
filterId |
removeFilterOption
Type: Filter!
Removes the filter option from the specified filter.
Arguments
Name | Description |
---|---|
filterId | |
filterOptionValue |
removeLanguage
Type: Language!
Deletes the specified languages
Arguments
Name | Description |
---|---|
languageId |
removeOrder
Type: Order!
Remove an order while it's still open
Arguments
Name | Description |
---|---|
orderId |
removePaymentCredentials
Type: PaymentCredentials
Deletes the specified payment credential.
Arguments
Name | Description |
---|---|
paymentCredentialsId |
removePaymentProvider
Type: PaymentProvider!
Deletes the specified payment provider by setting the deleted filed to current timestamp. Note the payment provider is still available only it’s status is deleted
Arguments
Name | Description |
---|---|
paymentProviderId |
removeProduct
Type: Product!
Remove the product completely!
Arguments
Name | Description |
---|---|
productId |
removeProductAssignment
Type: Product!
Unlinks a product from a ConfigurableProduct by providing a configuration combination that uniquely identifies a row in the assignment matrix
Arguments
Name | Description |
---|---|
proxyId | |
vectors |
removeProductMedia
Type: ProductMedia!
Remove a media asset from a product's visualization
Arguments
Name | Description |
---|---|
productMediaId |
removeProductReview
Type: ProductReview!
Remove an existing ProductReview. The logic to allow/dissallow removal is controlled by product plugin logic
Arguments
Name | Description |
---|---|
productReviewId |
removeProductReviewVote
Type: ProductReview!
Remove a vote from a ProductReview
Arguments
Name | Description |
---|---|
productReviewId | |
removeProductVariation
Type: ProductVariation!
Removes product variation with the provided ID
Arguments
Name | Description |
---|---|
productVariationId |
removeProductVariationOption
Type: ProductVariation!
Removes product option value for product variation with the provided variation option value
Arguments
Name | Description |
---|---|
productVariationId | |
productVariationOptionValue |
removePushSubscription
Type: User!
Remove user W3C push subscription object
Arguments
Name | Description |
---|---|
p256dh |
removeUser
Type: User!
Remove any user or logged in user if userId is not provided
Arguments
Name | Description |
---|---|
userId |
removeWarehousingProvider
Type: WarehousingProvider!
Deletes the specified warehousing provider by setting the deleted filed to current timestamp. Note warehousing provider still exists in the system after successful completing of this operation with status deleted.
Arguments
Name | Description |
---|---|
warehousingProviderId |
removeWeb3Address
Type: User!
Arguments
Name | Description |
---|---|
address |
removeWebAuthnCredentials
Type: User!
Remove WebAuthn Credentials for current user
Arguments
Name | Description |
---|---|
credentialsId |
removeWork
Type: Work!
Manually remove a work
Arguments
Name | Description |
---|---|
workId |
reorderAssortmentFilters
Type: [AssortmentFilter!]!
Reorder the products in an assortment
Arguments
Name | Description |
---|---|
sortKeys |
reorderAssortmentLinks
Type: [AssortmentLink!]!
Reorder the child assortment links in it's parent
Arguments
Name | Description |
---|---|
sortKeys |
reorderAssortmentMedia
Type: [AssortmentMedia!]!
Reorder a media asset (first is primary)
Arguments
Name | Description |
---|---|
sortKeys |
reorderAssortmentProducts
Type: [AssortmentProduct!]!
Reorder the products in an assortment
Arguments
Name | Description |
---|---|
sortKeys |
reorderProductMedia
Type: [ProductMedia!]!
Reorder a media asset (first is primary)
Arguments
Name | Description |
---|---|
sortKeys |
requestQuotation
Type: Quotation!
Request for Proposal (RFP) for the specified product
Arguments
Name | Description |
---|---|
productId | |
configuration |
resetPassword
Type: LoginMethodResponse
Reset the password for a user using a token received in email. Logs the user in afterwards.
Arguments
Name | Description |
---|---|
newPassword | |
token |
sendEnrollmentEmail
Type: SuccessResponse
Forcefully trigger an enrollment email for already added users by e-mail
Arguments
Name | Description |
---|---|
email |
sendVerificationEmail
Type: SuccessResponse
Send an email with a link the user can use verify their email address.
Arguments
Name | Description |
---|---|
email |
setBaseAssortment
Type: Assortment!
Makes the assortment provided as the base assortment and make any other existing base assortment regular assortments.
Arguments
Name | Description |
---|---|
assortmentId |
setOrderDeliveryProvider
Type: Order!
Change the delivery method/provider to an order. If the delivery provider doesn’t exists new delivery provider will be created with the provided ID.
Arguments
Name | Description |
---|---|
orderId | |
deliveryProviderId |
setOrderPaymentProvider
Type: Order!
Change the payment method/provider to an order. If the payment provider doesn’t exists new payment provider will be created with the provided ID.
Arguments
Name | Description |
---|---|
orderId | |
paymentProviderId |
setPassword
Type: User!
Set a new password for a specific user
Arguments
Name | Description |
---|---|
newPassword | |
userId |
setRoles
Type: User!
Set roles of a user
Arguments
Name | Description |
---|---|
roles | |
userId |
setUsername
Type: User!
Set username for a specific user
Arguments
Name | Description |
---|---|
username | |
userId |
setUserTags
Type: User!
Set tags of user
Arguments
Name | Description |
---|---|
tags | |
userId |
signPaymentProviderForCheckout
Type: String!
Sign a generic order payment
Arguments
Name | Description |
---|---|
orderPaymentId | |
transactionContext |
signPaymentProviderForCredentialRegistration
Type: String
Sign a generic payment provider for registration
Arguments
Name | Description |
---|---|
paymentProviderId | |
transactionContext |
terminateEnrollment
Type: Enrollment!
Terminate an actively running enrollment by changing it's status to TERMINATED
Arguments
Name | Description |
---|---|
enrollmentId |
unpublishProduct
Type: Product!
Hide the product visible from any shop listings (product queries)
Arguments
Name | Description |
---|---|
productId |
updateAssortment
Type: Assortment!
Updates the provided assortment
Arguments
Name | Description |
---|---|
assortment | |
assortmentId |
updateAssortmentMediaTexts
Type: [AssortmentMediaTexts!]!
Modify localized texts part of a assortment media asset
Arguments
Name | Description |
---|---|
assortmentMediaId | |
updateAssortmentTexts
Type: [AssortmentTexts!]!
Modify localized texts part of an assortment
Arguments
Name | Description |
---|---|
assortmentId | |
texts |
updateCart
Type: Order!
Change billing address and order contact of an open order (cart). All of the parameters except order ID are optional and the update will ocure for parameters provided. If the delivery provider or payment provider ID provided doesn’t already exist new order payment will be created with the provided ID.
Arguments
Name | Description |
---|---|
orderId | |
billingAddress | |
contact | |
meta | |
paymentProviderId | |
deliveryProviderId |
updateCartItem
Type: OrderItem!
Change the quantity or configuration of an item in an open order.align-baselineAll of the parameters are optional except item ID and for the parameters provided the update will be performed accordingly.
Arguments
Name | Description |
---|---|
itemId | |
quantity | |
configuration |
updateCountry
Type: Country!
Updates provided country information
Arguments
Name | Description |
---|---|
country | |
countryId |
updateCurrency
Type: Currency!
Updates the specified currency
Arguments
Name | Description |
---|---|
currency | |
currencyId |
updateDeliveryProvider
Type: DeliveryProvider!
Updates the delivery provider specified
Arguments
Name | Description |
---|---|
deliveryProvider | |
deliveryProviderId |
updateEnrollment
Type: Enrollment!
Update a enrollment
Arguments
Name | Description |
---|---|
enrollmentId | |
plan | |
billingAddress | |
contact | |
payment | |
delivery | |
meta |
updateFilter
Type: Filter!
Updates the specified filter with the information passed.
Arguments
Name | Description |
---|---|
filter | |
filterId |
updateFilterTexts
Type: [FilterTexts!]!
Updates or created specified filter texts for filter with ID provided and locale and optionally filterOptionValue
Arguments
Name | Description |
---|---|
filterId | |
filterOptionValue | |
texts |
updateLanguage
Type: Language!
Updates the specified language.
Arguments
Name | Description |
---|---|
language | |
languageId |
updateOrderDeliveryPickUp
Type: OrderDeliveryPickUp!
Update a Pick Up Delivery Provider's specific configuration
Arguments
Name | Description |
---|---|
orderDeliveryId | |
orderPickUpLocationId | |
meta |
updateOrderDeliveryShipping
Type: OrderDeliveryShipping!
Update a Shipping Delivery Provider's specific configuration
Arguments
Name | Description |
---|---|
orderDeliveryId | |
address | |
meta |
updateOrderPaymentCard
Type: OrderPaymentCard!
Update a Card Payment Provider's specific configuration
Arguments
Name | Description |
---|---|
orderPaymentId | |
meta |
updateOrderPaymentGeneric
Type: OrderPaymentGeneric!
Update a Generic Payment Provider's specific configuration
Arguments
Name | Description |
---|---|
orderPaymentId | |
meta |
updateOrderPaymentInvoice
Type: OrderPaymentInvoice!
Update an Invoice Payment Provider's specific configuration
Arguments
Name | Description |
---|---|
orderPaymentId | |
meta |
updatePaymentProvider
Type: PaymentProvider!
Updates payment provider information with the provided ID
Arguments
Name | Description |
---|---|
paymentProvider | |
paymentProviderId |
updateProduct
Type: Product
Modify generic infos of a product (tags for ex.)
Arguments
Name | Description |
---|---|
productId | |
product |
updateProductCommerce
Type: Product
Modify commerce part of a product
Arguments
Name | Description |
---|---|
productId | |
commerce |
updateProductMediaTexts
Type: [ProductMediaTexts!]!
Modify localized texts part of a product's media asset
Arguments
Name | Description |
---|---|
productMediaId | |
updateProductPlan
Type: Product
Modify plan part of a product
Arguments
Name | Description |
---|---|
productId | |
updateProductReview
Type: ProductReview!
Update an existing ProductReview. The logic to allow/dissallow editing is controlled by product plugin logic
Arguments
Name | Description |
---|---|
productReviewId | |
productReview |
updateProductSupply
Type: Product
Modify delivery part of a product
Arguments
Name | Description |
---|---|
productId | |
supply |
updateProductTexts
Type: [ProductTexts!]!
Modify localized texts part of a product
Arguments
Name | Description |
---|---|
productId | |
texts |
updateProductTokenization
Type: TokenizedProduct
Modify tokenization part of a product
Arguments
Name | Description |
---|---|
productId | |
tokenization |
updateProductVariationTexts
Type: [ProductVariationTexts!]!
Update product variation texts with the specified locales for product variations that match the provided variation ID and production option value
Arguments
Name | Description |
---|---|
productVariationId | |
productVariationOptionValue | |
updateProductWarehousing
Type: Product
Modify warehousing part of a product
Arguments
Name | Description |
---|---|
productId | |
warehousing |
updateUserProfile
Type: User!
Update Profile of any user or logged in user if userId is not provided
Arguments
Name | Description |
---|---|
profile | |
meta | |
userId |
updateWarehousingProvider
Type: WarehousingProvider!
Updates warehousing provider information with the provided ID
Arguments
Name | Description |
---|---|
warehousingProvider | |
warehousingProviderId |
verifyEmail
Type: LoginMethodResponse
Marks the user's email address as verified. Logs the user in afterwards.
Arguments
Name | Description |
---|---|
token |
verifyQuotation
Type: Quotation!
Verify quotation request elligibility. and marks requested quotations as verified if it is
Arguments
Name | Description |
---|---|
quotationId | |
quotationContext |
verifyWeb3Address
Type: User!
Arguments
Name | Description |
---|---|
address | |
hash |