Magento 2 GraphQL Explorer
Every Magento 2 GraphQL query and mutation grouped by module, with arguments, return types, resolver classes, and copy-paste headers, variables, body, and cURL.
75 result(s) in Mutations · Clear
addBundleProductsToCart
Add one or more bundle products to the specified cart. We recommend using `addProductsToCart` instead.
Bundle · returns AddBundleProductsToCartOutput
addConfigurableProductsToCart
Add one or more configurable products to the specified cart. We recommend using `addProductsToCart` instead.
ConfigurableProduct · returns AddConfigurableProductsToCartOutput
addDownloadableProductsToCart
Add one or more downloadable products to the specified cart. We recommend using `addProductsToCart` instead.
Downloadable · returns AddDownloadableProductsToCartOutput
addProductsToCart
Add any type of product to the cart.
Quote · returns AddProductsToCartOutput
addProductsToCompareList
Add products to the specified compare list.
CompareList · returns CompareList
addProductsToNewCart
Creates a new cart and add any type of product to it
PaymentServicesPaypal · returns AddProductsToNewCartOutput
addProductsToWishlist
Add one or more products to the specified wish list. This mutation supports all product types.
Wishlist · returns AddProductsToWishlistOutput
addSimpleProductsToCart
Add one or more simple products to the specified cart. We recommend using `addProductsToCart` instead.
Quote · returns AddSimpleProductsToCartOutput
addVirtualProductsToCart
Add one or more virtual products to the specified cart. We recommend using `addProductsToCart` instead.
Quote · returns AddVirtualProductsToCartOutput
addWishlistItemsToCart
Add items in the specified wishlist to the customer's cart.
Wishlist · returns AddWishlistItemsToCartOutput
applyCouponToCart
Apply a pre-defined coupon code to the specified cart.
Quote · returns ApplyCouponToCartOutput
assignCompareListToCustomer
Assign the specified compare list to the logged in customer.
CompareList · returns AssignCompareListToCustomerOutput
assignCustomerToGuestCart
phpcs:ignore Magento2.GraphQL.ValidArgumentName
Quote · returns Cart!
cancelOrder
Cancel the specified customer order.
OrderCancellation · returns CancelOrderOutput
changeCustomerPassword
Change the password for the logged-in customer.
Customer · returns Customer
clearCart
Remove all items from the specified cart.
QuoteCommerceCe · returns ClearCartOutput!
clearWishlist
Remove all the products from the specified wish list.
Wishlist · returns RemoveProductsFromWishlistOutput
completeOrder
Synchronizes order details and place the order
PaymentServicesPaypal · returns PlaceOrderOutput
confirmCancelOrder
Cancel the specified guest customer order.
OrderCancellation · returns CancelOrderOutput
confirmEmail
Confirms the email address for a customer.
Customer · returns CustomerOutput
contactUs
Send a 'Contact Us' email to the merchant.
Contact · returns ContactUsOutput
createBraintreeClientToken
Creates Client Token for Braintree Javascript SDK initialization.
Braintree · returns String!
createBraintreePayPalClientToken
Creates Client Token for Braintree PayPal Javascript SDK initialization.
Braintree · returns String!
createBraintreePayPalVaultClientToken
Creates Client Token for Braintree PayPal Vault Javascript SDK initialization.
Braintree · returns String!
createCompareList
Create a new compare list. The compare list is saved for logged in customers.
CompareList · returns CompareList
createCustomer
DeprecatedCustomer · returns CustomerOutput
createCustomerAddress
Create a billing or shipping address for a customer or guest.
Customer · returns CustomerAddress
createCustomerV2
Create a customer account.
Customer · returns CustomerOutput
createEmptyCart
DeprecatedCreate an empty shopping cart for a guest or logged in user
Quote · returns String
createGuestCart
Create a new shopping cart
Quote · returns CreateGuestCartOutput
createPayflowProToken
Initiate a transaction and receive a token. Use this mutation for Payflow Pro and Payments Pro payment methods
Paypal · returns CreatePayflowProTokenOutput
createPaymentOrder
Creates a payment order for further payment processing
PaymentServicesPaypal · returns CreatePaymentOrderOutput
createPaypalExpressToken
Initiate an Express Checkout transaction and receive a token. Use this mutation for Express Checkout and Payments Standard payment methods.
Paypal · returns PaypalExpressTokenOutput
createProductReview
Create a product review for the specified product.
Review · returns CreateProductReviewOutput!
createVaultCardPaymentToken
Creates a vault payment token
PaymentServicesPaypal · returns CreateVaultCardPaymentTokenOutput
createVaultCardSetupToken
Creates a vault card setup token
PaymentServicesPaypal · returns CreateVaultCardSetupTokenOutput
deleteCompareList
Delete the specified compare list.
CompareList · returns DeleteCompareListOutput
deleteCustomer
Delete customer account
Customer · returns Boolean
deleteCustomerAddress
DeprecatedDelete the billing or shipping address of a customer.
Customer · returns Boolean
deleteCustomerAddressV2
Delete the billing or shipping address of a customer.
Customer · returns Boolean
deletePaymentToken
phpcs:ignore Magento2.GraphQL.ValidArgumentName
Vault · returns DeletePaymentTokenOutput
estimateShippingMethods
Estimate shipping method(s) for cart based on address
Quote · returns [AvailableShippingMethod]
estimateTotals
Estimate totals for cart based on the address
Quote · returns EstimateTotalsOutput!
generateCustomerToken
Generate a token for specified customer.
Customer · returns CustomerToken
generateCustomerTokenAsAdmin
Request a customer token so that an administrator can perform remote shopping assistance.
LoginAsCustomer · returns GenerateCustomerTokenAsAdminOutput
handlePayflowProResponse
Handle a payment response and save the payment in Quote. Use this mutation for Payflow Pro and Payments Pro payment methods.
Paypal · returns PayflowProResponseOutput
mergeCarts
phpcs:ignore Magento2.GraphQL.ValidArgumentName
Quote · returns Cart!
placeOrder
Convert the quote into an order.
Quote · returns PlaceOrderOutput
removeCouponFromCart
Remove a previously-applied coupon from the cart. The cart must contain at least one item in order to remove the coupon.
Quote · returns RemoveCouponFromCartOutput
removeItemFromCart
Delete the entire quantity of a specified item from the cart. If you remove all items from the cart, the cart continues to exist.
Quote · returns RemoveItemFromCartOutput
removeProductsFromCompareList
Remove products from the specified compare list.
CompareList · returns CompareList
removeProductsFromWishlist
Remove one or more products from the specified wish list.
Wishlist · returns RemoveProductsFromWishlistOutput
reorderItems
Add all products from a customer's previous order to the cart.
Sales · returns ReorderItemsOutput
requestGuestOrderCancel
Request to cancel specified guest order.
OrderCancellation · returns CancelOrderOutput
requestPasswordResetEmail
Request an email with a reset password token for the registered customer identified by the specified email.
Customer · returns Boolean
resendConfirmationEmail
Resends the confirmation email to a customer.
Customer · returns Boolean
resetPassword
Reset a customer's password using the reset password token that the customer received in an email after requesting it using `requestPasswordResetEmail`.
Customer · returns Boolean
revokeCustomerToken
Revoke the customer token.
Customer · returns RevokeCustomerTokenOutput
sendEmailToFriend
Send a message on behalf of a customer to the specified email addresses.
SendFriend · returns SendEmailToFriendOutput
setBillingAddressOnCart
Set the billing address on a specific cart.
Quote · returns SetBillingAddressOnCartOutput
setCartAsInactive
Sets the cart as inactive
PaymentServicesPaypal · returns SetCartAsInactiveOutput
setGuestEmailOnCart
Assign the email address of a guest to the cart.
Quote · returns SetGuestEmailOnCartOutput
setPaymentMethodAndPlaceOrder
DeprecatedSet the cart payment method and convert the cart into an order.
Quote · returns PlaceOrderOutput
setPaymentMethodOnCart
Apply a payment method to the cart.
Quote · returns SetPaymentMethodOnCartOutput
setShippingAddressesOnCart
Set one or more shipping addresses on a specific cart.
Quote · returns SetShippingAddressesOnCartOutput
setShippingMethodsOnCart
Set one or more delivery methods on a cart.
Quote · returns SetShippingMethodsOnCartOutput
subscribeEmailToNewsletter
Subscribe the specified email to the store's newsletter.
Newsletter · returns SubscribeEmailToNewsletterOutput
syncPaymentOrder
Synchronizes the payment order details for further payment processing
PaymentServicesPaypal · returns Boolean
updateCartItems
Modify items in the cart.
Quote · returns UpdateCartItemsOutput
updateCustomer
DeprecatedCustomer · returns CustomerOutput
updateCustomerAddress
DeprecatedUpdate the billing or shipping address of a customer or guest.
Customer · returns CustomerAddress
updateCustomerAddressV2
Update the billing or shipping address of a customer or guest.
Customer · returns CustomerAddress
updateCustomerEmail
Change the email address for the logged-in customer.
Customer · returns CustomerOutput
updateCustomerV2
Update the customer's personal information.
Customer · returns CustomerOutput
updateProductsInWishlist
Update one or more products in the specified wish list.
Wishlist · returns UpdateProductsInWishlistOutput
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.