Mutation
The schema's entry point for all mutation operations.
Anchor to FieldsFields
- abandonmentUpdateActivitiesDeliveryStatuses (AbandonmentUpdateActivitiesDeliveryStatusesPayload)
- appPurchaseOneTimeCreate (AppPurchaseOneTimeCreatePayload)
- appRevokeAccessScopes (AppRevokeAccessScopesPayload)
- appSubscriptionCancel (AppSubscriptionCancelPayload)
- appSubscriptionCreate (AppSubscriptionCreatePayload)
- appSubscriptionLineItemUpdate (AppSubscriptionLineItemUpdatePayload)
- appSubscriptionTrialExtend (AppSubscriptionTrialExtendPayload)
- appUninstall (AppUninstallPayload)
- appUsageRecordCreate (AppUsageRecordCreatePayload)
- articleCreate (ArticleCreatePayload)
- articleDelete (ArticleDeletePayload)
- articleUpdate (ArticleUpdatePayload)
- backupRegionUpdate (BackupRegionUpdatePayload)
- blogCreate (BlogCreatePayload)
- blogDelete (BlogDeletePayload)
- blogUpdate (BlogUpdatePayload)
- bulkOperationCancel (BulkOperationCancelPayload)
- bulkOperationRunMutation (BulkOperationRunMutationPayload)
- bulkOperationRunQuery (BulkOperationRunQueryPayload)
- bulkProductResourceFeedbackCreate (BulkProductResourceFeedbackCreatePayload)
- carrierServiceCreate (CarrierServiceCreatePayload)
- carrierServiceDelete (CarrierServiceDeletePayload)
- carrierServiceUpdate (CarrierServiceUpdatePayload)
- cartTransformCreate (CartTransformCreatePayload)
- cartTransformDelete (CartTransformDeletePayload)
- catalogContextUpdate (CatalogContextUpdatePayload)
- catalogCreate (CatalogCreatePayload)
- catalogDelete (CatalogDeletePayload)
- catalogUpdate (CatalogUpdatePayload)
- checkoutBrandingUpsert (CheckoutBrandingUpsertPayload)
- collectionAddProducts (CollectionAddProductsPayload)
- collectionAddProductsV2 (CollectionAddProductsV2Payload)
- collectionCreate (CollectionCreatePayload)
- collectionDelete (CollectionDeletePayload)
- collectionDuplicate (CollectionDuplicatePayload)
- collectionRemoveProducts (CollectionRemoveProductsPayload)
- collectionReorderProducts (CollectionReorderProductsPayload)
- collectionUpdate (CollectionUpdatePayload)
- combinedListingUpdate (CombinedListingUpdatePayload)
- commentApprove (CommentApprovePayload)
- commentDelete (CommentDeletePayload)
- commentNotSpam (CommentNotSpamPayload)
- commentSpam (CommentSpamPayload)
- companiesDelete (CompaniesDeletePayload)
- companyAddressDelete (CompanyAddressDeletePayload)
- companyAssignCustomerAsContact (CompanyAssignCustomerAsContactPayload)
- companyAssignMainContact (CompanyAssignMainContactPayload)
- companyContactAssignRole (CompanyContactAssignRolePayload)
- companyContactAssignRoles (CompanyContactAssignRolesPayload)
- companyContactCreate (CompanyContactCreatePayload)
- companyContactDelete (CompanyContactDeletePayload)
- companyContactRemoveFromCompany (CompanyContactRemoveFromCompanyPayload)
- companyContactRevokeRole (CompanyContactRevokeRolePayload)
- companyContactRevokeRoles (CompanyContactRevokeRolesPayload)
- companyContactsDelete (CompanyContactsDeletePayload)
- companyContactUpdate (CompanyContactUpdatePayload)
- companyCreate (CompanyCreatePayload)
- companyDelete (CompanyDeletePayload)
- companyLocationAssignAddress (CompanyLocationAssignAddressPayload)
- companyLocationAssignRoles (CompanyLocationAssignRolesPayload)
- companyLocationAssignStaffMembers (CompanyLocationAssignStaffMembersPayload)
- companyLocationCreate (CompanyLocationCreatePayload)
- companyLocationDelete (CompanyLocationDeletePayload)
- companyLocationRemoveStaffMembers (CompanyLocationRemoveStaffMembersPayload)
- companyLocationRevokeRoles (CompanyLocationRevokeRolesPayload)
- companyLocationsDelete (CompanyLocationsDeletePayload)
- companyLocationTaxSettingsUpdate (CompanyLocationTaxSettingsUpdatePayload)
- companyLocationUpdate (CompanyLocationUpdatePayload)
- companyRevokeMainContact (CompanyRevokeMainContactPayload)
- companyUpdate (CompanyUpdatePayload)
- consentPolicyUpdate (ConsentPolicyUpdatePayload)
- customerAddressCreate (CustomerAddressCreatePayload)
- customerAddressDelete (CustomerAddressDeletePayload)
- customerAddressUpdate (CustomerAddressUpdatePayload)
- customerAddTaxExemptions (CustomerAddTaxExemptionsPayload)
- customerCancelDataErasure (CustomerCancelDataErasurePayload)
- customerCreate (CustomerCreatePayload)
- customerDelete (CustomerDeletePayload)
- customerEmailMarketingConsentUpdate (CustomerEmailMarketingConsentUpdatePayload)
- customerGenerateAccountActivationUrl (CustomerGenerateAccountActivationUrlPayload)
- customerMerge (CustomerMergePayload)
- customerPaymentMethodCreditCardCreate (CustomerPaymentMethodCreditCardCreatePayload)
- customerPaymentMethodCreditCardUpdate (CustomerPaymentMethodCreditCardUpdatePayload)
- customerPaymentMethodGetUpdateUrl (CustomerPaymentMethodGetUpdateUrlPayload)
- customerPaymentMethodPaypalBillingAgreementCreate (CustomerPaymentMethodPaypalBillingAgreementCreatePayload)
- customerPaymentMethodPaypalBillingAgreementUpdate (CustomerPaymentMethodPaypalBillingAgreementUpdatePayload)
- customerPaymentMethodRemoteCreate (CustomerPaymentMethodRemoteCreatePayload)
- customerPaymentMethodRevoke (CustomerPaymentMethodRevokePayload)
- customerPaymentMethodSendUpdateEmail (CustomerPaymentMethodSendUpdateEmailPayload)
- customerRemoveTaxExemptions (CustomerRemoveTaxExemptionsPayload)
- customerReplaceTaxExemptions (CustomerReplaceTaxExemptionsPayload)
- customerRequestDataErasure (CustomerRequestDataErasurePayload)
- customerSegmentMembersQueryCreate (CustomerSegmentMembersQueryCreatePayload)
- customerSendAccountInviteEmail (CustomerSendAccountInviteEmailPayload)
- customerSet (CustomerSetPayload)
- customerSmsMarketingConsentUpdate (CustomerSmsMarketingConsentUpdatePayload)
- customerUpdate (CustomerUpdatePayload)
- customerUpdateDefaultAddress (CustomerUpdateDefaultAddressPayload)
- dataSaleOptOut (DataSaleOptOutPayload)
- delegateAccessTokenCreate (DelegateAccessTokenCreatePayload)
- delegateAccessTokenDestroy (DelegateAccessTokenDestroyPayload)
- deliveryCustomizationActivation (DeliveryCustomizationActivationPayload)
- deliveryCustomizationCreate (DeliveryCustomizationCreatePayload)
- deliveryCustomizationDelete (DeliveryCustomizationDeletePayload)
- deliveryCustomizationUpdate (DeliveryCustomizationUpdatePayload)
- deliveryProfileCreate (DeliveryProfileCreatePayload)
- deliveryProfileRemove (DeliveryProfileRemovePayload)
- deliveryProfileUpdate (DeliveryProfileUpdatePayload)
- deliveryPromiseParticipantsUpdate (DeliveryPromiseParticipantsUpdatePayload)
- deliveryPromiseProviderUpsert (DeliveryPromiseProviderUpsertPayload)
- deliverySettingUpdate (DeliverySettingUpdatePayload)
- discountAutomaticActivate (DiscountAutomaticActivatePayload)
- discountAutomaticAppCreate (DiscountAutomaticAppCreatePayload)
- discountAutomaticAppUpdate (DiscountAutomaticAppUpdatePayload)
- discountAutomaticBasicCreate (DiscountAutomaticBasicCreatePayload)
- discountAutomaticBasicUpdate (DiscountAutomaticBasicUpdatePayload)
- discountAutomaticBulkDelete (DiscountAutomaticBulkDeletePayload)
- discountAutomaticBxgyCreate (DiscountAutomaticBxgyCreatePayload)
- discountAutomaticBxgyUpdate (DiscountAutomaticBxgyUpdatePayload)
- discountAutomaticDeactivate (DiscountAutomaticDeactivatePayload)
- discountAutomaticDelete (DiscountAutomaticDeletePayload)
- discountAutomaticFreeShippingCreate (DiscountAutomaticFreeShippingCreatePayload)
- discountAutomaticFreeShippingUpdate (DiscountAutomaticFreeShippingUpdatePayload)
- discountCodeActivate (DiscountCodeActivatePayload)
- discountCodeAppCreate (DiscountCodeAppCreatePayload)
- discountCodeAppUpdate (DiscountCodeAppUpdatePayload)
- discountCodeBasicCreate (DiscountCodeBasicCreatePayload)
- discountCodeBasicUpdate (DiscountCodeBasicUpdatePayload)
- discountCodeBulkActivate (DiscountCodeBulkActivatePayload)
- discountCodeBulkDeactivate (DiscountCodeBulkDeactivatePayload)
- discountCodeBulkDelete (DiscountCodeBulkDeletePayload)
- discountCodeBxgyCreate (DiscountCodeBxgyCreatePayload)
- discountCodeBxgyUpdate (DiscountCodeBxgyUpdatePayload)
- discountCodeDeactivate (DiscountCodeDeactivatePayload)
- discountCodeDelete (DiscountCodeDeletePayload)
- discountCodeFreeShippingCreate (DiscountCodeFreeShippingCreatePayload)
- discountCodeFreeShippingUpdate (DiscountCodeFreeShippingUpdatePayload)
- discountCodeRedeemCodeBulkDelete (DiscountCodeRedeemCodeBulkDeletePayload)
- discountRedeemCodeBulkAdd (DiscountRedeemCodeBulkAddPayload)
- disputeEvidenceUpdate (DisputeEvidenceUpdatePayload)
- draftOrderBulkAddTags (DraftOrderBulkAddTagsPayload)
- draftOrderBulkDelete (DraftOrderBulkDeletePayload)
- draftOrderBulkRemoveTags (DraftOrderBulkRemoveTagsPayload)
- draftOrderCalculate (DraftOrderCalculatePayload)
- draftOrderComplete (DraftOrderCompletePayload)
- draftOrderCreate (DraftOrderCreatePayload)
- draftOrderCreateFromOrder (DraftOrderCreateFromOrderPayload)
- draftOrderDelete (DraftOrderDeletePayload)
- draftOrderDuplicate (DraftOrderDuplicatePayload)
- draftOrderInvoicePreview (DraftOrderInvoicePreviewPayload)
- draftOrderInvoiceSend (DraftOrderInvoiceSendPayload)
- draftOrderUpdate (DraftOrderUpdatePayload)
- eventBridgeServerPixelUpdate (EventBridgeServerPixelUpdatePayload)
- fileAcknowledgeUpdateFailed (FileAcknowledgeUpdateFailedPayload)
- fileCreate (FileCreatePayload)
- fileDelete (FileDeletePayload)
- fileUpdate (FileUpdatePayload)
- flowTriggerReceive (FlowTriggerReceivePayload)
- fulfillmentCancel (FulfillmentCancelPayload)
- fulfillmentConstraintRuleCreate (FulfillmentConstraintRuleCreatePayload)
- fulfillmentConstraintRuleDelete (FulfillmentConstraintRuleDeletePayload)
- fulfillmentConstraintRuleUpdate (FulfillmentConstraintRuleUpdatePayload)
- fulfillmentCreate (FulfillmentCreatePayload)
- fulfillmentEventCreate (FulfillmentEventCreatePayload)
- fulfillmentOrderAcceptCancellationRequest (FulfillmentOrderAcceptCancellationRequestPayload)
- fulfillmentOrderAcceptFulfillmentRequest (FulfillmentOrderAcceptFulfillmentRequestPayload)
- fulfillmentOrderCancel (FulfillmentOrderCancelPayload)
- fulfillmentOrderClose (FulfillmentOrderClosePayload)
- fulfillmentOrderHold (FulfillmentOrderHoldPayload)
- fulfillmentOrderLineItemsPreparedForPickup (FulfillmentOrderLineItemsPreparedForPickupPayload)
- fulfillmentOrderMerge (FulfillmentOrderMergePayload)
- fulfillmentOrderMove (FulfillmentOrderMovePayload)
- fulfillmentOrderOpen (FulfillmentOrderOpenPayload)
- fulfillmentOrderRejectCancellationRequest (FulfillmentOrderRejectCancellationRequestPayload)
- fulfillmentOrderRejectFulfillmentRequest (FulfillmentOrderRejectFulfillmentRequestPayload)
- fulfillmentOrderReleaseHold (FulfillmentOrderReleaseHoldPayload)
- fulfillmentOrderReschedule (FulfillmentOrderReschedulePayload)
- fulfillmentOrderSplit (FulfillmentOrderSplitPayload)
- fulfillmentOrdersReroute (FulfillmentOrdersReroutePayload)
- fulfillmentOrdersSetFulfillmentDeadline (FulfillmentOrdersSetFulfillmentDeadlinePayload)
- fulfillmentOrderSubmitCancellationRequest (FulfillmentOrderSubmitCancellationRequestPayload)
- fulfillmentOrderSubmitFulfillmentRequest (FulfillmentOrderSubmitFulfillmentRequestPayload)
- fulfillmentServiceCreate (FulfillmentServiceCreatePayload)
- fulfillmentServiceDelete (FulfillmentServiceDeletePayload)
- fulfillmentServiceUpdate (FulfillmentServiceUpdatePayload)
- fulfillmentTrackingInfoUpdate (FulfillmentTrackingInfoUpdatePayload)
- giftCardCreate (GiftCardCreatePayload)
- giftCardCredit (GiftCardCreditPayload)
- giftCardDeactivate (GiftCardDeactivatePayload)
- giftCardDebit (GiftCardDebitPayload)
- giftCardSendNotificationToCustomer (GiftCardSendNotificationToCustomerPayload)
- giftCardSendNotificationToRecipient (GiftCardSendNotificationToRecipientPayload)
- giftCardUpdate (GiftCardUpdatePayload)
- inventoryActivate (InventoryActivatePayload)
- inventoryAdjustQuantities (InventoryAdjustQuantitiesPayload)
- inventoryBulkToggleActivation (InventoryBulkToggleActivationPayload)
- inventoryDeactivate (InventoryDeactivatePayload)
- inventoryItemUpdate (InventoryItemUpdatePayload)
- inventoryMoveQuantities (InventoryMoveQuantitiesPayload)
- inventorySetQuantities (InventorySetQuantitiesPayload)
- inventoryShipmentAddItems (InventoryShipmentAddItemsPayload)
- inventoryShipmentCreate (InventoryShipmentCreatePayload)
- inventoryShipmentCreateInTransit (InventoryShipmentCreateInTransitPayload)
- inventoryShipmentDelete (InventoryShipmentDeletePayload)
- inventoryShipmentMarkInTransit (InventoryShipmentMarkInTransitPayload)
- inventoryShipmentReceive (InventoryShipmentReceivePayload)
- inventoryShipmentRemoveItems (InventoryShipmentRemoveItemsPayload)
- inventoryShipmentSetTracking (InventoryShipmentSetTrackingPayload)
- inventoryShipmentUpdateItemQuantities (InventoryShipmentUpdateItemQuantitiesPayload)
- inventoryTransferCancel (InventoryTransferCancelPayload)
- inventoryTransferCreate (InventoryTransferCreatePayload)
- inventoryTransferCreateAsReadyToShip (InventoryTransferCreateAsReadyToShipPayload)
- inventoryTransferDelete (InventoryTransferDeletePayload)
- inventoryTransferDuplicate (InventoryTransferDuplicatePayload)
- inventoryTransferEdit (InventoryTransferEditPayload)
- inventoryTransferMarkAsReadyToShip (InventoryTransferMarkAsReadyToShipPayload)
- inventoryTransferRemoveItems (InventoryTransferRemoveItemsPayload)
- inventoryTransferSetItems (InventoryTransferSetItemsPayload)
- locationActivate (LocationActivatePayload)
- locationAdd (LocationAddPayload)
- locationDeactivate (LocationDeactivatePayload)
- locationDelete (LocationDeletePayload)
- locationEdit (LocationEditPayload)
- locationLocalPickupDisable (LocationLocalPickupDisablePayload)
- locationLocalPickupEnable (LocationLocalPickupEnablePayload)
- marketCreate (MarketCreatePayload)
- marketDelete (MarketDeletePayload)
- marketingActivitiesDeleteAllExternal (MarketingActivitiesDeleteAllExternalPayload)
- marketingActivityCreate (MarketingActivityCreatePayload)
- marketingActivityCreateExternal (MarketingActivityCreateExternalPayload)
- marketingActivityDeleteExternal (MarketingActivityDeleteExternalPayload)
- marketingActivityUpdate (MarketingActivityUpdatePayload)
- marketingActivityUpdateExternal (MarketingActivityUpdateExternalPayload)
- marketingActivityUpsertExternal (MarketingActivityUpsertExternalPayload)
- marketingEngagementCreate (MarketingEngagementCreatePayload)
- marketingEngagementsDelete (MarketingEngagementsDeletePayload)
- marketLocalizationsRegister (MarketLocalizationsRegisterPayload)
- marketLocalizationsRemove (MarketLocalizationsRemovePayload)
- marketUpdate (MarketUpdatePayload)
- menuCreate (MenuCreatePayload)
- menuDelete (MenuDeletePayload)
- menuUpdate (MenuUpdatePayload)
- metafieldDefinitionCreate (MetafieldDefinitionCreatePayload)
- metafieldDefinitionDelete (MetafieldDefinitionDeletePayload)
- metafieldDefinitionPin (MetafieldDefinitionPinPayload)
- metafieldDefinitionUnpin (MetafieldDefinitionUnpinPayload)
- metafieldDefinitionUpdate (MetafieldDefinitionUpdatePayload)
- metafieldsDelete (MetafieldsDeletePayload)
- metafieldsSet (MetafieldsSetPayload)
- metaobjectBulkDelete (MetaobjectBulkDeletePayload)
- metaobjectCreate (MetaobjectCreatePayload)
- metaobjectDefinitionCreate (MetaobjectDefinitionCreatePayload)
- metaobjectDefinitionDelete (MetaobjectDefinitionDeletePayload)
- metaobjectDefinitionUpdate (MetaobjectDefinitionUpdatePayload)
- metaobjectDelete (MetaobjectDeletePayload)
- metaobjectUpdate (MetaobjectUpdatePayload)
- metaobjectUpsert (MetaobjectUpsertPayload)
- mobilePlatformApplicationCreate (MobilePlatformApplicationCreatePayload)
- mobilePlatformApplicationDelete (MobilePlatformApplicationDeletePayload)
- mobilePlatformApplicationUpdate (MobilePlatformApplicationUpdatePayload)
- orderCancel (OrderCancelPayload)
- orderCapture (OrderCapturePayload)
- orderClose (OrderClosePayload)
- orderCreate (OrderCreatePayload)
- orderCreateMandatePayment (OrderCreateMandatePaymentPayload)
- orderCreateManualPayment (OrderCreateManualPaymentPayload)
- orderCustomerRemove (OrderCustomerRemovePayload)
- orderCustomerSet (OrderCustomerSetPayload)
- orderDelete (OrderDeletePayload)
- orderEditAddCustomItem (OrderEditAddCustomItemPayload)
- orderEditAddLineItemDiscount (OrderEditAddLineItemDiscountPayload)
- orderEditAddShippingLine (OrderEditAddShippingLinePayload)
- orderEditAddVariant (OrderEditAddVariantPayload)
- orderEditBegin (OrderEditBeginPayload)
- orderEditCommit (OrderEditCommitPayload)
- orderEditRemoveDiscount (OrderEditRemoveDiscountPayload)
- orderEditRemoveShippingLine (OrderEditRemoveShippingLinePayload)
- orderEditSetQuantity (OrderEditSetQuantityPayload)
- orderEditUpdateDiscount (OrderEditUpdateDiscountPayload)
- orderEditUpdateShippingLine (OrderEditUpdateShippingLinePayload)
- orderInvoiceSend (OrderInvoiceSendPayload)
- orderMarkAsPaid (OrderMarkAsPaidPayload)
- orderOpen (OrderOpenPayload)
- orderRiskAssessmentCreate (OrderRiskAssessmentCreatePayload)
- orderUpdate (OrderUpdatePayload)
- pageCreate (PageCreatePayload)
- pageDelete (PageDeletePayload)
- pageUpdate (PageUpdatePayload)
- paymentCustomizationActivation (PaymentCustomizationActivationPayload)
- paymentCustomizationCreate (PaymentCustomizationCreatePayload)
- paymentCustomizationDelete (PaymentCustomizationDeletePayload)
- paymentCustomizationUpdate (PaymentCustomizationUpdatePayload)
- paymentReminderSend (PaymentReminderSendPayload)
- paymentTermsCreate (PaymentTermsCreatePayload)
- paymentTermsDelete (PaymentTermsDeletePayload)
- paymentTermsUpdate (PaymentTermsUpdatePayload)
- priceListCreate (PriceListCreatePayload)
- priceListDelete (PriceListDeletePayload)
- priceListFixedPricesAdd (PriceListFixedPricesAddPayload)
- priceListFixedPricesByProductUpdate (PriceListFixedPricesByProductUpdatePayload)
- priceListFixedPricesDelete (PriceListFixedPricesDeletePayload)
- priceListFixedPricesUpdate (PriceListFixedPricesUpdatePayload)
- priceListUpdate (PriceListUpdatePayload)
- privacyFeaturesDisable (PrivacyFeaturesDisablePayload)
- productBundleCreate (ProductBundleCreatePayload)
- productBundleUpdate (ProductBundleUpdatePayload)
- productCreate (ProductCreatePayload)
- productDelete (ProductDeletePayload)
- productDuplicate (ProductDuplicatePayload)
- productFeedCreate (ProductFeedCreatePayload)
- productFeedDelete (ProductFeedDeletePayload)
- productFullSync (ProductFullSyncPayload)
- productJoinSellingPlanGroups (ProductJoinSellingPlanGroupsPayload)
- productLeaveSellingPlanGroups (ProductLeaveSellingPlanGroupsPayload)
- productOptionsCreate (ProductOptionsCreatePayload)
- productOptionsDelete (ProductOptionsDeletePayload)
- productOptionsReorder (ProductOptionsReorderPayload)
- productOptionUpdate (ProductOptionUpdatePayload)
- productReorderMedia (ProductReorderMediaPayload)
- productSet (ProductSetPayload)
- productUpdate (ProductUpdatePayload)
- productVariantAppendMedia (ProductVariantAppendMediaPayload)
- productVariantDetachMedia (ProductVariantDetachMediaPayload)
- productVariantJoinSellingPlanGroups (ProductVariantJoinSellingPlanGroupsPayload)
- productVariantLeaveSellingPlanGroups (ProductVariantLeaveSellingPlanGroupsPayload)
- productVariantRelationshipBulkUpdate (ProductVariantRelationshipBulkUpdatePayload)
- productVariantsBulkCreate (ProductVariantsBulkCreatePayload)
- productVariantsBulkDelete (ProductVariantsBulkDeletePayload)
- productVariantsBulkReorder (ProductVariantsBulkReorderPayload)
- productVariantsBulkUpdate (ProductVariantsBulkUpdatePayload)
- publicationCreate (PublicationCreatePayload)
- publicationDelete (PublicationDeletePayload)
- publicationUpdate (PublicationUpdatePayload)
- publishablePublish (PublishablePublishPayload)
- publishableUnpublish (PublishableUnpublishPayload)
- pubSubServerPixelUpdate (PubSubServerPixelUpdatePayload)
- quantityPricingByVariantUpdate (QuantityPricingByVariantUpdatePayload)
- quantityRulesAdd (QuantityRulesAddPayload)
- quantityRulesDelete (QuantityRulesDeletePayload)
- refundCreate (RefundCreatePayload)
- removeFromReturn (RemoveFromReturnPayload)
- returnApproveRequest (ReturnApproveRequestPayload)
- returnCancel (ReturnCancelPayload)
- returnClose (ReturnClosePayload)
- returnCreate (ReturnCreatePayload)
- returnDeclineRequest (ReturnDeclineRequestPayload)
- returnProcess (ReturnProcessPayload)
- returnReopen (ReturnReopenPayload)
- returnRequest (ReturnRequestPayload)
- reverseDeliveryCreateWithShipping (ReverseDeliveryCreateWithShippingPayload)
- reverseDeliveryShippingUpdate (ReverseDeliveryShippingUpdatePayload)
- reverseFulfillmentOrderDispose (ReverseFulfillmentOrderDisposePayload)
- savedSearchCreate (SavedSearchCreatePayload)
- savedSearchDelete (SavedSearchDeletePayload)
- savedSearchUpdate (SavedSearchUpdatePayload)
- scriptTagCreate (ScriptTagCreatePayload)
- scriptTagDelete (ScriptTagDeletePayload)
- scriptTagUpdate (ScriptTagUpdatePayload)
- segmentCreate (SegmentCreatePayload)
- segmentDelete (SegmentDeletePayload)
- segmentUpdate (SegmentUpdatePayload)
- sellingPlanGroupAddProducts (SellingPlanGroupAddProductsPayload)
- sellingPlanGroupAddProductVariants (SellingPlanGroupAddProductVariantsPayload)
- sellingPlanGroupCreate (SellingPlanGroupCreatePayload)
- sellingPlanGroupDelete (SellingPlanGroupDeletePayload)
- sellingPlanGroupRemoveProducts (SellingPlanGroupRemoveProductsPayload)
- sellingPlanGroupRemoveProductVariants (SellingPlanGroupRemoveProductVariantsPayload)
- sellingPlanGroupUpdate (SellingPlanGroupUpdatePayload)
- serverPixelCreate (ServerPixelCreatePayload)
- serverPixelDelete (ServerPixelDeletePayload)
- shippingPackageDelete (ShippingPackageDeletePayload)
- shippingPackageMakeDefault (ShippingPackageMakeDefaultPayload)
- shippingPackageUpdate (ShippingPackageUpdatePayload)
- shopifyPaymentsPayoutAlternateCurrencyCreate (ShopifyPaymentsPayoutAlternateCurrencyCreatePayload)
- shopLocaleDisable (ShopLocaleDisablePayload)
- shopLocaleEnable (ShopLocaleEnablePayload)
- shopLocaleUpdate (ShopLocaleUpdatePayload)
- shopPolicyUpdate (ShopPolicyUpdatePayload)
- shopResourceFeedbackCreate (ShopResourceFeedbackCreatePayload)
- stagedUploadsCreate (StagedUploadsCreatePayload)
- standardMetafieldDefinitionEnable (StandardMetafieldDefinitionEnablePayload)
- standardMetaobjectDefinitionEnable (StandardMetaobjectDefinitionEnablePayload)
- storeCreditAccountCredit (StoreCreditAccountCreditPayload)
- storeCreditAccountDebit (StoreCreditAccountDebitPayload)
- storefrontAccessTokenCreate (StorefrontAccessTokenCreatePayload)
- storefrontAccessTokenDelete (StorefrontAccessTokenDeletePayload)
- subscriptionBillingAttemptCreate (SubscriptionBillingAttemptCreatePayload)
- subscriptionBillingCycleBulkCharge (SubscriptionBillingCycleBulkChargePayload)
- subscriptionBillingCycleBulkSearch (SubscriptionBillingCycleBulkSearchPayload)
- subscriptionBillingCycleCharge (SubscriptionBillingCycleChargePayload)
- subscriptionBillingCycleContractDraftCommit (SubscriptionBillingCycleContractDraftCommitPayload)
- subscriptionBillingCycleContractDraftConcatenate (SubscriptionBillingCycleContractDraftConcatenatePayload)
- subscriptionBillingCycleContractEdit (SubscriptionBillingCycleContractEditPayload)
- subscriptionBillingCycleEditDelete (SubscriptionBillingCycleEditDeletePayload)
- subscriptionBillingCycleEditsDelete (SubscriptionBillingCycleEditsDeletePayload)
- subscriptionBillingCycleScheduleEdit (SubscriptionBillingCycleScheduleEditPayload)
- subscriptionBillingCycleSkip (SubscriptionBillingCycleSkipPayload)
- subscriptionBillingCycleUnskip (SubscriptionBillingCycleUnskipPayload)
- subscriptionContractActivate (SubscriptionContractActivatePayload)
- subscriptionContractAtomicCreate (SubscriptionContractAtomicCreatePayload)
- subscriptionContractCancel (SubscriptionContractCancelPayload)
- subscriptionContractCreate (SubscriptionContractCreatePayload)
- subscriptionContractExpire (SubscriptionContractExpirePayload)
- subscriptionContractFail (SubscriptionContractFailPayload)
- subscriptionContractPause (SubscriptionContractPausePayload)
- subscriptionContractProductChange (SubscriptionContractProductChangePayload)
- subscriptionContractSetNextBillingDate (SubscriptionContractSetNextBillingDatePayload)
- subscriptionContractUpdate (SubscriptionContractUpdatePayload)
- subscriptionDraftCommit (SubscriptionDraftCommitPayload)
- subscriptionDraftDiscountAdd (SubscriptionDraftDiscountAddPayload)
- subscriptionDraftDiscountCodeApply (SubscriptionDraftDiscountCodeApplyPayload)
- subscriptionDraftDiscountRemove (SubscriptionDraftDiscountRemovePayload)
- subscriptionDraftDiscountUpdate (SubscriptionDraftDiscountUpdatePayload)
- subscriptionDraftFreeShippingDiscountAdd (SubscriptionDraftFreeShippingDiscountAddPayload)
- subscriptionDraftFreeShippingDiscountUpdate (SubscriptionDraftFreeShippingDiscountUpdatePayload)
- subscriptionDraftLineAdd (SubscriptionDraftLineAddPayload)
- subscriptionDraftLineRemove (SubscriptionDraftLineRemovePayload)
- subscriptionDraftLineUpdate (SubscriptionDraftLineUpdatePayload)
- subscriptionDraftUpdate (SubscriptionDraftUpdatePayload)
- tagsAdd (TagsAddPayload)
- tagsRemove (TagsRemovePayload)
- taxAppConfigure (TaxAppConfigurePayload)
- taxSummaryCreate (TaxSummaryCreatePayload)
- themeCreate (ThemeCreatePayload)
- themeDelete (ThemeDeletePayload)
- themeDuplicate (ThemeDuplicatePayload)
- themeFilesCopy (ThemeFilesCopyPayload)
- themeFilesDelete (ThemeFilesDeletePayload)
- themeFilesUpsert (ThemeFilesUpsertPayload)
- themePublish (ThemePublishPayload)
- themeUpdate (ThemeUpdatePayload)
- transactionVoid (TransactionVoidPayload)
- translationsRegister (TranslationsRegisterPayload)
- translationsRemove (TranslationsRemovePayload)
- urlRedirectBulkDeleteAll (UrlRedirectBulkDeleteAllPayload)
- urlRedirectBulkDeleteByIds (UrlRedirectBulkDeleteByIdsPayload)
- urlRedirectBulkDeleteBySavedSearch (UrlRedirectBulkDeleteBySavedSearchPayload)
- urlRedirectBulkDeleteBySearch (UrlRedirectBulkDeleteBySearchPayload)
- urlRedirectCreate (UrlRedirectCreatePayload)
- urlRedirectDelete (UrlRedirectDeletePayload)
- urlRedirectImportCreate (UrlRedirectImportCreatePayload)
- urlRedirectImportSubmit (UrlRedirectImportSubmitPayload)
- urlRedirectUpdate (UrlRedirectUpdatePayload)
- validationCreate (ValidationCreatePayload)
- validationDelete (ValidationDeletePayload)
- validationUpdate (ValidationUpdatePayload)
- webhookSubscriptionCreate (WebhookSubscriptionCreatePayload)
- webhookSubscriptionDelete (WebhookSubscriptionDeletePayload)
- webhookSubscriptionUpdate (WebhookSubscriptionUpdatePayload)
- webPixelCreate (WebPixelCreatePayload)
- webPixelDelete (WebPixelDeletePayload)
- webPixelUpdate (WebPixelUpdatePayload)
- webPresenceCreate (WebPresenceCreatePayload)
- webPresenceDelete (WebPresenceDeletePayload)
- webPresenceUpdate (WebPresenceUpdatePayload)
- Anchor to abandonmentUpdateActivitiesDeliveryStatusesabandonment•Abandonment
Update Activities Delivery Statuses Update Activities Delivery Statuses Payload Updates the marketing activities delivery statuses for an abandonment.
- Anchor to abandonmentIdabandonment•ID!
Id required The ID of the abandonment that needs to be updated.
- Anchor to marketingActivityIdmarketing•ID!
Activity Id required The ID of the marketing activity that needs to be updated.
- Anchor to deliveryStatusdelivery•Abandonment
Status Delivery State! required The new delivery status of the marketing activity for this abandonment.
- Anchor to deliveredAtdelivered•Date
At Time The delivery timestamp if the activity delivered.
- Anchor to deliveryStatusChangeReasondelivery•String
Status Change Reason The reason why the activity was or was not delivered.
Arguments
- Anchor to appPurchaseOneTimeCreateapp•App
Purchase One Time Create Purchase One Time Create Payload Creates a one-time charge for app features or services that don't require recurring billing. This mutation is ideal for apps that sell individual features, premium content, or services on a per-use basis rather than subscription models.
For example, a design app might charge merchants once for premium templates, or a marketing app could bill for individual campaign setups without ongoing monthly fees.
Use the
mutation to:- Charge for premium features or content purchases
- Bill for professional services or setup fees
- Generate revenue from one-time digital product sales
The mutation returns a confirmation URL that merchants must visit to approve the charge. Test and development stores are not charged, allowing safe testing of billing flows.
Explore one-time billing options on the app purchases page.
- Anchor to namename•String!required
The name of the one-time purchase from the app.
- Anchor to priceprice•Money
Input! required The amount to be charged to the store for the app one-time purchase.
- Anchor to returnUrlreturn•URL!
Url required The URL where the merchant is redirected after approving the app one-time purchase.
- Anchor to testtest•BooleanDefault:false
Whether the app one-time purchase is a test transaction.
Arguments
- Anchor to appRevokeAccessScopesapp•App
Revoke Access Scopes Revoke Access Scopes Payload Revokes previously granted access scopes from an app installation, allowing merchants to reduce an app's permissions without completely uninstalling it. This provides granular control over what data and functionality apps can access.
For example, if a merchant no longer wants an app to access customer information but still wants to use its inventory features, they can revoke the customer-related scopes while keeping inventory permissions active.
Use the
mutation to:- Remove specific permissions from installed apps
- Maintain app functionality while minimizing data exposure
The mutation returns details about which scopes were successfully revoked and any errors that prevented certain permissions from being removed.
Learn more about managing app permissions.
- Anchor to scopesscopes•[String!]!required
The list of scope handles to revoke.
Arguments
- Anchor to appSubscriptionCancelapp•App
Subscription Cancel Subscription Cancel Payload Cancels an active app subscription, stopping future billing cycles. The cancellation behavior depends on the
setting - it can either disable auto-renewal (allowing the subscription to continue until the end of the current billing period) or immediately cancel with prorated refunds.When a merchant decides to discontinue using subscription features, this mutation provides a clean cancellation workflow that respects billing periods and merchant expectations.
Use the
mutation to:- Process merchant-initiated subscription cancellations
- Terminate subscriptions due to policy violations or account issues
- Handle subscription cancellations during app uninstallation workflows
The cancellation timing and merchant access depends on the
setting and the app's specific implementation of subscription management.For subscription lifecycle management and cancellation best practices, consult the subscription management guide.
- •ID!required
The ID of the app subscription to be cancelled.
- Anchor to prorateprorate•BooleanDefault:false
Whether to issue prorated credits for the unused portion of the app subscription. There will be a corresponding deduction (based on revenue share) to your Partner account. For example, if a $10.00 app subscription (with 0% revenue share) is cancelled and prorated half way through the billing cycle, then the merchant will be credited $5.00 and that amount will be deducted from your Partner account.
Arguments
- Anchor to appSubscriptionCreateapp•App
Subscription Create Subscription Create Payload Creates a recurring or usage-based
that charges merchants for app features and services. The subscription includes one or moreobjects that define the pricing structure, billing intervals, and optionalvalues.Returns a confirmation URL where the merchant approves or declines the charges. After approval, the subscription becomes active and billing begins after any trial period expires. You can specify
to control how this subscription interacts with existing active subscriptions.Learn more about creating app subscriptions.
- Anchor to namename•String!required
A descriptive name for the app subscription.
- Anchor to lineItemsline•[App
Items Subscription Line Item Input!]! required Attaches one or more pricing plans to an app subscription. Only one pricing plan can be defined for each available type.
- Anchor to testtest•BooleanDefault:false
Whether the app subscription is a test transaction.
- Anchor to trialDaystrial•Int
Days The number of days of the free trial period, beginning on the day that the merchant approves the app charges.
- Anchor to returnUrlreturn•URL!
Url required The URL pointing to the page where the merchant is redirected after approving the app subscription.
- Anchor to replacementBehaviorreplacement•App
Behavior Subscription Replacement Behavior Default:STANDARD The replacement behavior when creating an app subscription for a merchant with an already existing app subscription.
Arguments
- Anchor to appSubscriptionLineItemUpdateapp•App
Subscription Line Item Update Subscription Line Item Update Payload Updates the capped amount on usage-based billing for an
. Enables you to modify the maximum charge limit that prevents merchants from exceeding a specified threshold during their billing period.The mutation returns a confirmation URL where the merchant must approve the new pricing limit before it takes effect. Use this when adjusting usage limits based on merchant needs or changing pricing models.
Learn more about updating the maximum charge for a subscription.
- •ID!required
The ID of the app subscription line item to be updated.
- Anchor to cappedAmountcapped•Money
Amount Input! required The new maximum amount of usage charges that can be incurred within a subscription billing interval.
Arguments
- •ID!
- Anchor to appSubscriptionTrialExtendapp•App
Subscription Trial Extend Subscription Trial Extend Payload Extends the trial period for an existing app subscription. Trial extensions give merchants additional time to use the app before committing to paid billing.
Requires the subscription ID and the number of days to extend (between one and 1000). The extension modifies the existing trial end date, allowing continued access to subscription features without immediate billing. Returns the updated
.Learn more about offering free trials.
- •ID!required
The ID of the app subscription to extend the trial for.
- Anchor to daysdays•Int!required
The number of days to extend the trial. The value must be greater than 0 and less than or equal to 1000.
Arguments
- •ID!
- Anchor to appUninstallapp•App
Uninstall Uninstall Payload Uninstalls an
Appfrom a shop. Apps use this mutation to uninstall themselves programmatically, removing theirfrom the merchant's store.When an app uninstalls, Shopify automatically performs cleanup tasks, such as deleting
objects and admin links associated with the app.Learn more about app lifecycle management.
CautionThis action is irreversible. You can't restore an uninstalled app's configuration or data. Before you uninstall an app, make sure that you no longer need to make API calls for the store in which the app has been installed.
Caution:This action is irreversible. You can't restore an uninstalled app's configuration or data. Before you uninstall an app, make sure that you no longer need to make API calls for the store in which the app has been installed.
Caution: This action is irreversible. You can't restore an uninstalled app's configuration or data. Before you uninstall an app, make sure that you no longer need to make API calls for the store in which the app has been installed.
- Anchor to appUsageRecordCreateapp•App
Usage Record Create Usage Record Create Payload Creates a usage charge for an app subscription with usage-based pricing. The charge counts toward the capped amount limit set when creating the subscription.
Usage records track consumption of app features or services on a per-use basis. You provide the charge amount, a description of what you consumed, and the subscription line item ID. The optional
parameter prevents duplicate charges if you send the same request multiple times.If the new charge would cause total usage charges in the current billing interval to exceed the capped amount, then the mutation returns an error.
Learn more about creating usage-based subscriptions.
- Anchor to subscriptionLineItemIdsubscription•ID!
Line Item Id required The ID of the app subscription line item to create the usage record under. This app subscription line item must have a usage pricing plan.
- Anchor to priceprice•Money
Input! required The price of the app usage record.
- Anchor to descriptiondescription•String!required
The description of the app usage record.
- Anchor to idempotencyKeyidempotency•String
Key A unique key generated by the client to avoid duplicate charges. Maximum length of 255 characters.
Arguments
- Anchor to articleCreatearticle•Article
Create Create Payload Creates an
Article. Articles are content pieces that include a title, body text, and author information.You can publish the article immediately or schedule it with a specific publish date. You can customize the article's URL handle, apply custom templates for rendering, and add optional fields like tags, an image, and
Metafieldobjects.The mutation validates article content and ensures proper blog association. Error handling provides specific feedback for content requirements.
- Anchor to articlearticle•Article
Create Input! required The properties of the new article.
- Anchor to blogblog•Article
Blog Input The properties of the new blog.
Arguments
- Anchor to articleDeletearticle•Article
Delete Delete Payload Permanently deletes a blog article from a shop's blog. This mutation removes the article and all associated metadata.
For example, when outdated product information or seasonal content needs removal, merchants can use this mutation to clean up their blog.
Use the
mutation to:- Remove outdated or incorrect blog content
- Clean up seasonal or time-sensitive articles
- Maintain blog organization
The deletion is permanent and returns the deleted article's ID for confirmation.
- •ID!required
The ID of the article to be deleted.
Arguments
- Anchor to articleUpdatearticle•Article
Update Update Payload Updates an existing
Article. You can modify the article's content, metadata, publication status, and associated properties like author information and tags.If you update the
handle, then you can optionally create a redirect from the old URL to the new one by settingtotrue.- •ID!required
The ID of the article to be updated.
- Anchor to articlearticle•Article
Update Input! required The properties of the article to be updated.
- Anchor to blogblog•Article
Blog Input The properties of the blog to be created.
Arguments
- •ID!
- Anchor to backupRegionUpdatebackup•Backup
Region Update Region Update Payload Update the backup region that is used when we have no better signal of what region a buyer is in.
- Anchor to regionregion•Backup
Region Update Input Optional input representing the region to be updated. If not provided, the existing regions remain unchanged.
Arguments
- Anchor to blogCreateblog•Blog
Create Create Payload Creates a new blog within a shop, establishing a container for organizing articles.
For example, a fitness equipment retailer launching a wellness blog would use this mutation to create the blog, enabling them to publish workout guides and nutrition tips.
Use the
mutation to:- Launch new content marketing initiatives
- Create separate blogs for different content themes
- Establish spaces for article organization
The mutation validates blog settings and establishes the structure for article publishing.
- Anchor to blogblog•Blog
Create Input! required The properties of the new blog.
Arguments
- Anchor to blogDeleteblog•Blog
Delete Delete Payload Permanently deletes a blog from a shop. This mutation removes the blog container and its organizational structure.
For example, when consolidating multiple seasonal blogs into a single year-round content strategy, merchants can use this mutation to remove unused blogs.
Use the
mutation to:- Remove unused or outdated blogs
- Consolidate content organization
- Clean up blog structure
The deletion is permanent and returns the deleted blog's ID for confirmation.
- •ID!required
The ID of the blog to be deleted.
Arguments
- Anchor to blogUpdateblog•Blog
Update Update Payload Updates an existing blog's configuration and settings. This mutation allows merchants to modify blog properties to keep their content strategy current.
For example, a merchant might update their blog's title from "Company News" to "Sustainability Stories" when shifting their content focus, or modify the handle to improve URL structure.
Use the
mutation to:- Change blog titles for rebranding
- Modify blog handles for better URLs
- Adjust comment settings and moderation preferences
The mutation returns the updated blog with any validation errors.
- •ID!required
The ID of the blog to be updated.
- Anchor to blogblog•Blog
Update Input! required The properties of the blog to be updated.
Arguments
- Anchor to bulkOperationCancelbulk•Bulk
Operation Cancel Operation Cancel Payload Starts the cancelation process of a running bulk operation.
There may be a short delay from when a cancelation starts until the operation is actually canceled.
- •ID!required
The ID of the bulk operation to cancel.
Arguments
- •ID!
- Anchor to bulkOperationRunMutationbulk•Bulk
Operation Run Mutation Operation Run Mutation Payload Creates and runs a bulk operation to import data asynchronously. This mutation executes a specified GraphQL mutation multiple times using input data from a JSONL file that you've uploaded to Shopify.
The operation processes each line in your JSONL file as a separate mutation execution. The operation delivers results in a JSONL file when it completes. You can run one bulk mutation operation at a time per shop, though a
operation can run simultaneously.Learn more about bulk importing data.
- Anchor to mutationmutation•String!required
The mutation to be executed in bulk.
- Anchor to stagedUploadPathstaged•String!
Upload Path required The staged upload path of the file containing mutation variables.
- Anchor to groupObjectsgroup•Boolean
Objects DeprecatedDefault:true - Anchor to clientIdentifierclient•String
Identifier An optional identifier which may be used for querying.
Arguments
- Anchor to bulkOperationRunQuerybulk•Bulk
Operation Run Query Operation Run Query Payload Creates and runs a bulk operation to fetch data asynchronously. The operation processes your GraphQL query in the background and returns results in a JSONL file when complete.
Apps can run one bulk query operation and one bulk mutation operation at a time per shop. The query must include at least one connection field and supports up to five connections with a maximum nesting depth of two levels.
NoteResults remain available for seven days after completion.
Note:Results remain available for seven days after completion.
Note: Results remain available for seven days after completion.
For more information, see the bulk operations guide.
- Anchor to queryquery•String!required
The query to be executed in bulk.
- Anchor to groupObjectsgroup•Boolean!
Objects requiredDefault:false Enables grouping objects directly under their corresponding parent objects in the JSONL output. Enabling grouping slows down bulk operations and increases the likelihood of timeouts. Only enable grouping if you depend on the grouped format.
Arguments
- Anchor to bulkProductResourceFeedbackCreatebulk•Bulk
Product Resource Feedback Create Product Resource Feedback Create Payload Creates product feedback for multiple products.
- Anchor to feedbackInputfeedback•[Product
Input Resource Feedback Input!]! required An array of inputs to create the feedback. Limited to 50.
Arguments
- Anchor to carrierServiceCreatecarrier•Carrier
Service Create Service Create Payload Creates a carrier service that provides real-time shipping rates to Shopify. Carrier services provide real-time shipping rates from external providers like FedEx, UPS, or custom shipping solutions. The carrier service connects to your external shipping rate calculation system through a callback URL.
When customers reach checkout, Shopify sends order details to your callback URL and displays the returned shipping rates. The service must be active to provide rates during checkout.
- Anchor to inputinput•Delivery
Carrier Service Create Input! required The input fields used to create a carrier service.
Arguments
- Anchor to carrierServiceDeletecarrier•Carrier
Service Delete Service Delete Payload Removes an existing carrier service.
- •ID!required
The global ID of the carrier service to delete.
Arguments
- •ID!
- Anchor to carrierServiceUpdatecarrier•Carrier
Service Update Service Update Payload Updates a carrier service. Only the app that creates a carrier service can update it.
- Anchor to inputinput•Delivery
Carrier Service Update Input! required The input fields used to update a carrier service.
Arguments
- Anchor to cartTransformCreatecart•Cart
Transform Create Transform Create Payload Creates a cart transform function that lets merchants customize how products are bundled and presented during checkout. This gives merchants powerful control over their merchandising strategy by allowing apps to modify cart line items programmatically, supporting advanced approaches like dynamic bundles or personalized product recommendations.
For example, a bundle app might create a cart transform that automatically groups related products (like a camera, lens, and case) into a single bundle line item when customers add them to their cart, complete with bundle pricing and unified presentation.
Use
to:- Deploy custom bundling logic to merchant stores
- Enable dynamic product grouping during checkout
- Implement personalized product recommendations
- Create conditional offers based on cart contents
- Support complex pricing strategies for product combinations
The mutation processes synchronously and returns the created cart transform along with any validation errors. Once created, the cart transform function becomes active for the shop and will process cart modifications according to your defined logic. Cart transforms integrate with Shopify Functions to provide powerful customization capabilities while maintaining checkout performance.
Cart Transform functions can be configured to block checkout on failure or allow graceful degradation, giving you control over how errors are handled in the customer experience.
Learn more about customized bundles.
- Anchor to functionIdfunction•String
Id Deprecated - Anchor to functionHandlefunction•String
Handle The handle of the Function providing the cart transform.
- Anchor to blockOnFailureblock•Boolean
On Failure Default:false Whether a run failure should block cart and checkout operations.
- Anchor to metafieldsmetafields•[Metafield
Input!] Default:[] Additional metafields to associate to the cart transform.
Arguments
- Anchor to cartTransformDeletecart•Cart
Transform Delete Transform Delete Payload Removes an existing cart transform function from the merchant's store, disabling any customized bundle or cart modification logic it provided. This mutation persistently deletes the transform configuration and stops all associated cart processing.
For example, when discontinuing a bundle app or removing specific merchandising features, you would delete the corresponding cart transform to ensure customers no longer see the bundled products or modified cart behavior.
Use
to:- Deactivate customized bundle logic when removing app features
- Clean up unused transform functions
- Disable cart modifications during app uninstallation
- Remove outdated merchandising strategies
- Restore default cart behavior for merchants
The deletion processes immediately and returns the ID of the removed cart transform for confirmation. Once deleted, the transform function stops processing new cart operations, though existing cart sessions may retain their current state until refresh. This ensures a clean transition without disrupting active customer sessions.
Consider the timing of deletions carefully, as removing transforms during peak shopping periods could affect customer experience if they have active carts with transformed items.
Learn more about managing cart transforms.
- •ID!required
A globally-unique identifier for the cart transform.
Arguments
- Anchor to catalogContextUpdatecatalog•Catalog
Context Update Context Update Payload Modifies which contexts, like markets or B2B company locations, can access a
Catalog. You can add or remove contexts to control where the catalog's products and prices are available.Learn more about managing catalog contexts and managing B2B catalogs.
- Anchor to catalogIdcatalog•ID!
Id required The ID of the catalog for which to update the context.
- Anchor to contextsToAddcontexts•Catalog
To Add Context Input The contexts to add to the catalog.
- Anchor to contextsToRemovecontexts•Catalog
To Remove Context Input The contexts to remove from the catalog.
Arguments
- Anchor to catalogCreatecatalog•Catalog
Create Create Payload Creates a
Catalogthat controls product availability and pricing for specific contexts like markets or B2B company locations.Publications and Price Lists
Publicationobjects control which products are visible in a catalog. Publications are optional. When a publication isn't associated with a catalog, product availability is determined by the sales channel.objects define custom pricing for products in a catalog.
You can optionally associate a publication and price list when creating the catalog, or add them later using separate mutations.
When to use Publications
Create a publication only if you need to:
- Limit which products are visible in a specific context (e.g., show different products to different company locations or markets)
- Publish a curated subset of your product catalog
Do NOT create a publication if:
- You want product availability determined by the sales channel
- You only need to customize pricing (use a price list without a publication)
Important: For company location catalogs that only require custom pricing, create the catalog with a price list but without a publication.
Learn more about managing catalog contexts and using catalogs for different markets.
- Anchor to inputinput•Catalog
Create Input! required The properties of the new catalog.
Arguments
- Anchor to catalogDeletecatalog•Catalog
Delete Delete Payload Delete a catalog.
- •ID!required
The ID of the catalog to delete.
- Anchor to deleteDependentResourcesdelete•Boolean
Dependent Resources Default:false Whether to also delete the price list and the publication owned by the catalog.
Arguments
- •ID!
- Anchor to catalogUpdatecatalog•Catalog
Update Update Payload Updates an existing catalog's configuration. Catalogs control product publishing and pricing for specific contexts like markets or B2B company locations.
You can modify the catalog's title, status, and associated context. You can also update the
that determines pricing adjustments or thePublicationthat controls which products customers see.- •ID!required
The ID of the catalog to update.
- Anchor to inputinput•Catalog
Update Input! required The properties of the updated catalog.
Arguments
- •ID!
- Anchor to checkoutBrandingUpsertcheckout•Checkout
Branding Upsert Branding Upsert Payload Updates the visual branding for a
, customizing how checkout displays to customers. Creates new branding settings if none exist, or modifies existing settings.The mutation accepts two levels of customization through the
input object.defines foundational brand attributes like colors, typography, and corner radius that apply consistently throughout checkout.customizationsdefines styles for specific parts of the UI, individual components, or groups of components like the header, buttons, form fields, and sections.Changes to a published checkout profile display immediately in the store's checkout. You can preview draft profiles in the Shopify admin's checkout editor before publishing.
Learn more about checkout styling.
- Anchor to checkoutProfileIdcheckout•ID!
Profile Id required A globally-unique identifier.
- Anchor to checkoutBrandingInputcheckout•Checkout
Branding Input Branding Input The input fields to use to upsert the checkout branding settings (pass null to reset them to default).
Arguments
- Anchor to collectionAddProductscollection•Collection
Add Products Add Products Payload Adds multiple products to an existing collection in a single operation. This mutation provides an efficient way to bulk-manage collection membership without individual product updates.
For example, when merchants create seasonal collections, they can add dozens of related products at once rather than updating each product individually. A clothing store might add all winter jackets to a "Winter Collection" in one operation.
Use
to:- Bulk-add products to collections for efficient catalog management
- Implement collection building tools in admin interfaces
- Organize collection membership during bulk product operations
- Reduce API calls when managing large product sets
The mutation processes multiple product additions and returns success status along with any errors encountered during the operation. Products are added to the collection while preserving existing collection settings.
This operation only works with manual collections where merchants explicitly choose which products to include. It will return an error if used with smart collections that automatically include products based on conditions.
Learn more about collection management.
- •ID!required
The ID of the collection that's being updated. This can't be a smart collection.
- Anchor to productIdsproduct•[ID!]!
Ids required The IDs of the products that are being added to the collection. If any of the products is already present in the input collection, then an error is raised and no products are added.
Arguments
- Anchor to collectionAddProductsV2collection•Collection
Add Products V2 Add Products V2Payload Adds products to a
Collectionasynchronously and returns aJobto track the operation's progress. This mutation handles large product sets efficiently by processing them in the background.You can poll the returned job using the
jobquery to monitor completion status.Note: This mutation adds products in the order specified in the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/collectionAddProducts#arguments-productIds"><code><span class="PreventFireFoxApplyingGapToWBR">product<wbr/>Ids</span></code></a> argument.
- •ID!required
The ID of the collection that's being updated.
- Anchor to productIdsproduct•[ID!]!
Ids required The IDs of the products that are being added to the collection. If the collection's sort order is manual, the products will be added in the order in which they are provided.
Arguments
- •ID!
- Anchor to collectionCreatecollection•Collection
Create Create Payload Creates a collection to group products together in the online store and other sales channels. For example, an athletics store might create different collections for running attire, shoes, and accessories.
There are two types of collections:
- Custom (manual) collections: You specify the products to include in a collection.
- Smart (automated) collections: You define rules, and products matching those rules are automatically included in the collection.
Use the
mutation when you need to:- Create a new collection for a product launch or campaign
- Organize products by category, season, or promotion
- Automate product grouping using rules (for example, by tag, type, or price)
NoteNote: The created collection is unpublished by default. To make it available to customers, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/publishablePublish"><code><span class="PreventFireFoxApplyingGapToWBR">publishable<wbr/>Publish</span></code></a> mutation after creation.
Learn more about using metafields with smart collections.
- Anchor to inputinput•Collection
Input! required The properties to use when creating the collection.
Arguments
- Anchor to collectionDeletecollection•Collection
Delete Delete Payload Deletes a collection and removes it permanently from the store. This operation cannot be undone and will remove the collection from all sales channels where it was published.
For example, when merchants discontinue seasonal promotions or reorganize their catalog structure, they can delete outdated collections like "Back to School 2023" to keep their store organized.
Use
to:- Remove outdated or unused collections from stores
- Clean up collection structures during catalog reorganization
- Implement collection management tools with deletion capabilities
Products within the deleted collection remain in the store but are no longer grouped under that collection.
Learn more about collection management.
- Anchor to inputinput•Collection
Delete Input! required The collection to delete.
Arguments
- Anchor to collectionDuplicatecollection•Collection
Duplicate Duplicate Payload Duplicates a collection.
An existing collection ID and new title are required.
Publication Duplication
Publications may be excluded by passing
in the input.Metafields
Metafield values are not duplicated if the unique values capability is enabled.
- Anchor to inputinput•Collection
Duplicate Input! required The input for duplicating a collection.
Arguments
- Anchor to collectionRemoveProductscollection•Collection
Remove Products Remove Products Payload Removes multiple products from a collection in a single operation. This mutation can process large product sets (up to 250 products) and may take significant time to complete for collections with many products.
For example, when ending a seasonal promotion, merchants can remove all sale items from a "Summer Clearance" collection at once rather than editing each product individually.
Use
to:- Bulk-remove products from collections efficiently
- Clean up collection membership during catalog updates
- Implement automated collection management workflows
The operation processes asynchronously to avoid timeouts and performance issues, especially for large product sets.
Learn more about collection management.
- •ID!required
The ID of the collection to remove products from. The ID must reference an existing manual collection.
- Anchor to productIdsproduct•[ID!]!
Ids required The IDs of products to remove from the collection. The mutation doesn't validate that the products belong to the collection or whether the products exist.
Arguments
- Anchor to collectionReorderProductscollection•Collection
Reorder Products Reorder Products Payload Asynchronously reorders products within a specified collection. Instead of returning an updated collection, this mutation returns a job, which should be polled. The
must be.How to use this mutation:
- Provide only the products that actually moved in the
moveslist; do not send the entire product list. For example: to move the product at index 1 to index N, send a single move for that product with. - Each move is applied sequentially in the order provided.
is a zero-based index within the collection at the moment the move is applied (after any prior moves in the list).- Products not included in
moveskeep their relative order, aside from any displacement caused by the moves. - If
is greater than or equal to the number of products, the product is placed at the end.
Example:
- Initial order: [A, B, C, D, E] (indices 0..4)
- Moves (applied in order):
- E -> newPosition: 1
- C -> newPosition: 4
- Result: [A, E, B, D, C]
Displaced products will have their position altered in a consistent manner with no gaps.
- •ID!required
The ID of the collection on which to reorder products.
- Anchor to movesmoves•[Move
Input!]! required A list of moves to perform, evaluated in order. Provide only products whose positions changed; do not send the full list.
is a zero-based index evaluated at the time each move is applied (after any prior moves).values do not need to be unique, and if a value is greater than or equal to the number of products, the product is moved to the end. Up to 250 moves are supported.
Arguments
- Provide only the products that actually moved in the
- Anchor to collectionUpdatecollection•Collection
Update Update Payload Updates a collection, modifying its properties, products, or publication settings. Collections help organize products together in the online store and other sales channels.
Use the
mutation to programmatically modify collections in scenarios such as:- Updating collection details, like title, description, or image
- Modifying SEO metadata for better search visibility
- Changing which products are included (using rule updates for smart collections)
- Publishing or unpublishing collections across different sales channels
- Updating custom data using metafields
There are two types of collections with different update capabilities:
- Custom (manual) collections: You can update collection properties, but rule sets can't be modified since products are manually selected.
- Smart (automated) collections: You can update both collection properties and the rules that automatically determine which products are included.
When updating rule sets for smart collections, the operation might be processed asynchronously. In these cases, the mutation returns a
jobobject that you can use to track the progress of the update.
To publish or unpublish collections to specific sales channels, use the dedicated
andmutations.Learn more about using metafields with smart collections.
- Anchor to inputinput•Collection
Input! required The updated properties for the collection.
Arguments
- Anchor to combinedListingUpdatecombined•Combined
Listing Update Listing Update Payload Add, remove and update
s of a given Product.s are comprised of multiple products to create a single listing. There are two kinds of products used in a:- Parent products
- Child products
The parent product is created with a
with aof. Once created, you can associate child products with the parent product using this mutation. Parent products represent the idea of a product (e.g. Shoe).Child products represent a particular option value (or combination of option values) of a parent product. For instance, with your Shoe parent product, you may have several child products representing specific colors of the shoe (e.g. Shoe - Blue). You could also have child products representing more than a single option (e.g. Shoe - Blue/Canvas, Shoe - Blue/Leather, etc...).
The combined listing is the association of parent product to one or more child products.
Learn more about Combined Listings.
- Anchor to parentProductIdparent•ID!
Product Id required The ID of the parent product.
- Anchor to titletitle•String
The updated title for the combined listing.
- Anchor to productsAddedproducts•[Child
Added Product Relation Input!] The child products to add and their assigned options and option values.
- Anchor to productsEditedproducts•[Child
Edited Product Relation Input!] The child products to edit and their assigned options and option values.
- Anchor to productsRemovedIdsproducts•[ID!]
Removed Ids The IDs of products to be removed from the combined listing.
- Anchor to optionsAndValuesoptions•[Option
And Values And Value Input!] The ordered options and values to be used by the combined listing. Options and values will be reordered to match the order specified here.
Arguments
- Anchor to commentApprovecomment•Comment
Approve Approve Payload Approves a pending comment, making it visible to store visitors on the associated blog article.
For example, when a customer submits a question about a product in a blog post, merchants can approve the comment to make it publicly visible.
Use the
mutation to:- Publish pending comments after review
- Enable customer discussions on blog articles
- Maintain quality control over comments
Once approved, the comment becomes visible to all store visitors.
- •ID!required
The ID of the comment to be approved.
Arguments
- Anchor to commentDeletecomment•Comment
Delete Delete Payload Permanently removes a comment from a blog article.
For example, when a comment contains spam links or inappropriate language that violates store policies, merchants can delete it entirely.
Use the
mutation to:- Remove spam or inappropriate comments permanently
- Clean up irrelevant discussions
- Maintain content standards on blog articles
Deletion is permanent and can't be undone.
- •ID!required
The ID of the comment to be deleted.
Arguments
- Anchor to commentNotSpamcomment•Comment
Not Spam Not Spam Payload Reverses a spam classification on a comment, restoring it to normal moderation status. This mutation allows merchants to change their decision when a comment has been manually marked as spam.
For example, when a merchant reviews comments marked as spam and finds a legitimate customer question, they can use this mutation to restore the comment's normal status and make it eligible for approval.
Use the
mutation to:- Unmark comments that were marked as spam
- Restore comments to normal moderation status
- Move comments back to the approval queue
This action changes the comment's status from spam back to pending, where it can then be approved or managed according to standard moderation practices.
- •ID!required
The ID of the comment to be marked as not spam.
Arguments
- Anchor to commentSpamcomment•Comment
Spam Spam Payload Marks a comment as spam, removing it from public view. This mutation enables merchants to quickly handle unwanted promotional content, malicious links, or other spam that appears in blog discussions.
For example, when a comment contains suspicious links to unrelated products or services, merchants can mark it as spam to immediately hide it from customers.
Use the
mutation to:- Hide promotional or malicious comments from public view
- Protect customers from potentially harmful links
- Maintain professional discussion quality on blog articles
Spam-marked comments can be reviewed later and potentially restored using the
mutation if they were incorrectly classified.- •ID!required
The ID of the comment to be marked as spam.
Arguments
- Anchor to companiesDeletecompanies•Companies
Delete Delete Payload Deletes a list of companies.
- Anchor to companyIdscompany•[ID!]!
Ids required A list of IDs of companies to delete.
Arguments
- Anchor to companyAddressDeletecompany•Company
Address Delete Address Delete Payload Deletes a company address.
- Anchor to addressIdaddress•ID!
Id required The ID of the address to delete.
Arguments
- Anchor to companyAssignCustomerAsContactcompany•Company
Assign Customer As Contact Assign Customer As Contact Payload Adds an existing
Customeras a contact to aCompany. Companies are business entities that make purchases from the merchant's store. Use this mutation when you have a customer who needs to be associated with a B2B company to make purchases on behalf of that company.The mutation returns the newly created
that links the customer to the company. After assignment, the customer becomes a company contact who can place orders on behalf of the company with access to any catalogs, pricing, and payment terms configured for the company's locations.- Anchor to companyIdcompany•ID!
Id required The ID of the company to assign the contact to.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer to assign as the contact.
Arguments
- Anchor to companyAssignMainContactcompany•Company
Assign Main Contact Assign Main Contact Payload Assigns the main contact for the company.
- Anchor to companyIdcompany•ID!
Id required The ID of the company to assign the main contact to.
- Anchor to companyContactIdcompany•ID!
Contact Id required The ID of the company contact to be assigned as the main contact.
Arguments
- Anchor to companyContactAssignRolecompany•Company
Contact Assign Role Contact Assign Role Payload Assigns a role to a contact for a location.
- Anchor to companyContactIdcompany•ID!
Contact Id required The ID of the contact to assign a role to.
- Anchor to companyContactRoleIdcompany•ID!
Contact Role Id required The ID of the role to assign to a contact.
- Anchor to companyLocationIdcompany•ID!
Location Id required The ID of the location to assign a role to a contact.
Arguments
- Anchor to companyContactAssignRolescompany•Company
Contact Assign Roles Contact Assign Roles Payload Assigns roles on a company contact.
- Anchor to companyContactIdcompany•ID!
Contact Id required The contact whose roles are being assigned.
- Anchor to rolesToAssignroles•[Company
To Assign Contact Role Assign!]! required The new roles to assign.
Arguments
- Anchor to companyContactCreatecompany•Company
Contact Create Contact Create Payload Creates a company contact and the associated customer.
- Anchor to companyIdcompany•ID!
Id required The ID of the company that the company contact belongs to.
- Anchor to inputinput•Company
Contact Input! required The fields to use to create the company contact.
Arguments
- Anchor to companyContactDeletecompany•Company
Contact Delete Contact Delete Payload Deletes a company contact.
- Anchor to companyContactIdcompany•ID!
Contact Id required The ID of the company contact to delete.
Arguments
- Anchor to companyContactRemoveFromCompanycompany•Company
Contact Remove From Company Contact Remove From Company Payload Removes a company contact from a Company.
- Anchor to companyContactIdcompany•ID!
Contact Id required The ID of the company contact to remove from the Company.
Arguments
- Anchor to companyContactRevokeRolecompany•Company
Contact Revoke Role Contact Revoke Role Payload Revokes a role on a company contact.
- Anchor to companyContactIdcompany•ID!
Contact Id required The ID of the contact to revoke a role from.
- Anchor to companyContactRoleAssignmentIdcompany•ID!
Contact Role Assignment Id required The ID of the role assignment to revoke from a contact.
Arguments
- Anchor to companyContactRevokeRolescompany•Company
Contact Revoke Roles Contact Revoke Roles Payload Revokes roles on a company contact.
- Anchor to companyContactIdcompany•ID!
Contact Id required The contact whose roles are being revoked.
- Anchor to roleAssignmentIdsrole•[ID!]
Assignment Ids The current role assignment IDs to revoke.
- Anchor to revokeAllrevoke•Boolean
All Default:false Flag to revoke all roles on the contact.
Arguments
- Anchor to companyContactsDeletecompany•Company
Contacts Delete Contacts Delete Payload Deletes one or more company contacts.
- Anchor to companyContactIdscompany•[ID!]!
Contact Ids required The list of IDs of the company contacts to delete.
Arguments
- Anchor to companyContactUpdatecompany•Company
Contact Update Contact Update Payload Updates a company contact.
- Anchor to companyContactIdcompany•ID!
Contact Id required The ID of the company contact to be updated.
- Anchor to inputinput•Company
Contact Input! required The fields to use to update the company contact.
Arguments
- Anchor to companyCreatecompany•Company
Create Create Payload Creates a
Companyfor B2B commerce. This mutation creates the company and can optionally create an initialandin a single operation. Company contacts are people who place orders on behalf of the company. Company locations are branches or offices with their own billing and shipping addresses.NoteCreating a company without a
namereturns an error.Note:Creating a company without a
namereturns an error.Note: Creating a company without a <code>name</code> <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/companycreate?example=creating-a-company-without-a-name-returns-an-error">returns an error</a>.
Learn more about creating companies for B2B.
- Anchor to inputinput•Company
Create Input! required The fields to use when creating the company.
Arguments
- Anchor to companyDeletecompany•Company
Delete Delete Payload Deletes a company.
- •ID!required
The ID of the company to delete.
Arguments
- •ID!
- Anchor to companyLocationAssignAddresscompany•Company
Location Assign Address Location Assign Address Payload Updates an address on a company location.
- Anchor to locationIdlocation•ID!
Id required The ID of the company location to update addresses on.
- Anchor to addressaddress•Company
Address Input! required The input fields to use to update the address.
- Anchor to addressTypesaddress•[Company
Types Address Type!]! required The list of address types on the location to update.
Arguments
- Anchor to companyLocationAssignRolescompany•Company
Location Assign Roles Location Assign Roles Payload Assigns roles on a company location.
- Anchor to companyLocationIdcompany•ID!
Location Id required The location whose roles are being assigned.
- Anchor to rolesToAssignroles•[Company
To Assign Location Role Assign!]! required The roles to assign.
Arguments
- Anchor to companyLocationAssignStaffMemberscompany•Company
Location Assign Staff Members Location Assign Staff Members Payload Creates one or more mappings between a staff member at a shop and a company location.
- Anchor to companyLocationIdcompany•ID!
Location Id required The ID of the company location to assign the staff member to.
- Anchor to staffMemberIdsstaff•[ID!]!
Member Ids required The list of IDs of the staff members to assign.
Arguments
- Anchor to companyLocationCreatecompany•Company
Location Create Location Create Payload Creates a new location for a
Company. Company locations are branches or offices where B2B customers can place orders with specific pricing, catalogs, and payment terms.Creates a company location. Each location can have its own billing and shipping addresses, tax settings, and
buyer experience configuration. You can assign staff members andobjects to manage the location.- Anchor to companyIdcompany•ID!
Id required The ID of the company that the company location belongs to.
- Anchor to inputinput•Company
Location Input! required The fields to use to create the company location.
Arguments
- Anchor to companyLocationDeletecompany•Company
Location Delete Location Delete Payload Deletes a company location.
- Anchor to companyLocationIdcompany•ID!
Location Id required The ID of the company location to delete.
Arguments
- Anchor to companyLocationRemoveStaffMemberscompany•Company
Location Remove Staff Members Location Remove Staff Members Payload Deletes one or more existing mappings between a staff member at a shop and a company location.
- Anchor to companyLocationStaffMemberAssignmentIdscompany•[ID!]!
Location Staff Member Assignment Ids required The list of IDs of the company location staff member assignment to delete.
Arguments
- Anchor to companyLocationRevokeRolescompany•Company
Location Revoke Roles Location Revoke Roles Payload Revokes roles on a company location.
- Anchor to companyLocationIdcompany•ID!
Location Id required The location whose roles are being revoked.
- Anchor to rolesToRevokeroles•[ID!]!
To Revoke required The current roles to revoke.
Arguments
- Anchor to companyLocationsDeletecompany•Company
Locations Delete Locations Delete Payload Deletes a list of company locations.
- Anchor to companyLocationIdscompany•[ID!]!
Location Ids required A list of IDs of company locations to delete.
Arguments
- Anchor to companyLocationTaxSettingsUpdatecompany•Company
Location Tax Settings Update Location Tax Settings Update Payload Sets the tax settings for a company location.
- Anchor to companyLocationIdcompany•ID!
Location Id required The ID of the company location that the tax settings get assigned to.
- Anchor to taxRegistrationIdtax•String
Registration Id The unique tax registration ID for the company location.
- Anchor to taxExempttax•Boolean
Exempt Whether the location is exempt from taxes.
- Anchor to exemptionsToAssignexemptions•[Tax
To Assign Exemption!] The list of tax exemptions to assign to the company location.
- Anchor to exemptionsToRemoveexemptions•[Tax
To Remove Exemption!] The list of tax exemptions to remove from the company location.
Arguments
- Anchor to companyLocationUpdatecompany•Company
Location Update Location Update Payload Updates a company location's information and B2B checkout settings. Company locations are branches or offices where
members place orders on behalf of the company. Contacts must be assigned to a location throughto place orders.The mutation modifies details such as the location's name, contact information, preferred locale, and internal notes. You can also configure the B2B checkout experience through
settings that control whether orders require merchant review,settings, shipping address editing permissions, andrequirements.Learn more about managing company locations.
- Anchor to companyLocationIdcompany•ID!
Location Id required The ID of the company location to update.
- Anchor to inputinput•Company
Location Update Input! required The input fields to update in the company location.
Arguments
- Anchor to companyRevokeMainContactcompany•Company
Revoke Main Contact Revoke Main Contact Payload Revokes the main contact from the company.
- Anchor to companyIdcompany•ID!
Id required The ID of the company to revoke the main contact from.
Arguments
- Anchor to companyUpdatecompany•Company
Update Update Payload Updates a
Companywith new information. Companies represent business customers that can have multiple contacts and locations with specific pricing, payment terms, and checkout settings.The mutation accepts the company's ID and an input object containing the fields to update. You can modify the company name, add or update internal notes, set an external ID for integration with other systems, or adjust the customer relationship start date.
Learn more about building B2B features.
- Anchor to companyIdcompany•ID!
Id required The ID of the company to be updated.
- Anchor to inputinput•Company
Input! required The input fields to update the company.
Arguments
- Anchor to consentPolicyUpdateconsent•Consent
Policy Update Policy Update Payload Update or create consent policies in bulk.
- Anchor to consentPoliciesconsent•[Consent
Policies Policy Input!]! required The consent policies to update or create. If the country and region matches an existing consent policy, then the consent policy is updated. Otherwise, a new consent policy is created.
Arguments
- Anchor to customerAddressCreatecustomer•Customer
Address Create Address Create Payload Creates a new
for aCustomer. You can optionally set the address as the customer's default address.You can only add addresses to existing customers. Each customer can have multiple addresses.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer.
- Anchor to addressaddress•Mailing
Address Input! required Specifies the fields to use when creating the address.
- Anchor to setAsDefaultset•Boolean
As Default Whether to set the address as the customer's default address.
Arguments
- Anchor to customerAddressDeletecustomer•Customer
Address Delete Address Delete Payload Deletes a customer's address.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer whose address is being deleted.
- Anchor to addressIdaddress•ID!
Id required The ID of the address to be deleted from the customer.
Arguments
- Anchor to customerAddressUpdatecustomer•Customer
Address Update Address Update Payload Updates a
Customer's. You can modify any field of the address and optionally set it as the customer's default address.- Anchor to customerIdcustomer•ID!
Id required The ID of the customer whose address is being updated.
- Anchor to addressIdaddress•ID!
Id required The ID of the address to update.
- Anchor to addressaddress•Mailing
Address Input! required Specifies the fields to use when updating the address.
- Anchor to setAsDefaultset•Boolean
As Default Whether to set the address as the customer's default address.
Arguments
- Anchor to customerAddTaxExemptionscustomer•Customer
Add Tax Exemptions Add Tax Exemptions Payload Add tax exemptions for the customer.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer to update.
- Anchor to taxExemptionstax•[Tax
Exemptions Exemption!]! required The list of tax exemptions to add for the customer, in the format of an array or a comma-separated list. Example values:
,.
Arguments
- Anchor to customerCancelDataErasurecustomer•Customer
Cancel Data Erasure Cancel Data Erasure Payload Cancels a pending erasure of a customer's data. Read more here.
To request an erasure of a customer's data use the customerRequestDataErasure mutation.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer for whom to cancel a pending data erasure.
Arguments
- Anchor to customerCreatecustomer•Customer
Create Create Payload Creates a new
Customerin the store.Accepts customer details including contact information, marketing consent preferences, and tax exemptions through the
input object. You can also associatemetafieldsand tags to organize and extend customer data.Apps using protected customer data must meet Shopify's protected customer data requirements.
- Anchor to inputinput•Customer
Input! required The input fields to create a customer.
Arguments
- Anchor to customerDeletecustomer•Customer
Delete Delete Payload Deletes a
Customerfrom the store. You can only delete customers who haven't placed any orders.Apps using protected customer data must meet Shopify's protected customer data requirements.
- Anchor to inputinput•Customer
Delete Input! required Specifies the customer to delete.
Arguments
- Anchor to customerEmailMarketingConsentUpdatecustomer•Customer
Email Marketing Consent Update Email Marketing Consent Update Payload Updates a
Customer's email marketing consent information. The customer must have an email address to update their consent. Records the marketing state (such as subscribed, pending, unsubscribed), opt-in level, and when and where the customer gave or withdrew consent.- Anchor to inputinput•Customer
Email Marketing Consent Update Input! required Specifies the input fields to update a customer's email marketing consent information.
Arguments
- Anchor to customerGenerateAccountActivationUrlcustomer•Customer
Generate Account Activation Url Generate Account Activation Url Payload Generates a one-time activation URL for a
Customerwhose legacy customer account isn't yet enabled. Use this after importing customers or creating accounts that need activation.The generated URL expires after 30 days and becomes invalid if you generate a new one.
NoteThe generated URL only works when legacy customer accounts are enabled on the shop. It only works for customers with disabled or invited
account states. Attempting to generate a URL for an already-enabled customer returns an error.Note:The generated URL only works when legacy customer accounts are enabled on the shop. It only works for customers with disabled or invited
account states. Attempting to generate a URL for an already-enabled customer returns an error.Note: The generated URL only works when legacy customer accounts are enabled on the shop. It only works for customers with disabled or invited <a href="https://shopify.dev/docs/api/admin-graphql/latest/objects/Customer#field-Customer.fields.state"><code>account states</code></a>. Attempting to generate a URL for an already-enabled customer returns an error.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer that the URL is generated for.
Arguments
- Anchor to customerMergecustomer•Customer
Merge Merge Payload Merges two customers.
- Anchor to customerOneIdcustomer•ID!
One Id required The ID of the first customer that will be merged.
- Anchor to customerTwoIdcustomer•ID!
Two Id required The ID of the second customer that will be merged.
- Anchor to overrideFieldsoverride•Customer
Fields Merge Override Fields The fields to override the default customer merge rules.
Arguments
- Anchor to customerPaymentMethodCreditCardCreatecustomer•Customer
Payment Method Credit Card Create Payment Method Credit Card Create Payload Creates a credit card payment method for a customer using a session id. These values are only obtained through card imports happening from a PCI compliant environment. Please use customerPaymentMethodRemoteCreate if you are not managing credit cards directly.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer.
- Anchor to billingAddressbilling•Mailing
Address Address Input! required The billing address.
- Anchor to sessionIdsession•String!
Id required The Cardserver session ID. Obtained by storing card data with Shopify's Cardsink. Exchanging raw card data for a session ID must be done in a PCI complaint environment.
Arguments
- Anchor to customerPaymentMethodCreditCardUpdatecustomer•Customer
Payment Method Credit Card Update Payment Method Credit Card Update Payload Updates the credit card payment method for a customer.
- •ID!required
The ID of the customer payment method.
- Anchor to billingAddressbilling•Mailing
Address Address Input! required The billing address.
- Anchor to sessionIdsession•String!
Id required The Cardserver session ID.
Arguments
- •ID!
- Anchor to customerPaymentMethodGetUpdateUrlcustomer•Customer
Payment Method Get Update Url Payment Method Get Update Url Payload Returns a URL that allows the customer to update a specific payment method.
Currently,
only supports Shop Pay.- Anchor to customerPaymentMethodIdcustomer•ID!
Payment Method Id required The payment method to be updated.
Arguments
- Anchor to customerPaymentMethodPaypalBillingAgreementCreatecustomer•Customer
Payment Method Paypal Billing Agreement Create Payment Method Paypal Billing Agreement Create Payload Creates a PayPal billing agreement for a customer.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer.
- Anchor to billingAddressbilling•Mailing
Address Address Input The billing address.
- Anchor to billingAgreementIdbilling•String!
Agreement Id required The billing agreement ID from PayPal that starts with 'B-' (for example,
).- Anchor to inactiveinactive•BooleanDefault:false
Whether the PayPal billing agreement is inactive.
Arguments
- Anchor to customerPaymentMethodPaypalBillingAgreementUpdatecustomer•Customer
Payment Method Paypal Billing Agreement Update Payment Method Paypal Billing Agreement Update Payload Updates a PayPal billing agreement for a customer.
- •ID!required
The ID of the customer payment method.
- Anchor to billingAddressbilling•Mailing
Address Address Input! required The billing address.
Arguments
- •ID!
- Anchor to customerPaymentMethodRemoteCreatecustomer•Customer
Payment Method Remote Create Payment Method Remote Create Payload Creates a customer payment method using identifiers from remote payment gateways like Stripe, Authorize.Net, or Braintree. Imports existing payment methods from external gateways and associates them with
Customerobjects in Shopify.The operation processes payment methods asynchronously. The returned
initially has incomplete details while Shopify validates and processes the remote gateway information. Use thequery to retrieve the payment method status until all details are available or the payment method is revoked.Learn more about migrating customer payment methods from remote gateways.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer.
- Anchor to remoteReferenceremote•Customer
Reference Payment Method Remote Input! required Remote gateway payment method details.
Arguments
- Anchor to customerPaymentMethodRevokecustomer•Customer
Payment Method Revoke Payment Method Revoke Payload Revokes a customer's payment method.
- Anchor to customerPaymentMethodIdcustomer•ID!
Payment Method Id required The ID of the customer payment method to be revoked.
Arguments
- Anchor to customerPaymentMethodSendUpdateEmailcustomer•Customer
Payment Method Send Update Email Payment Method Send Update Email Payload Sends a link to the customer so they can update a specific payment method.
- Anchor to customerPaymentMethodIdcustomer•ID!
Payment Method Id required The payment method to be updated.
- Anchor to emailemail•Email
Input Specifies the payment method update email fields. Only the 'from' and 'bcc' fields are accepted for input.
Arguments
- Anchor to customerRemoveTaxExemptionscustomer•Customer
Remove Tax Exemptions Remove Tax Exemptions Payload Remove tax exemptions from a customer.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer to update.
- Anchor to taxExemptionstax•[Tax
Exemptions Exemption!]! required The list of tax exemptions to remove for the customer, in the format of an array or a comma-separated list. Example values:
,.
Arguments
- Anchor to customerReplaceTaxExemptionscustomer•Customer
Replace Tax Exemptions Replace Tax Exemptions Payload Replace tax exemptions for a customer.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer to update.
- Anchor to taxExemptionstax•[Tax
Exemptions Exemption!]! required The list of tax exemptions that will replace the current exemptions for a customer. Can be an array or a comma-separated list. Example values:
,.
Arguments
- Anchor to customerRequestDataErasurecustomer•Customer
Request Data Erasure Request Data Erasure Payload Enqueues a request to erase customer's data. Read more here.
To cancel the data erasure request use the customerCancelDataErasure mutation.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer to erase.
Arguments
- Anchor to customerSegmentMembersQueryCreatecustomer•Customer
Segment Members Query Create Segment Members Query Create Payload Creates a customer segment members query.
- Anchor to inputinput•Customer
Segment Members Query Input! required The input fields to create a customer segment members query.
Arguments
- Anchor to customerSendAccountInviteEmailcustomer•Customer
Send Account Invite Email Send Account Invite Email Payload Sends an email invitation for a customer to create a legacy customer account. The invitation lets customers set up their password and activate their account in the online store.
You can optionally customize the email content including the subject, sender, recipients, and message body. If you don't provide email customization, the store uses its default account invitation template.
NoteThe invite only works when legacy customer accounts are enabled on the shop.
Note:The invite only works when legacy customer accounts are enabled on the shop.
Note: The invite only works when legacy customer accounts are enabled on the shop.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer to whom an account invite email is to be sent.
- Anchor to emailemail•Email
Input Specifies the account invite email fields.
Arguments
- Anchor to customerSetcustomer•Customer
Set Set Payload Creates or updates a customer in a single mutation.
Use this mutation when syncing information from an external data source into Shopify.
This mutation can be used to create a new customer, update an existing customer by id, or upsert a customer by a unique key (email or phone).
To create a new customer omit the
identifierargument. To update an existing customer, include theidentifierwith the id of the customer to update.To perform an 'upsert' by unique key (email or phone) use the
identifierargument to upsert a customer by a unique key (email or phone). If a customer with the specified unique key exists, it will be updated. If not, a new customer will be created with that unique key.As of API version 2022-10, apps using protected customer data must meet the protected customer data requirements
Any list field (e.g. addresses, will be updated so that all included entries are either created or updated, and all existing entries not included will be deleted.
All other fields will be updated to the value passed. Omitted fields will not be updated.
- Anchor to inputinput•Customer
Set Input! required The properties of the customer.
- Anchor to identifieridentifier•Customer
Set Identifiers Specifies the identifier that will be used to lookup the resource.
Arguments
- Anchor to customerSmsMarketingConsentUpdatecustomer•Customer
Sms Marketing Consent Update Sms Marketing Consent Update Payload Updates a customer's SMS marketing consent information. The customer must have a phone number on their account to receive SMS marketing.
You can set whether the customer subscribes or unsubscribes to SMS marketing and specify the opt-in level. Optionally include when the consent was collected and which location collected it.
- Anchor to inputinput•Customer
Sms Marketing Consent Update Input! required Specifies the input fields to update a customer's SMS marketing consent information.
Arguments
- Anchor to customerUpdatecustomer•Customer
Update Update Payload Updates a
Customer's attributes including personal information andtax exemptions.Apps using protected customer data must meet Shopify's protected customer data requirements.
- Anchor to inputinput•Customer
Input! required Provides updated fields for the customer. To set marketing consent, use the
ormutations instead.
Arguments
- Anchor to customerUpdateDefaultAddresscustomer•Customer
Update Default Address Update Default Address Payload Updates a customer's default address.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer whose default address is being updated.
- Anchor to addressIdaddress•ID!
Id required The ID of the customer's new default address.
Arguments
- Anchor to dataSaleOptOutdata•Data
Sale Opt Out Sale Opt Out Payload Opt out a customer from data sale.
- Anchor to emailemail•String!required
The email address of the customer to opt out of data sale.
Arguments
- Anchor to delegateAccessTokenCreatedelegate•Delegate
Access Token Create Access Token Create Payload Creates a
with a subset of the parent token's permissions.Delegate access tokens enable secure permission delegation to subsystems or services that need limited access to shop resources. Each token inherits only the scopes you specify, ensuring subsystems operate with minimal required permissions rather than full app access.
Learn more about delegating access tokens to subsystems.
- Anchor to inputinput•Delegate
Access Token Input! required The input fields for creating a delegate access token.
Arguments
- Anchor to delegateAccessTokenDestroydelegate•Delegate
Access Token Destroy Access Token Destroy Payload Destroys a delegate access token.
- Anchor to accessTokenaccess•String!
Token required Provides the delegate access token to destroy.
Arguments
- Anchor to deliveryCustomizationActivationdelivery•Delivery
Customization Activation Customization Activation Payload Activates and deactivates delivery customizations.
- •[ID!]!required
The global IDs of the delivery customizations.
- Anchor to enabledenabled•Boolean!required
The enabled status of the delivery customizations.
Arguments
- •[ID!]!
- Anchor to deliveryCustomizationCreatedelivery•Delivery
Customization Create Customization Create Payload Creates a delivery customization.
- Anchor to deliveryCustomizationdelivery•Delivery
Customization Customization Input! required The input data used to create the delivery customization.
Arguments
- Anchor to deliveryCustomizationDeletedelivery•Delivery
Customization Delete Customization Delete Payload Creates a delivery customization.
- •ID!required
The global ID of the delivery customization.
Arguments
- •ID!
- Anchor to deliveryCustomizationUpdatedelivery•Delivery
Customization Update Customization Update Payload Updates a delivery customization.
- •ID!required
The global ID of the delivery customization.
- Anchor to deliveryCustomizationdelivery•Delivery
Customization Customization Input! required The input data used to update the delivery customization.
Arguments
- •ID!
- Anchor to deliveryProfileCreatedelivery•Delivery
Profile Create Profile Create Payload Creates a
that defines shipping rates for specific products and locations.A delivery profile groups products with their shipping zones and rates. You can associate profiles with
objects to customize shipping for subscriptions and pre-orders. Each profile containsobjects that specify whichLocationobjects ship to whichobjects with specificobjects and rates.Learn more about building delivery profiles.
- Anchor to profileprofile•Delivery
Profile Input! required Specifies the input fields for a delivery profile.
Arguments
- Anchor to deliveryProfileRemovedelivery•Delivery
Profile Remove Profile Remove Payload Enqueue the removal of a delivery profile.
- •ID!required
The ID of the delivery profile to remove.
Arguments
- •ID!
- Anchor to deliveryProfileUpdatedelivery•Delivery
Profile Update Profile Update Payload Updates a
's configuration, including its shipping zones, rates, and associated products.Modify location groups to control which fulfillment
Locationobjects serve specific geographic areas. Add or remove shipping zones with custom countries and provinces. Create or update shipping methods with rate definitions and delivery conditions. Associate or dissociateobjects andobjects to determine which products use this profile's shipping rules.The mutation supports partial updates through dedicated input fields for creating, updating, and deleting specific components without affecting the entire profile structure.
Learn more about building delivery profiles.
- •ID!required
The ID of the delivery profile to update.
- Anchor to profileprofile•Delivery
Profile Input! required Specifies the input fields for a delivery profile.
- Anchor to leaveLegacyModeProfilesleave•Boolean
Legacy Mode Profiles Deprecated (removal date set)
Arguments
- •ID!
- Anchor to deliveryPromiseParticipantsUpdatedelivery•Delivery
Promise Participants Update Promise Participants Update Payload Updates the delivery promise participants by adding or removing owners based on a branded promise handle.
- Anchor to brandedPromiseHandlebranded•String!
Promise Handle required The branded promise handle to update the delivery promise participants for.
- Anchor to ownersToAddowners•[ID!]
To Add Default:[] The owners to add to the delivery promise participants.
- Anchor to ownersToRemoveowners•[ID!]
To Remove Default:[] The owners to remove from the delivery promise participants.
Arguments
- Anchor to deliveryPromiseProviderUpsertdelivery•Delivery
Promise Provider Upsert Promise Provider Upsert Payload Creates or updates a delivery promise provider. Currently restricted to select approved delivery promise partners.
- Anchor to activeactive•Boolean
Whether the delivery promise provider is active. Defaults to
truewhen creating a provider.- Anchor to fulfillmentDelayfulfillment•Int
Delay The number of seconds to add to the current time as a buffer when looking up delivery promises. Represents how long the shop requires before releasing an order to the fulfillment provider.
- Anchor to timeZonetime•String
Zone The time zone to be used for interpreting day of week and cutoff times in delivery schedules when looking up delivery promises. Defaults to
when creating a provider.- Anchor to locationIdlocation•ID!
Id required The ID of the location that will be associated with the delivery promise provider.
Arguments
- Anchor to deliverySettingUpdatedelivery•Delivery
Setting Update Setting Update Payload Set the delivery settings for a shop.
- Anchor to settingsetting•Delivery
Setting Input! required Specifies the input fields for the delivery shop level settings.
Arguments
- Anchor to discountAutomaticActivatediscount•Discount
Automatic Activate Automatic Activate Payload Activates an automatic discount.
- •ID!required
The ID of the automatic discount to activate.
Arguments
- •ID!
- Anchor to discountAutomaticAppCreatediscount•Discount
Automatic App Create Automatic App Create Payload Creates an automatic discount that's managed by an app. Use this mutation with Shopify Functions when you need advanced, custom, or dynamic discount capabilities that aren't supported by Shopify's native discount types.
For example, use this mutation to create an automatic discount using an app's "Volume" discount type that applies a percentage off when customers purchase more than the minimum quantity of a product. For an example implementation, refer to our tutorial.
Note: To create code discounts with custom logic, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountCodeAppCreate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Code<wbr/>App<wbr/>Create</span></code></a> mutation.
- Anchor to automaticAppDiscountautomatic•Discount
App Discount Automatic App Input! required The input data used to create the automatic discount.
Arguments
- Anchor to discountAutomaticAppUpdatediscount•Discount
Automatic App Update Automatic App Update Payload Updates an existing automatic discount that's managed by an app using Shopify Functions. Use this mutation when you need advanced, custom, or dynamic discount capabilities that aren't supported by Shopify's native discount types.
For example, use this mutation to update a new "Volume" discount type that applies a percentage off when customers purchase more than the minimum quantity of a product. For an example implementation, refer to our tutorial.
Note: To update code discounts with custom logic, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountCodeAppUpdate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Code<wbr/>App<wbr/>Update</span></code></a> mutation instead.
- •ID!required
The ID of the automatic discount to update.
- Anchor to automaticAppDiscountautomatic•Discount
App Discount Automatic App Input! required The input fields required to update the automatic discount.
Arguments
- •ID!
- Anchor to discountAutomaticBasicCreatediscount•Discount
Automatic Basic Create Automatic Basic Create Payload Creates an amount off discount that's automatically applied on a cart and at checkout.
Note: To create code discounts, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountCodeBasicCreate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Code<wbr/>Basic<wbr/>Create</span></code></a> mutation.
- Anchor to automaticBasicDiscountautomatic•Discount
Basic Discount Automatic Basic Input! required The input data used to create the automatic amount off discount.
Arguments
- Anchor to discountAutomaticBasicUpdatediscount•Discount
Automatic Basic Update Automatic Basic Update Payload Updates an existing amount off discount that's automatically applied on a cart and at checkout.
Note: To update code discounts, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountCodeBasicUpdate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Code<wbr/>Basic<wbr/>Update</span></code></a> mutation instead.
- •ID!required
The ID of the automatic amount off discount to update.
- Anchor to automaticBasicDiscountautomatic•Discount
Basic Discount Automatic Basic Input! required The input data used to update the automatic amount off discount.
Arguments
- •ID!
- Anchor to discountAutomaticBulkDeletediscount•Discount
Automatic Bulk Delete Automatic Bulk Delete Payload Deletes multiple automatic discounts in a single operation, providing efficient bulk management for stores with extensive discount catalogs. This mutation processes deletions asynchronously to handle large volumes without blocking other operations.
For example, when cleaning up expired seasonal promotions or removing outdated automatic discounts across product categories, merchants can delete dozens of discounts simultaneously rather than processing each individually.
Use
to:- Remove multiple automatic discounts efficiently
- Clean up expired or obsolete promotions
- Streamline discount management workflows
- Process large-scale discount removals asynchronously
The operation returns a job object for tracking deletion progress and any validation errors encountered during processing.
Learn more about discount management.
- Anchor to searchsearch•String
The search query for filtering automatic discounts to delete.
For more information on the list of supported fields and search syntax, refer to the AutomaticDiscountNodes query section.
- Anchor to savedSearchIdsaved•ID
Search Id The ID of the saved search to use for filtering automatic discounts to delete.
- •[ID!]
The IDs of the automatic discounts to delete.
Arguments
- Anchor to discountAutomaticBxgyCreatediscount•Discount
Automatic Bxgy Create Automatic Bxgy Create Payload Creates a buy X get Y discount (BXGY) that's automatically applied on a cart and at checkout.
Note: To create code discounts, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountCodeBxgyCreate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Code<wbr/>Bxgy<wbr/>Create</span></code></a> mutation.
- Anchor to automaticBxgyDiscountautomatic•Discount
Bxgy Discount Automatic Bxgy Input! required The input data used to create the automatic BXGY discount.
Arguments
- Anchor to discountAutomaticBxgyUpdatediscount•Discount
Automatic Bxgy Update Automatic Bxgy Update Payload Updates an existing buy X get Y discount (BXGY) that's automatically applied on a cart and at checkout.
Note: To update code discounts, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountCodeBxgyUpdate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Code<wbr/>Bxgy<wbr/>Update</span></code></a> mutation instead.
- •ID!required
The ID of the automatic BXGY discount to update.
- Anchor to automaticBxgyDiscountautomatic•Discount
Bxgy Discount Automatic Bxgy Input! required The input data used to update the automatic BXGY discount.
Arguments
- •ID!
- Anchor to discountAutomaticDeactivatediscount•Discount
Automatic Deactivate Automatic Deactivate Payload Deactivates an automatic discount.
- •ID!required
The ID of the automatic discount to deactivate.
Arguments
- •ID!
- Anchor to discountAutomaticDeletediscount•Discount
Automatic Delete Automatic Delete Payload Deletes an existing automatic discount from the store, permanently removing it from all future order calculations. This mutation provides a clean way to remove promotional campaigns that are no longer needed.
For example, when a seasonal promotion ends or a flash sale concludes, merchants can use this mutation to ensure the discount no longer applies to new orders while preserving historical order data.
Use
to:- Remove expired promotional campaigns
- Clean up test discounts during development
- Delete automatic discounts that conflict with new promotions
- Maintain a clean discount configuration
The mutation returns the ID of the deleted discount for confirmation and any validation errors if the deletion cannot be completed. Once deleted, the automatic discount will no longer appear in discount lists or apply to new customer orders.
- •ID!required
The ID of the automatic discount to delete.
Arguments
- Anchor to discountAutomaticFreeShippingCreatediscount•Discount
Automatic Free Shipping Create Automatic Free Shipping Create Payload Creates automatic free shipping discounts that apply to qualifying orders without requiring discount codes. These promotions automatically activate when customers meet specified criteria, streamlining the checkout experience.
For example, a store might create an automatic free shipping discount for orders over variable pricing to encourage larger purchases, or offer free shipping to specific customer segments during promotional periods.
Use
to:- Set up code-free shipping promotions
- Create order value-based shipping incentives
- Target specific customer groups with shipping benefits
- Establish location-based shipping discounts
The mutation validates discount configuration and returns the created automatic discount node along with any configuration errors that need resolution.
Learn more about automatic discounts.
- Anchor to freeShippingAutomaticDiscountfree•Discount
Shipping Automatic Discount Automatic Free Shipping Input! required The input data used to create the automatic free shipping discount.
Arguments
- Anchor to discountAutomaticFreeShippingUpdatediscount•Discount
Automatic Free Shipping Update Automatic Free Shipping Update Payload Updates existing automatic free shipping discounts, allowing merchants to modify promotion criteria, shipping destinations, and eligibility requirements without recreating the entire discount structure.
For example, extending a holiday free shipping promotion to include additional countries, adjusting the minimum order value threshold, or expanding customer eligibility to include new segments.
Use
to:- Modify shipping discount thresholds and criteria
- Expand or restrict geographic availability
- Update customer targeting and eligibility rules
- Adjust promotion timing and activation periods
Changes take effect immediately for new orders, while the mutation validates all modifications and reports any configuration conflicts through user errors.
Learn more about managing automatic discounts.
- •ID!required
The ID of the automatic free shipping discount to update.
- Anchor to freeShippingAutomaticDiscountfree•Discount
Shipping Automatic Discount Automatic Free Shipping Input! required The input data used to update the automatic free shipping discount.
Arguments
- Anchor to discountCodeActivatediscount•Discount
Code Activate Code Activate Payload Activates a previously created code discount, making it available for customers to use during checkout. This mutation transitions inactive discount codes into an active state where they can be applied to orders.
For example, after creating a "SUMMER20" discount code but leaving it inactive during setup, merchants can activate it when ready to launch their summer promotion campaign.
Use
to:- Launch scheduled promotional campaigns
- Reactivate previously paused discount codes
- Enable discount codes after configuration changes
- Control the timing of discount availability
The mutation returns the updated discount code node with its new active status and handles any validation errors that might prevent activation, such as conflicting discount rules or invalid date ranges.
- •ID!required
The ID of the code discount to activate.
Arguments
- Anchor to discountCodeAppCreatediscount•Discount
Code App Create Code App Create Payload Creates a code discount. The discount type must be provided by an app extension that uses Shopify Functions. Functions can implement order, product, or shipping discount functions. Use this mutation with Shopify Functions when you need custom logic beyond Shopify's native discount types.
For example, use this mutation to create a code discount using an app's "Volume" discount type that applies a percentage off when customers purchase more than the minimum quantity of a product. For an example implementation, refer to our tutorial.
Note: To create automatic discounts with custom logic, use <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticAppCreate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Automatic<wbr/>App<wbr/>Create</span></code></a>.
- Anchor to codeAppDiscountcode•Discount
App Discount Code App Input! required The input data used to create the discount.
Arguments
- Anchor to discountCodeAppUpdatediscount•Discount
Code App Update Code App Update Payload Updates a code discount, where the discount type is provided by an app extension that uses Shopify Functions. Use this mutation when you need advanced, custom, or dynamic discount capabilities that aren't supported by Shopify's native discount types.
Note: To update automatic discounts, use <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticAppUpdate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Automatic<wbr/>App<wbr/>Update</span></code></a>.
- •ID!required
The ID of the discount to update.
- Anchor to codeAppDiscountcode•Discount
App Discount Code App Input! required The input fields required to update the discount.
Arguments
- •ID!
- Anchor to discountCodeBasicCreatediscount•Discount
Code Basic Create Code Basic Create Payload Creates an amount off discount that's applied on a cart and at checkout when a customer enters a code. Amount off discounts can be a percentage off or a fixed amount off.
Note: To create discounts that are automatically applied on a cart and at checkout, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticBasicCreate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Automatic<wbr/>Basic<wbr/>Create</span></code></a> mutation.
- Anchor to basicCodeDiscountbasic•Discount
Code Discount Code Basic Input! required The input data used to create the discount code.
Arguments
- Anchor to discountCodeBasicUpdatediscount•Discount
Code Basic Update Code Basic Update Payload Updates an amount off discount that's applied on a cart and at checkout when a customer enters a code. Amount off discounts can be a percentage off or a fixed amount off.
Note: To update discounts that are automatically applied on a cart and at checkout, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticBasicUpdate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Automatic<wbr/>Basic<wbr/>Update</span></code></a> mutation.
- •ID!required
The ID of the discount code to update.
- Anchor to basicCodeDiscountbasic•Discount
Code Discount Code Basic Input! required The input data used to update the discount code.
Arguments
- •ID!
- Anchor to discountCodeBulkActivatediscount•Discount
Code Bulk Activate Code Bulk Activate Payload Activates multiple code discounts asynchronously using one of the following:
- A search query
- A saved search ID
- A list of discount code IDs
For example, you can activate discounts for all codes that match a search criteria, or activate a predefined set of discount codes.
- Anchor to searchsearch•String
- Anchor to savedSearchIdsaved•ID
Search Id The ID of the saved search for filtering discounts to activate. Saved searches represent customer segments that merchants have built in the Shopify admin.
- •[ID!]
The IDs of the discounts to activate.
Arguments
- Anchor to discountCodeBulkDeactivatediscount•Discount
Code Bulk Deactivate Code Bulk Deactivate Payload Deactivates multiple code-based discounts asynchronously using one of the following:
- A search query
- A saved search ID
- A list of discount code IDs
For example, you can deactivate discounts for all codes that match a search criteria, or deactivate a predefined set of discount codes.
- Anchor to searchsearch•String
- Anchor to savedSearchIdsaved•ID
Search Id The ID of the saved search for filtering discounts to deactivate. Saved searches represent customer segments that merchants have built in the Shopify admin.
- •[ID!]
The IDs of the discounts to deactivate.
Arguments
- Anchor to discountCodeBulkDeletediscount•Discount
Code Bulk Delete Code Bulk Delete Payload Deletes multiple code-based discounts asynchronously using one of the following:
- A search query
- A saved search ID
- A list of discount code IDs
For example, you can delete discounts for all codes that match a search criteria, or delete a predefined set of discount codes.
- Anchor to searchsearch•String
- Anchor to savedSearchIdsaved•ID
Search Id The ID of the saved search for filtering discounts to delete. Saved searches represent customer segments that merchants have built in the Shopify admin.
- •[ID!]
The IDs of the discounts to delete.
Arguments
- Anchor to discountCodeBxgyCreatediscount•Discount
Code Bxgy Create Code Bxgy Create Payload Creates a buy X get Y discount (BXGY) that's applied on a cart and at checkout when a customer enters a code.
Note: To create discounts that are automatically applied on a cart and at checkout, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticBxgyCreate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Automatic<wbr/>Bxgy<wbr/>Create</span></code></a> mutation.
- Anchor to bxgyCodeDiscountbxgy•Discount
Code Discount Code Bxgy Input! required The input data used to create the BXGY code discount.
Arguments
- Anchor to discountCodeBxgyUpdatediscount•Discount
Code Bxgy Update Code Bxgy Update Payload Updates a buy X get Y discount (BXGY) that's applied on a cart and at checkout when a customer enters a code.
Note: To update discounts that are automatically applied on a cart and at checkout, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticBxgyUpdate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Automatic<wbr/>Bxgy<wbr/>Update</span></code></a> mutation.
- •ID!required
The ID of the BXGY code discount to update.
- Anchor to bxgyCodeDiscountbxgy•Discount
Code Discount Code Bxgy Input! required The input data used to update the BXGY code discount.
Arguments
- •ID!
- Anchor to discountCodeDeactivatediscount•Discount
Code Deactivate Code Deactivate Payload Temporarily suspends a code discount without permanently removing it from the store. Deactivation allows merchants to pause promotional campaigns while preserving the discount configuration for potential future use.
For example, when a flash sale needs to end immediately or a discount code requires temporary suspension due to inventory issues, merchants can deactivate it to stop new redemptions while keeping the discount structure intact.
Use
to:- Pause active promotional campaigns timely
- Temporarily suspend problematic discount codes
- Control discount availability during inventory shortages
- Maintain discount history while stopping usage
Deactivated discounts remain in the system and can be reactivated later, unlike deletion which persistently removes the code. Customers attempting to use deactivated codes will receive appropriate error messages.
- •ID!required
The ID of the code discount to deactivate.
Arguments
- Anchor to discountCodeDeletediscount•Discount
Code Delete Code Delete Payload Removes a code discount from the store, making it permanently unavailable for customer use. This mutation provides a clean way to eliminate discount codes that are no longer needed or have been replaced.
For example, when a seasonal promotion ends or a discount code has been compromised, merchants can delete it entirely rather than just deactivating it, ensuring customers cannot attempt to use expired promotional codes.
Use
to:- persistently remove outdated promotional codes
- Clean up discount code lists after campaigns end
- Eliminate compromised or leaked discount codes
- Maintain organized discount management
Once deleted, the discount code cannot be recovered and any customer attempts to use it will fail. This differs from deactivation, which preserves the code for potential future reactivation.
- •ID!required
The ID of the code discount to delete.
Arguments
- Anchor to discountCodeFreeShippingCreatediscount•Discount
Code Free Shipping Create Code Free Shipping Create Payload Creates an free shipping discount that's applied on a cart and at checkout when a customer enters a code.
Note: To create discounts that are automatically applied on a cart and at checkout, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticFreeShippingCreate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Automatic<wbr/>Free<wbr/>Shipping<wbr/>Create</span></code></a> mutation.
- Anchor to freeShippingCodeDiscountfree•Discount
Shipping Code Discount Code Free Shipping Input! required The input data used to create the discount code.
Arguments
- Anchor to discountCodeFreeShippingUpdatediscount•Discount
Code Free Shipping Update Code Free Shipping Update Payload Updates a free shipping discount that's applied on a cart and at checkout when a customer enters a code.
NoteNote: To update a free shipping discount that's automatically applied on a cart and at checkout, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticFreeShippingUpdate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Automatic<wbr/>Free<wbr/>Shipping<wbr/>Update</span></code></a> mutation.
- •ID!required
The ID of the discount code to update.
- Anchor to freeShippingCodeDiscountfree•Discount
Shipping Code Discount Code Free Shipping Input! required The input data used to update the discount code.
Arguments
- •ID!
- Anchor to discountCodeRedeemCodeBulkDeletediscount•Discount
Code Redeem Code Bulk Delete Code Redeem Code Bulk Delete Payload Asynchronously delete discount codes in bulk that customers can use to redeem a discount.
- Anchor to discountIddiscount•ID!
Id required The ID of the
object that the codes will be removed from. For example,. You can use thequery to retrieve the ID.- Anchor to searchsearch•String
A filter made up of terms, connectives, modifiers, and comparators that you can use to search for code discounts. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
For a list of accepted values for the
searchfield, refer to thequeryargument on thequery.- Anchor to savedSearchIdsaved•ID
Search Id The ID of a saved search.
Arguments
- Anchor to discountRedeemCodeBulkAdddiscount•Discount
Redeem Code Bulk Add Redeem Code Bulk Add Payload Asynchronously add discount codes in bulk that customers can use to redeem a discount. You can use the
mutation to automate the distribution of discount codes through emails or other marketing channels.- Anchor to discountIddiscount•ID!
Id required The ID of the
object that the codes will be added to. For example,. You can use thequery to retrieve the ID.- Anchor to codescodes•[Discount
Redeem Code Input!]! required The list of codes to associate with the code discount. Maximum: 250 codes.
Arguments
- Anchor to disputeEvidenceUpdatedispute•Dispute
Evidence Update Evidence Update Payload Updates a dispute evidence.
- •ID!required
The ID of the dispute evidence to be updated.
- Anchor to inputinput•Shopify
Payments Dispute Evidence Update Input! required The updated properties for a dispute evidence.
Arguments
- •ID!
- Anchor to draftOrderBulkAddTagsdraft•Draft
Order Bulk Add Tags Order Bulk Add Tags Payload Adds tags to multiple draft orders.
- Anchor to searchsearch•String
The conditions for filtering draft orders on. See the detailed search syntax.
- Anchor to savedSearchIdsaved•ID
Search Id The ID of the draft order saved search for filtering draft orders on.
- •[ID!]
The IDs of the draft orders to add tags to.
- •[String!]!required
List of tags to be added.
Arguments
- Anchor to draftOrderBulkDeletedraft•Draft
Order Bulk Delete Order Bulk Delete Payload Deletes multiple draft orders.
- Anchor to searchsearch•String
The conditions for filtering draft orders on. See the detailed search syntax.
- Anchor to savedSearchIdsaved•ID
Search Id The ID of the draft order saved search for filtering draft orders on.
- •[ID!]
The IDs of the draft orders to delete.
Arguments
- Anchor to draftOrderBulkRemoveTagsdraft•Draft
Order Bulk Remove Tags Order Bulk Remove Tags Payload Removes tags from multiple draft orders.
- Anchor to searchsearch•String
The conditions for filtering draft orders on. See the detailed search syntax.
- Anchor to savedSearchIdsaved•ID
Search Id The ID of the draft order saved search for filtering draft orders on.
- •[ID!]
The IDs of the draft orders to remove tags from.
- •[String!]!required
List of tags to be removed.
Arguments
- Anchor to draftOrderCalculatedraft•Draft
Order Calculate Order Calculate Payload Calculates the properties of a
without creating it. Returns pricing information includingtotals, shipping charges, applicable discounts, and tax calculations based on the providedCustomerandinformation.Use this mutation to preview total taxes and prices before creating a draft order. It's particularly useful when working with B2B
or when you need to determine costs without committing to a draft order. Learn more about calculating draft orders for B2B purchasing entities.- Anchor to inputinput•Draft
Order Input! required The fields for the draft order.
Arguments
- Anchor to draftOrderCompletedraft•Draft
Order Complete Order Complete Payload Completes a draft order and converts it into a regular order. The order appears in the merchant's orders list, and the customer can be notified about their order.
Use the
mutation when a merchant is ready to finalize a draft order and create a real order in their store. Themutation also supports sales channel attribution for tracking order sources using theargument, cart validation controls for app integrations, and detailed error reporting for failed completions.You can complete a draft order with different payment scenarios:
- Mark the order as paid immediately.
- Set the order as payment pending using payment terms.
- Specify a custom payment amount.
- Select a specific payment gateway.
NoteWhen completing a draft order, inventory is reserved for the items in the order. This means the items will no longer be available for other customers to purchase. Make sure to verify inventory availability before completing the draft order.
Note:When completing a draft order, inventory is reserved for the items in the order. This means the items will no longer be available for other customers to purchase. Make sure to verify inventory availability before completing the draft order.
Note: When completing a draft order, inventory is <a href="https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states">reserved</a> for the items in the order. This means the items will no longer be available for other customers to purchase. Make sure to verify inventory availability before completing the draft order.
- •ID!required
The draft order to complete.
- Anchor to paymentPendingpayment•Boolean
Pending DeprecatedDefault:false - Anchor to paymentGatewayIdpayment•ID
Gateway Id The gateway for the completed draft order.
- Anchor to sourceNamesource•String
Name A channel definition handle used for sales channel attribution.
Arguments
- Anchor to draftOrderCreatedraft•Draft
Order Create Order Create Payload Creates a draft order with attributes such as customer information, line items, shipping and billing addresses, and payment terms. Draft orders are useful for merchants that need to:
- Create new orders for sales made by phone, in person, by chat, or elsewhere. When a merchant accepts payment for a draft order, an order is created.
- Send invoices to customers with a secure checkout link.
- Use custom items to represent additional costs or products not in inventory.
- Re-create orders manually from active sales channels.
- Sell products at discount or wholesale rates.
- Take pre-orders.
After creating a draft order, you can:
- Send an invoice to the customer using the
mutation. - Complete the draft order using the
mutation. - Update the draft order using the
mutation. - Duplicate a draft order using the
mutation. - Delete the draft order using the
mutation.
NoteWhen you create a draft order, you can't reserve or hold inventory for the items in the order by default. However, you can reserve inventory using the
input.Note:When you create a draft order, you can't reserve or hold inventory for the items in the order by default. However, you can reserve inventory using the
input.Note: When you create a draft order, you can't <a href="https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps#inventory-states">reserve or hold inventory</a> for the items in the order by default. However, you can reserve inventory using the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/draftOrderCreate#arguments-input.fields.reserveInventoryUntil"><code><span class="PreventFireFoxApplyingGapToWBR">reserve<wbr/>Inventory<wbr/>Until</span></code></a> input.
- Anchor to inputinput•Draft
Order Input! required The fields used to create the draft order.
Arguments
- Anchor to draftOrderCreateFromOrderdraft•Draft
Order Create From Order Order Create From Order Payload Creates a draft order from order.
- Anchor to orderIdorder•ID!
Id required Specifies the order's id that we create the draft order from.
Arguments
- Anchor to draftOrderDeletedraft•Draft
Order Delete Order Delete Payload Deletes a draft order.
- Anchor to inputinput•Draft
Order Delete Input! required Specify the draft order to delete by its ID.
Arguments
- Anchor to draftOrderDuplicatedraft•Draft
Order Duplicate Order Duplicate Payload Duplicates a draft order.
- Anchor to draftOrderIddraft•ID
Order Id Deprecated - •ID
The ID of the draft order to duplicate.
Arguments
- Anchor to draftOrderInvoicePreviewdraft•Draft
Order Invoice Preview Order Invoice Preview Payload Previews a draft order invoice email.
- •ID!required
Specifies the draft order invoice email to preview.
- Anchor to emailemail•Email
Input Specifies the draft order invoice email fields.
Arguments
- •ID!
- Anchor to draftOrderInvoiceSenddraft•Draft
Order Invoice Send Order Invoice Send Payload Sends an invoice email for a
. The invoice includes a secure checkout link for reviewing and paying for the order. Use theemailargument to customize the email, such as the subject and message.- •ID!required
Specifies the draft order to send the invoice for.
- Anchor to emailemail•Email
Input Specifies the draft order invoice email fields.
Arguments
- •ID!
- Anchor to draftOrderUpdatedraft•Draft
Order Update Order Update Payload Updates a draft order.
If a checkout has been started for a draft order, any update to the draft will unlink the checkout. Checkouts are created but not immediately completed when opening the merchant credit card modal in the admin, and when a buyer opens the invoice URL. This is usually fine, but there is an edge case where a checkout is in progress and the draft is updated before the checkout completes. This will not interfere with the checkout and order creation, but if the link from draft to checkout is broken the draft will remain open even after the order is created.
- •ID!required
Specifies the draft order to update.
- Anchor to inputinput•Draft
Order Input! required The draft order properties to update.
Arguments
- •ID!
- Anchor to eventBridgeServerPixelUpdateevent•Event
Bridge Server Pixel Update Bridge Server Pixel Update Payload Updates the server pixel to connect to an EventBridge endpoint. Running this mutation deletes any previous subscriptions for the server pixel.
- •ARN!required
The ARN for the EventBridge endpoint to which customer events are to be sent.
Arguments
- •ARN!
- Anchor to fileAcknowledgeUpdateFailedfile•File
Acknowledge Update Failed Acknowledge Update Failed Payload Acknowledges file update failure by resetting FAILED status to READY and clearing any media errors.
- Anchor to fileIdsfile•[ID!]!
Ids required Specifies the file(s) to acknowledge the failed updates of.
Arguments
- Anchor to fileCreatefile•File
Create Create Payload Creates file assets for a store from external URLs or files that were previously uploaded using the
mutation.Use the
mutation to add various types of media and documents to your store. These files are added to the Files page in the Shopify admin and can be referenced by other resources in your store.The
mutation supports multiple file types:- Images: Product photos, variant images, and general store imagery
- Videos: Shopify-hosted videos for product demonstrations and marketing
- External videos: YouTube and Vimeo videos for enhanced product experiences
- 3D models: Interactive 3D representations of products
- Generic files: PDFs, documents, and other file types for store resources
The mutation handles duplicate filenames using configurable resolution modes that automatically append UUIDs, replace existing files, or raise errors when conflicts occur.
NoteNote: Files are processed asynchronously. Check the <a href="https://shopify.dev/docs/api/admin-graphql/latest/interfaces/File#fields-fileStatus"><code><span class="PreventFireFoxApplyingGapToWBR">file<wbr/>Status</span></code></a> field to monitor processing completion. The maximum number of files that can be created in a single batch is 250.
After creating files, you can make subsequent updates using the following mutations:
: Update file properties such as alt text or replace file contents while preserving the same URL.: Remove files from your store when they are no longer needed.
To list all files in your store, use the
filesquery.Learn how to manage product media and file assets in your app.
- Anchor to filesfiles•[File
Create Input!]! required List of new files to be created.
Arguments
- Anchor to fileDeletefile•File
Delete Delete Payload Deletes file assets that were previously uploaded to your store.
Use the
mutation to permanently remove media and file assets from your store when they are no longer needed. This mutation handles the complete removal of files from both your store's file library and any associated references to products or other resources.The
mutation supports removal of multiple file types:- Images: Product photos, variant images, and general store imagery
- Videos: Shopify-hosted videos for product demonstrations and marketing content
- External Videos: YouTube and Vimeo videos linked to your products
- 3D models: Interactive 3D representations of products
- Generic files: PDFs, documents, and other file types stored in your Files page
When you delete files that are referenced by products, the mutation automatically removes those references and reorders any remaining media to maintain proper positioning. Product file references are database relationships managed through a media reference system, not just links in product descriptions. The Shopify admin provides a UI to manage these relationships, and when files are deleted, the system automatically cleans up all references. Files that are currently being processed by other operations are rejected to prevent conflicts.
CautionFile deletion is permanent and can't be undone. When you delete a file that's being used in your store, it will immediately stop appearing wherever it was displayed. For example, if you delete a product image, that product will show a broken image or placeholder on your storefront and in the admin. The same applies to any other files linked from themes, blog posts, or pages. Before deleting files, you can use the
filesquery to list and review your store's file assets.Caution:File deletion is permanent and can't be undone. When you delete a file that's being used in your store, it will immediately stop appearing wherever it was displayed. For example, if you delete a product image, that product will show a broken image or placeholder on your storefront and in the admin. The same applies to any other files linked from themes, blog posts, or pages. Before deleting files, you can use the
filesquery to list and review your store's file assets.Caution: File deletion is permanent and can't be undone. When you delete a file that's being used in your store, it will immediately stop appearing wherever it was displayed. For example, if you delete a product image, that product will show a broken image or placeholder on your storefront and in the admin. The same applies to any other files linked from themes, blog posts, or pages. Before deleting files, you can use the <a href="https://shopify.dev/api/admin-graphql/latest/queries/files"><code>files</code> query</a> to list and review your store's file assets.
Learn how to manage product media and file assets in your app.
- Anchor to fileIdsfile•[ID!]!
Ids required The IDs of the files to be deleted.
Arguments
- Anchor to fileUpdatefile•File
Update Update Payload Updates properties, content, and metadata associated with an existing file asset that has already been uploaded to Shopify.
Use the
mutation to modify various aspects of files already stored in your store. Files can be updated individually or in batches.The
mutation supports updating multiple file properties:- Alt text: Update accessibility descriptions for images and other media.
- File content: Replace image or generic file content while maintaining the same URL.
- Filename: Modify file names (extension must match the original).
- Product references: Add or remove associations between files and products. Removing file-product associations deletes the file from the product's media gallery and clears the image from any product variants that were using it.
The mutation handles different file types with specific capabilities:
- Images: Update preview images, original source, filename, and alt text.
- Generic files: Update original source, filename, and alt text.
- Videos and 3D models: Update alt text and product references.
NoteFiles must be in
readystate before they can be updated. The mutation includes file locking to prevent conflicts during updates. You can't simultaneously update bothand.Note:Files must be in
readystate before they can be updated. The mutation includes file locking to prevent conflicts during updates. You can't simultaneously update bothand.Note: Files must be in <code>ready</code> state before they can be updated. The mutation includes file locking to prevent conflicts during updates. You can't simultaneously update both <code><span class="PreventFireFoxApplyingGapToWBR">original<wbr/>Source</span></code> and <code><span class="PreventFireFoxApplyingGapToWBR">preview<wbr/>Image<wbr/>Source</span></code>.
After updating files, you can use related mutations for additional file management:
: Create new file assets from external URLs or staged uploads.: Remove files from your store when they are no longer needed.
Learn how to manage product media and file assets in your app.
- Anchor to filesfiles•[File
Update Input!]! required List of files to be updated.
Arguments
- Anchor to flowTriggerReceiveflow•Flow
Trigger Receive Trigger Receive Payload Triggers any workflows that begin with the trigger specified in the request body. To learn more, refer to Create Shopify Flow triggers.
- Anchor to bodybody•StringDeprecated
- Anchor to handlehandle•String
The handle of the trigger.
- Anchor to payloadpayload•JSON
The payload needed to run the Trigger.
Arguments
- Anchor to fulfillmentCancelfulfillment•Fulfillment
Cancel Cancel Payload Cancels an existing
Fulfillmentand reverses its effects on associatedobjects. When you cancel a fulfillment, the system creates new fulfillment orders for the cancelled items so they can be fulfilled again.The cancellation affects fulfillment orders differently based on their fulfillment status. If a fulfillment order was entirely fulfilled, then it automatically closes. If a fulfillment order is partially fulfilled, then the remaining quantities adjust to include the cancelled items. The system creates new fulfillment orders at the original
Locationwhen items are still stocked there, or at alternative locations based on the store's fulfillment priority settings.Learn more about canceling fulfillments.
- •ID!required
The ID of the fulfillment to be canceled.
Arguments
- •ID!
- Anchor to fulfillmentConstraintRuleCreatefulfillment•Fulfillment
Constraint Rule Create Constraint Rule Create Payload Creates a fulfillment constraint rule and its metafield.
- Anchor to functionIdfunction•String
Id Deprecated - Anchor to functionHandlefunction•String
Handle The handle of the function providing the constraint rule.
- Anchor to deliveryMethodTypesdelivery•[Delivery
Method Types Method Type!]! required Associate the function with one or multiple delivery method types.
- Anchor to metafieldsmetafields•[Metafield
Input!] Default:[] Metafields to associate to the fulfillment constraint rule.
Arguments
- Anchor to fulfillmentConstraintRuleDeletefulfillment•Fulfillment
Constraint Rule Delete Constraint Rule Delete Payload Deletes a fulfillment constraint rule and its metafields.
- •ID!required
A globally-unique identifier for the fulfillment constraint rule.
Arguments
- •ID!
- Anchor to fulfillmentConstraintRuleUpdatefulfillment•Fulfillment
Constraint Rule Update Constraint Rule Update Payload Update a fulfillment constraint rule.
- •ID!required
A globally-unique identifier for the fulfillment constraint rule.
- Anchor to deliveryMethodTypesdelivery•[Delivery
Method Types Method Type!]! required Specifies the delivery method types to be updated. If not provided or providing an empty list will associate the function with all delivery methods.
Arguments
- •ID!
- Anchor to fulfillmentCreatefulfillment•Fulfillment
Create Create Payload Creates a fulfillment for one or more
objects. The fulfillment orders are associated with the sameOrderand are assigned to the sameLocation.Use this mutation to mark items as fulfilled when they're ready to ship. You can specify tracking information, customer notification preferences, and which
objects to fulfill from each fulfillment order. If you don't specify line items, then the mutation fulfills all items in the fulfillment order.Learn more about building fulfillment solutions.
- Anchor to fulfillmentfulfillment•Fulfillment
Input! required The input fields used to create a fulfillment from fulfillment orders.
- Anchor to messagemessage•String
An optional message for the fulfillment request.
Arguments
- Anchor to fulfillmentEventCreatefulfillment•Fulfillment
Event Create Event Create Payload Creates a
to track the shipment status and location of items that have shipped. Events capture status updates like carrier pickup, in transit, out for delivery, or delivered.Each event records the timestamp and current status of the
Fulfillment. You can include optional details such as the location where the event occurred, estimated arrival time, and messages for tracking purposes.- Anchor to fulfillmentEventfulfillment•Fulfillment
Event Event Input! required The input fields used to create a fulfillment event for a fulfillment.
Arguments
- Anchor to fulfillmentOrderAcceptCancellationRequestfulfillment•Fulfillment
Order Accept Cancellation Request Order Accept Cancellation Request Payload Accept a cancellation request sent to a fulfillment service for a fulfillment order.
- •ID!required
The ID of the fulfillment order associated with the cancellation request.
- Anchor to messagemessage•String
An optional reason for accepting the cancellation request.
Arguments
- •ID!
- Anchor to fulfillmentOrderAcceptFulfillmentRequestfulfillment•Fulfillment
Order Accept Fulfillment Request Order Accept Fulfillment Request Payload Accepts a fulfillment request that the fulfillment service has received for a
which signals that the fulfillment service will process and fulfill the order. The fulfillment service can optionally provide a message to the merchant and an estimated shipped date when accepting the request.Learn more about accepting fulfillment requests.
- •ID!required
The ID of the fulfillment order associated with the fulfillment request.
- Anchor to messagemessage•String
An optional reason for accepting the fulfillment request.
- Anchor to estimatedShippedAtestimated•Date
Shipped At Time The estimated date and time when the fulfillment order will be shipped.
Arguments
- •ID!
- Anchor to fulfillmentOrderCancelfulfillment•Fulfillment
Order Cancel Order Cancel Payload Cancels a
and creates a replacement fulfillment order to represent the work left to be done. The original fulfillment order will be marked as closed.This mutation works when the fulfillment order has a
orstatus. Fororders, cancellation happens immediately because the fulfillment service hasn't accepted the request.NoteOrders that have had cancellation requested but the cancellation has yet to be accepted by the fulfillment service might still have work completed despite cancellation.
Note:Orders that have had cancellation requested but the cancellation has yet to be accepted by the fulfillment service might still have work completed despite cancellation.
Note: Orders that have had cancellation requested but the cancellation has yet to be accepted by the fulfillment service might still have work completed despite cancellation.
- •ID!required
The ID of the fulfillment order to mark as canceled.
Arguments
- •ID!
- Anchor to fulfillmentOrderClosefulfillment•Fulfillment
Order Close Order Close Payload Marks an in-progress fulfillment order as incomplete, indicating the fulfillment service is unable to ship any remaining items, and closes the fulfillment request.
This mutation can only be called for fulfillment orders that meet the following criteria:
- Assigned to a fulfillment service location,
- The fulfillment request has been accepted,
- The fulfillment order status is
.
This mutation can only be called by the fulfillment service app that accepted the fulfillment request. Calling this mutation returns the control of the fulfillment order to the merchant, allowing them to move the fulfillment order line items to another location and fulfill from there, remove and refund the line items, or to request fulfillment from the same fulfillment service again.
Closing a fulfillment order is explained in the fulfillment service guide.
- •ID!required
The ID of the fulfillment order to mark as incomplete.
- Anchor to messagemessage•String
An optional reason for marking the fulfillment order as incomplete.
Arguments
- Anchor to fulfillmentOrderHoldfulfillment•Fulfillment
Order Hold Order Hold Payload Applies a fulfillment hold on a fulfillment order.
As of the 2025-01 API version, the mutation can be successfully executed on fulfillment orders that are already on hold. To place multiple holds on a fulfillment order, apps need to supply the handle field. Each app can place up to 10 active holds per fulfillment order. If an app attempts to place more than this, the mutation will return a user error indicating that the limit has been reached. The app would need to release one of its existing holds before being able to apply a new one.
- •ID!required
The ID of the fulfillment order on which a fulfillment hold is applied.
- Anchor to fulfillmentHoldfulfillment•Fulfillment
Hold Order Hold Input! required The details of the fulfillment hold applied on the fulfillment order.
Arguments
- •ID!
- Anchor to fulfillmentOrderLineItemsPreparedForPickupfulfillment•Fulfillment
Order Line Items Prepared For Pickup Order Line Items Prepared For Pickup Payload Marks fulfillment order line items as ready for customer pickup. When executed, this mutation automatically sends a "Ready For Pickup" notification to the customer.
Use this mutation for local pickup orders after the items have been prepared and are available for the customer to collect. You can specify one or more fulfillment order objects by providing the fulfillment order IDs in the
field. This allows you to mark fulfillment order line items from different fulfillment orders as ready for pickup.- Anchor to inputinput•Fulfillment
Order Line Items Prepared For Pickup Input! required The input for marking fulfillment order line items as ready for pickup.
Arguments
- Anchor to fulfillmentOrderMergefulfillment•Fulfillment
Order Merge Order Merge Payload Merges a set or multiple sets of fulfillment orders together into one based on line item inputs and quantities.
- Anchor to fulfillmentOrderMergeInputsfulfillment•[Fulfillment
Order Merge Inputs Order Merge Input!]! required One or more sets of fulfillment orders to be merged.
Arguments
- Anchor to fulfillmentOrderMovefulfillment•Fulfillment
Order Move Order Move Payload Changes the location which is assigned to fulfill a number of unfulfilled fulfillment order line items.
Moving a fulfillment order will fail in the following circumstances:
- The fulfillment order is closed.
- The fulfillment order has had progress manually reported. To move a fulfillment order that has had progress manually reported, the fulfillment order must first be marked as open resolving the ongoing progress state.
- The destination location doesn't stock the requested inventory item.
- The API client doesn't have the correct permissions.
Line items which have already been fulfilled can't be re-assigned and will always remain assigned to the original location.
You can't change the assigned location while a fulfillment order has a request status of
,,, or. These request statuses mean that a fulfillment order is awaiting action by a fulfillment service and can't be re-assigned without first having the fulfillment service accept a cancellation request. This behavior is intended to prevent items from being fulfilled by multiple locations or fulfillment services.How re-assigning line items affects fulfillment orders
First scenario: Re-assign all line items belonging to a fulfillment order to a new location.
In this case, the assignedLocation of the original fulfillment order will be updated to the new location.
Second scenario: Re-assign a subset of the line items belonging to a fulfillment order to a new location. You can specify a subset of line items using the
parameter (available as of the2023-04API version), or specify that the original fulfillment order contains line items which have already been fulfilled.If the new location is already assigned to another active fulfillment order, on the same order, then a new fulfillment order is created. The existing fulfillment order is closed and line items are recreated in a new fulfillment order.
- •ID!required
The ID of the fulfillment order to be moved.
- Anchor to newLocationIdnew•ID!
Location Id required The ID of the location where the fulfillment order will be moved.
- Anchor to fulfillmentOrderLineItemsfulfillment•[Fulfillment
Order Line Items Order Line Item Input!] The fulfillment order line items to be moved. If left blank, all unfulfilled line items belonging to the fulfillment order are moved.
Arguments
- Anchor to fulfillmentOrderOpenfulfillment•Fulfillment
Order Open Order Open Payload Marks a scheduled fulfillment order as open.
From API version 2026-01, this will also mark a fulfillment order as open when it is assigned to a merchant managed location and has had progress reported.
- •ID!required
The ID of the fulfillment order to mark as open.
Arguments
- •ID!
- Anchor to fulfillmentOrderRejectCancellationRequestfulfillment•Fulfillment
Order Reject Cancellation Request Order Reject Cancellation Request Payload Rejects a cancellation request sent to a fulfillment service for a fulfillment order.
- •ID!required
The ID of the fulfillment order associated with the cancellation request.
- Anchor to messagemessage•String
An optional reason for rejecting the cancellation request.
Arguments
- •ID!
- Anchor to fulfillmentOrderRejectFulfillmentRequestfulfillment•Fulfillment
Order Reject Fulfillment Request Order Reject Fulfillment Request Payload Rejects a fulfillment request sent to a fulfillment service for a fulfillment order.
- •ID!required
The ID of the fulfillment order associated with the fulfillment request.
- Anchor to reasonreason•Fulfillment
Order Rejection Reason The reason for the fulfillment order rejection.
- Anchor to messagemessage•String
An optional reason for rejecting the fulfillment request.
- Anchor to lineItemsline•[Incoming
Items Request Line Item Input!] An optional array of line item rejection details. If none are provided, all line items will be assumed to be unfulfillable.
Note: After the fulfillment request has been rejected, none of the line items will be able to be fulfilled. This field documents which line items specifically were unable to be fulfilled and why.
Arguments
- •ID!
- Anchor to fulfillmentOrderReleaseHoldfulfillment•Fulfillment
Order Release Hold Order Release Hold Payload Releases the fulfillment hold on a fulfillment order.
- •ID!required
The ID of the fulfillment order for which to release the fulfillment hold.
- Anchor to holdIdshold•[ID!]
Ids The IDs of the fulfillment holds to release.
Holds will only be released if they belong to the fulfillment order specified by theidargument.
NOTE: If not supplied, all holds for the fulfillment order will be released. It is highly recommended that apps supply the ids of the holds that they intend to release. Releasing all holds on a fulfillment order will result in the fulfillment order being released prematurely and items being incorrectly fulfilled.- Anchor to externalIdexternal•String
Id A configurable ID used to track the automation system releasing this hold.
Arguments
- •ID!
- Anchor to fulfillmentOrderReschedulefulfillment•Fulfillment
Order Reschedule Order Reschedule Payload Reschedules a scheduled fulfillment order.
Updates the value of the
field on a scheduled fulfillment order.The fulfillment order will be marked as ready for fulfillment at this date and time.
- •ID!required
The ID of the fulfillment order to reschedule.
- Anchor to fulfillAtfulfill•Date
At Time! required A future date and time when the fulfillment order will be marked as ready for fulfillment.
Arguments
- •ID!
- Anchor to fulfillmentOrderSplitfulfillment•Fulfillment
Order Split Order Split Payload Splits
objects by moving the specifiedobjects and quantities into a new fulfillment order.If the original fulfillment order can't be split due to its current state, then the mutation creates a replacement fulfillment order instead.
- Anchor to fulfillmentOrderSplitsfulfillment•[Fulfillment
Order Splits Order Split Input!]! required The fulfillment orders, line items and quantities to be split into new fulfillment orders.
Arguments
- Anchor to fulfillmentOrdersReroutefulfillment•Fulfillment
Orders Reroute Orders Reroute Payload Route the fulfillment orders to an alternative location, according to the shop's order routing settings. This involves:
- Finding an alternate location that can fulfill the fulfillment orders.
- Assigning the fulfillment orders to the new location.
- Anchor to fulfillmentOrderIdsfulfillment•[ID!]!
Order Ids required The list of IDs of the fulfillment orders.
- Anchor to includedLocationIdsincluded•[ID!]
Location Ids The list of IDs of the locations to include for rerouting. By default, all locations are included.
- Anchor to excludedLocationIdsexcluded•[ID!]
Location Ids The list of IDs of the locations to exclude for rerouting. Excluded locations specified here take precedence over included locations provided through included_location_ids.
Arguments
- Anchor to fulfillmentOrdersSetFulfillmentDeadlinefulfillment•Fulfillment
Orders Set Fulfillment Deadline Orders Set Fulfillment Deadline Payload Sets the latest date and time by which the fulfillment orders need to be fulfilled.
- Anchor to fulfillmentOrderIdsfulfillment•[ID!]!
Order Ids required The IDs of the fulfillment orders for which the deadline is being set.
- Anchor to fulfillmentDeadlinefulfillment•Date
Deadline Time! required The new fulfillment deadline of the fulfillment orders.
Arguments
- Anchor to fulfillmentOrderSubmitCancellationRequestfulfillment•Fulfillment
Order Submit Cancellation Request Order Submit Cancellation Request Payload Sends a cancellation request to the fulfillment service of a fulfillment order.
- •ID!required
The ID of the fulfillment order associated with the cancellation request.
- Anchor to messagemessage•String
An optional reason for the cancellation request.
Arguments
- •ID!
- Anchor to fulfillmentOrderSubmitFulfillmentRequestfulfillment•Fulfillment
Order Submit Fulfillment Request Order Submit Fulfillment Request Payload Sends a fulfillment request to the fulfillment service assigned to a
. The fulfillment service must then accept or reject the request before processing can begin.You can either request fulfillment for all line items or specify individual items with quantities for partial fulfillment. When requesting partial fulfillment, Shopify splits the original fulfillment order into two: one with the submitted items and another with the remaining unsubmitted items. Include an optional message to communicate special instructions to the fulfillment service, such as gift wrapping or handling requirements.
Learn more about managing fulfillment requests as a fulfillment service.
- •ID!required
The ID of the fulfillment order associated with fulfillment request.
- Anchor to messagemessage•String
An optional message for the fulfillment request.
- Anchor to notifyCustomernotify•Boolean
Customer Whether the customer should be notified when fulfillments are created for this fulfillment order.
- Anchor to fulfillmentOrderLineItemsfulfillment•[Fulfillment
Order Line Items Order Line Item Input!] The fulfillment order line items to be requested for fulfillment. If left blank, all line items of the fulfillment order are requested for fulfillment.
Arguments
- •ID!
- Anchor to fulfillmentServiceCreatefulfillment•Fulfillment
Service Create Service Create Payload Creates a fulfillment service.
Fulfillment service location
When creating a fulfillment service, a new location will be automatically created on the shop and will be associated with this fulfillment service. This location will be named after the fulfillment service and inherit the shop's address.
If you are using API version
2023-10or later, and you need to specify custom attributes for the fulfillment service location (for example, to change its address to a country different from the shop's country), use the LocationEdit mutation after creating the fulfillment service.- Anchor to namename•String!required
The name of the fulfillment service.
- Anchor to callbackUrlcallback•URL
Url The URL to send requests for the fulfillment service.
If
is provided:- Shopify queries the
callback_url/fetch_tracking_numbersendpoint to retrieve tracking numbers for orders, ifis set totrue. - Shopify queries the
callback_url/fetch_stockendpoint to retrieve inventory levels, ifis set totrue. - Shopify uses the
callback_url/fulfillment_order_notificationendpoint to send fulfillment and cancellation requests.
Otherwise, if no
is provided you need to submit this information via the api:- For submitting tracking info and handling fulfillment requests, see our docs on building for fulfillment services.
- For managing inventory quantities, see our docs on managing inventory quantities and states.
- Shopify queries the
- Anchor to trackingSupporttracking•Boolean
Support Default:false Whether the fulfillment service provides tracking numbers for packages.
If
is provided (optional as of API version "2026-01"), Shopify will periodically fetch tracking numbers via the callback endpoint.If no
is provided you need to submit this information via the api, see our docs on building for fulfillment services.- Anchor to fulfillmentOrdersOptInfulfillment•Boolean
Orders Opt In DeprecatedDefault:true - Anchor to permitsSkuSharingpermits•Boolean
Sku Sharing Deprecated (removal date set)Default:true - Anchor to inventoryManagementinventory•Boolean
Management Default:false Whether the fulfillment service manages product inventory and provides updates to Shopify.
If
is provided (optional as of API version "2026-01"), Shopify will periodically fetch inventory levels via the callback endpoint.If no
is provided you need to submit this information via the api, see our docs on managing inventory quantities and states.- Anchor to requiresShippingMethodrequires•Boolean
Shipping Method Default:true Whether the fulfillment service requires products to be physically shipped.
Arguments
- Anchor to fulfillmentServiceDeletefulfillment•Fulfillment
Service Delete Service Delete Payload Deletes a fulfillment service.
- •ID!required
The ID of the fulfillment service to delete.
- Anchor to destinationLocationIddestination•ID
Location Id - Anchor to inventoryActioninventory•Fulfillment
Action Service Delete Inventory Action Default:TRANSFER The action to take with the location after the fulfillment service is deleted.
Arguments
- •ID!
- Anchor to fulfillmentServiceUpdatefulfillment•Fulfillment
Service Update Service Update Payload Updates the
configuration, including its name, callback URL, and operational settings.The mutation modifies how the fulfillment service handles inventory tracking, shipping requirements, and package tracking support.
NoteNote: To update the physical address or other location details of the fulfillment service, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/locationEdit"><code><span class="PreventFireFoxApplyingGapToWBR">location<wbr/>Edit</span></code></a> mutation instead.
Learn more about editing fulfillment service locations.
- •ID!required
The id of the fulfillment service.
- Anchor to namename•String
The name of the fulfillment service.
- Anchor to callbackUrlcallback•URL
Url The URL to send requests for the fulfillment service.
If
is provided:- Shopify queries the
callback_url/fetch_tracking_numbersendpoint to retrieve tracking numbers for orders, ifis set totrue. - Shopify queries the
callback_url/fetch_stockendpoint to retrieve inventory levels, ifis set totrue. - Shopify uses the
callback_url/fulfillment_order_notificationendpoint to send fulfillment and cancellation requests.
Otherwise, if no
is provided you need to submit this information via the api:- For submitting tracking info and handling fulfillment requests, see our docs on building for fulfillment services.
- For managing inventory quantities, see our docs on managing inventory quantities and states.
- Shopify queries the
- Anchor to trackingSupporttracking•Boolean
Support Whether the fulfillment service provides tracking numbers for packages.
If
is provided, Shopify will periodically fetch tracking numbers via the callback endpoint.If no
is provided you need to submit this information via the api, see our docs on building for fulfillment services.- Anchor to fulfillmentOrdersOptInfulfillment•Boolean
Orders Opt In Deprecated - Anchor to permitsSkuSharingpermits•Boolean
Sku Sharing Deprecated (removal date set) - Anchor to inventoryManagementinventory•Boolean
Management Whether the fulfillment service manages product inventory and provides updates to Shopify.
If
is provided, Shopify will periodically fetch inventory levels via the callback endpoint.If no
is provided you need to submit this information via the api, see our docs on managing inventory quantities and states.- Anchor to requiresShippingMethodrequires•Boolean
Shipping Method Default:true Whether the fulfillment service requires products to be physically shipped.
Arguments
- •ID!
- Anchor to fulfillmentTrackingInfoUpdatefulfillment•Fulfillment
Tracking Info Update Tracking Info Update Payload Updates tracking information for a fulfillment, including the carrier name, tracking numbers, and tracking URLs. You can provide either single or multiple tracking numbers for shipments with multiple packages.
The mutation accepts a
that supports both single tracking (usingnumberandurlfields) and multi-package tracking (usingnumbersandurlsfields). When you specify a supported carrier name, Shopify automatically generates tracking URLs for the provided tracking numbers.You can optionally notify customers about tracking updates with the
argument. When enabled, customers receive shipping update emails with tracking details and receive notifications about future updates to the fulfillment.Learn more about enabling tracking support for fulfillment services.
- Anchor to fulfillmentIdfulfillment•ID!
Id required The ID of the fulfillment.
- Anchor to trackingInfoInputtracking•Fulfillment
Info Input Tracking Input! required The tracking input for the mutation, including tracking URL, number, and company.
- Anchor to notifyCustomernotify•Boolean
Customer Whether the customer will be notified of this update and future updates for the fulfillment. If this field is left blank, then notifications won't be sent to the customer when the fulfillment is updated.
Arguments
- Anchor to giftCardCreategift•Gift
Card Create Card Create Payload Creates a new
with a specified initial value. You can assign the gift card to aCustomeror create it without assignment for manual distribution.You can customize the gift card with an optional code, expiration date, and internal note. If you don't provide a code, the system generates a random 16 character alphanumeric code. The mutation also supports scheduling gift card notifications to recipients, with a personalized message, through the
field on theinput object.- Anchor to inputinput•Gift
Card Create Input! required The input fields to create a gift card.
Arguments
- Anchor to giftCardCreditgift•Gift
Card Credit Card Credit Payload Credit a gift card.
- •ID!required
The ID of the gift card to be credited.
- Anchor to creditInputcredit•Gift
Input Card Credit Input! required The input fields to credit a gift card.
Arguments
- •ID!
- Anchor to giftCardDeactivategift•Gift
Card Deactivate Card Deactivate Payload Deactivate a gift card. A deactivated gift card cannot be used by a customer. A deactivated gift card cannot be re-enabled.
- •ID!required
The ID of the gift card to deactivate.
Arguments
- •ID!
- Anchor to giftCardDebitgift•Gift
Card Debit Card Debit Payload Debit a gift card.
- •ID!required
The ID of the gift card to be debited.
- Anchor to debitInputdebit•Gift
Input Card Debit Input! required The input fields to debit a gift card.
Arguments
- •ID!
- Anchor to giftCardSendNotificationToCustomergift•Gift
Card Send Notification To Customer Card Send Notification To Customer Payload Send notification to the customer of a gift card.
- •ID!required
The ID of the gift card to send.
Arguments
- •ID!
- Anchor to giftCardSendNotificationToRecipientgift•Gift
Card Send Notification To Recipient Card Send Notification To Recipient Payload Send notification to the recipient of a gift card.
- •ID!required
The ID of the gift card to send.
Arguments
- •ID!
- Anchor to giftCardUpdategift•Gift
Card Update Card Update Payload Update a gift card.
- •ID!required
The ID of the gift card to be updated.
- Anchor to inputinput•Gift
Card Update Input! required The input fields to update the gift card.
Arguments
- •ID!
- Anchor to inventoryActivateinventory•Inventory
Activate Activate Payload Activates an inventory item at a
Locationby creating anthat tracks stock quantities. This enables you to manage inventory for aat the specified location.When you activate an inventory item, you can set its initial quantities. The
availableargument sets the quantity that's available for sale.argument sets the total physical quantity at the location. If you don't specify quantities, thenavailableanddefault to zero.CautionAs of version
2026-01, this mutation supports an optional idempotency key using the@idempotentdirective. As of version2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of version
2026-01, this mutation supports an optional idempotency key using the@idempotentdirective. As of version2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of version <code>2026-01</code>, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of version <code>2026-04</code>, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
Learn more about managing inventory quantities and states.
- Anchor to inventoryItemIdinventory•ID!
Item Id required The ID of the inventory item to activate.
- Anchor to locationIdlocation•ID!
Id required The ID of the location of the inventory item being activated.
- Anchor to availableavailable•Int
The initial available quantity of the inventory item being activated at the location.
- Anchor to onHandon•Int
Hand The initial on_hand quantity of the inventory item being activated at the location.
- Anchor to stockAtLegacyLocationstock•Boolean
At Legacy Location Default:false Allow activation at or away from fulfillment service location with sku sharing off. This will deactivate inventory at all other locations.
Arguments
- Anchor to inventoryAdjustQuantitiesinventory•Inventory
Adjust Quantities Adjust Quantities Payload Adjusts quantities for inventory items by applying incremental changes at specific locations. Each adjustment modifies the quantity by a delta value rather than setting an absolute amount.
The mutation tracks adjustments with a reason code and optional reference URI for audit trails. Returns an
that records all changes made in the operation.Learn more about managing inventory quantities and states.
CautionAs of version
2026-01, this mutation supports an optional idempotency key using the@idempotentdirective. As of version2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of version
2026-01, this mutation supports an optional idempotency key using the@idempotentdirective. As of version2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of version <code>2026-01</code>, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of version <code>2026-04</code>, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to inputinput•Inventory
Adjust Quantities Input! required The information required to adjust inventory quantities.
Arguments
- Anchor to inventoryBulkToggleActivationinventory•Inventory
Bulk Toggle Activation Bulk Toggle Activation Payload Activates or deactivates an inventory item at multiple locations. When you activate an
at aLocation, that location can stock and track quantities for that item. When you deactivate an inventory item at a location, the inventory item is no longer stocked at that location.The mutation accepts an inventory item ID and a list of location-specific activation settings. It returns the updated inventory item and any activated
objects.Learn more about managing inventory quantities and states.
- Anchor to inventoryItemIdinventory•ID!
Item Id required The ID of the inventory item to modify the activation status locations for.
- Anchor to inventoryItemUpdatesinventory•[Inventory
Item Updates Bulk Toggle Activation Input!]! required A list of pairs of locations and activate status to update for the specified inventory item.
Arguments
- Anchor to inventoryDeactivateinventory•Inventory
Deactivate Deactivate Payload Removes an inventory item's quantities from a location, and turns off inventory at the location.
- Anchor to inventoryLevelIdinventory•ID!
Level Id required The ID of the inventory level to deactivate.
Arguments
- Anchor to inventoryItemUpdateinventory•Inventory
Item Update Item Update Payload Updates an
's properties including whether inventory is tracked, cost, SKU, and whether shipping is required. Inventory items represent the goods available to be shipped to customers.- •ID!required
The ID of the inventory item to update.
- Anchor to inputinput•Inventory
Item Input! required
Arguments
- •ID!
- Anchor to inventoryMoveQuantitiesinventory•Inventory
Move Quantities Move Quantities Payload Moves inventory quantities for a single inventory item between different states at a single location. Use this mutation to reallocate inventory across quantity states without moving it between locations.
Each change specifies the quantity to move, the source state and location, and the destination state and location. The mutation returns an
that tracks all changes made in a single operation, providing an audit trail with the reason and reference document URI.CautionAs of version
2026-01, this mutation supports an optional idempotency key using the@idempotentdirective. As of version2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of version
2026-01, this mutation supports an optional idempotency key using the@idempotentdirective. As of version2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of version <code>2026-01</code>, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of version <code>2026-04</code>, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to inputinput•Inventory
Move Quantities Input! required The information required to move inventory quantities.
Arguments
- Anchor to inventorySetQuantitiesinventory•Inventory
Set Quantities Set Quantities Payload Set quantities of specified name using absolute values. This mutation supports compare-and-set functionality to handle concurrent requests properly. If
is not set to true, the mutation will only update the quantity if the persisted quantity matches thevalue. If thevalue does not match the persisted value, the mutation will return an error. In order to opt out of thecheck, theargument can be set to true.NoteOnly use this mutation if calling on behalf of a system that acts as the source of truth for inventory quantities, otherwise please consider using the inventoryAdjustQuantities mutation.
Opting out of the
check can lead to inaccurate inventory quantities if multiple requests are made concurrently. It is recommended to always include thevalue to ensure the accuracy of the inventory quantities and to opt out of the check usingonly when necessary.Note:Only use this mutation if calling on behalf of a system that acts as the source of truth for inventory quantities, otherwise please consider using the inventoryAdjustQuantities mutation.
Opting out of the
check can lead to inaccurate inventory quantities if multiple requests are made concurrently. It is recommended to always include thevalue to ensure the accuracy of the inventory quantities and to opt out of the check usingonly when necessary.Note: Only use this mutation if calling on behalf of a system that acts as the source of truth for inventory quantities, otherwise please consider using the <a href="https://shopify.dev/api/admin-graphql/latest/mutations/inventoryAdjustQuantities">inventoryAdjustQuantities</a> mutation.</p> <p>Opting out of the <code><span class="PreventFireFoxApplyingGapToWBR">compare<wbr/>Quantity</span></code> check can lead to inaccurate inventory quantities if multiple requests are made concurrently. It is recommended to always include the <code><span class="PreventFireFoxApplyingGapToWBR">compare<wbr/>Quantity</span></code> value to ensure the accuracy of the inventory quantities and to opt out of the check using <code><span class="PreventFireFoxApplyingGapToWBR">ignore<wbr/>Compare<wbr/>Quantity</span></code> only when necessary.
CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to inputinput•Inventory
Set Quantities Input! required The information required to set inventory quantities.
Arguments
- Anchor to inventoryShipmentAddItemsinventory•Inventory
Shipment Add Items Shipment Add Items Payload Adds items to an inventory shipment.
CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- •ID!required
The ID of the inventory shipment to modify.
- Anchor to lineItemsline•[Inventory
Items Shipment Line Item Input!]! required The list of line items to add to the inventory shipment.
Arguments
- •ID!
- Anchor to inventoryShipmentCreateinventory•Inventory
Shipment Create Shipment Create Payload Adds a draft shipment to an inventory transfer.
CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to inputinput•Inventory
Shipment Create Input! required The input fields for the inventory shipment.
Arguments
- Anchor to inventoryShipmentCreateInTransitinventory•Inventory
Shipment Create In Transit Shipment Create In Transit Payload Adds an in-transit shipment to an inventory transfer.
CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to inputinput•Inventory
Shipment Create Input! required The input fields for the inventory shipment.
Arguments
- Anchor to inventoryShipmentDeleteinventory•Inventory
Shipment Delete Shipment Delete Payload Deletes an inventory shipment. Only draft shipments can be deleted.
- •ID!required
The ID of the inventory shipment to be deleted.
Arguments
- •ID!
- Anchor to inventoryShipmentMarkInTransitinventory•Inventory
Shipment Mark In Transit Shipment Mark In Transit Payload Marks a draft inventory shipment as in transit.
- •ID!required
The ID of the inventory shipment to mark in transit.
- Anchor to dateShippeddate•Date
Shipped Time The date the shipment was shipped.
Arguments
- •ID!
- Anchor to inventoryShipmentReceiveinventory•Inventory
Shipment Receive Shipment Receive Payload Receive an inventory shipment.
CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- •ID!required
The ID of the inventory shipment to receive.
- Anchor to lineItemsline•[Inventory
Items Shipment Receive Item Input!] The list of receive line items for the inventory shipment.
- Anchor to dateReceiveddate•Date
Received Time The date the inventory shipment was initially received.
- Anchor to bulkReceiveActionbulk•Inventory
Receive Action Shipment Receive Line Item Reason The bulk receive action for the inventory shipment.
Arguments
- •ID!
- Anchor to inventoryShipmentRemoveItemsinventory•Inventory
Shipment Remove Items Shipment Remove Items Payload Remove items from an inventory shipment.
- •ID!required
The ID of the inventory shipment to remove items from.
- Anchor to lineItemsline•[ID!]!
Items required A list of inventory shipment line item ids representing the items to be removed from the shipment.
Arguments
- •ID!
- Anchor to inventoryShipmentSetTrackinginventory•Inventory
Shipment Set Tracking Shipment Set Tracking Payload Edits the tracking info on an inventory shipment.
- •ID!required
The ID of the inventory shipment whose tracking info is being edited.
- Anchor to trackingtracking•Inventory
Shipment Tracking Input! required The tracking info to edit on the inventory shipment.
Arguments
- •ID!
- Anchor to inventoryShipmentUpdateItemQuantitiesinventory•Inventory
Shipment Update Item Quantities Shipment Update Item Quantities Payload Updates items on an inventory shipment.
- •ID!required
The ID of the inventory shipment to update item quantities.
- Anchor to itemsitems•[Inventory
Shipment Update Item Quantities Input!] Default:[] The list of line items to be updated to the shipment.
Arguments
- •ID!
- Anchor to inventoryTransferCancelinventory•Inventory
Transfer Cancel Transfer Cancel Payload Cancels an inventory transfer.
- •ID!required
The ID of the inventory transfer to cancel.
Arguments
- •ID!
- Anchor to inventoryTransferCreateinventory•Inventory
Transfer Create Transfer Create Payload Creates a draft inventory transfer to move inventory items between
Locationobjects in your store. The transfer tracks which items to move, their quantities, and the origin and destination locations.Use
to mark the transfer as ready to ship.CautionAs of version
2026-01, this mutation supports an optional idempotency key using the@idempotentdirective. As of version2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of version
2026-01, this mutation supports an optional idempotency key using the@idempotentdirective. As of version2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of version <code>2026-01</code>, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of version <code>2026-04</code>, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to inputinput•Inventory
Transfer Create Input! required The input fields for the inventory transfer.
Arguments
- Anchor to inventoryTransferCreateAsReadyToShipinventory•Inventory
Transfer Create As Ready To Ship Transfer Create As Ready To Ship Payload Creates an inventory transfer in ready to ship.
CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to inputinput•Inventory
Transfer Create As Ready To Ship Input! required The input fields for the inventory transfer.
Arguments
- Anchor to inventoryTransferDeleteinventory•Inventory
Transfer Delete Transfer Delete Payload Deletes an inventory transfer.
- •ID!required
The ID of the inventory transfer to delete.
Arguments
- •ID!
- Anchor to inventoryTransferDuplicateinventory•Inventory
Transfer Duplicate Transfer Duplicate Payload This mutation allows duplicating an existing inventory transfer. The duplicated transfer will have the same line items and quantities as the original transfer, but will be in a draft state with no shipments.
CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- •ID!required
The ID of the inventory transfer to duplicate.
Arguments
- •ID!
- Anchor to inventoryTransferEditinventory•Inventory
Transfer Edit Transfer Edit Payload Edits an inventory transfer.
- •ID!required
The ID of the inventory Transfer to be edited.
- Anchor to inputinput•Inventory
Transfer Edit Input! required The input fields to edit the inventory transfer.
Arguments
- •ID!
- Anchor to inventoryTransferMarkAsReadyToShipinventory•Inventory
Transfer Mark As Ready To Ship Transfer Mark As Ready To Ship Payload Sets an inventory transfer to ready to ship.
- •ID!required
The ID of the inventory transfer to mark as ready to ship.
Arguments
- •ID!
- Anchor to inventoryTransferRemoveItemsinventory•Inventory
Transfer Remove Items Transfer Remove Items Payload This mutation allows removing the shippable quantities of line items on a Transfer. It removes all quantities of the item from the transfer that are not associated with shipments.
- Anchor to inputinput•Inventory
Transfer Remove Items Input! required The input fields for the InventoryTransferRemoveItems mutation.
Arguments
- Anchor to inventoryTransferSetItemsinventory•Inventory
Transfer Set Items Transfer Set Items Payload This mutation allows for the setting of line items on a Transfer. Will replace the items already set, if any.
CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to inputinput•Inventory
Transfer Set Items Input! required The input fields for the InventoryTransferSetItems mutation.
Arguments
- Anchor to locationActivatelocation•Location
Activate Activate Payload Activates a location so that you can stock inventory at the location. Refer to the
andactivatablefields on theLocationobject.CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to locationIdlocation•ID!
Id required The ID of a location to activate.
Arguments
- Anchor to locationAddlocation•Location
Add Add Payload Adds a new
Locationwhere you can stock inventory and fulfill orders. Locations represent physical places like warehouses, retail stores, or fulfillment centers.The location requires a name and address with at least a country code. You can specify whether the location fulfills online orders, which determines if its inventory is available for online sales. You can also attach custom metafields to store additional information about the location.
- Anchor to inputinput•Location
Add Input! required The properties of the location to add.
Arguments
- Anchor to locationDeactivatelocation•Location
Deactivate Deactivate Payload Deactivates a location and moves inventory, pending orders, and moving transfers " "to a destination location.
CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to locationIdlocation•ID!
Id required The ID of a location to deactivate.
- Anchor to destinationLocationIddestination•ID
Location Id The ID of a destination location to which inventory, pending orders and moving transfers will be moved from the location to deactivate.
Arguments
- Anchor to locationDeletelocation•Location
Delete Delete Payload Deletes a location.
- Anchor to locationIdlocation•ID!
Id required The ID of a location to delete.
Arguments
- Anchor to locationEditlocation•Location
Edit Edit Payload Updates the properties of an existing
Location. You can modify the location's name, address, whether it fulfills online orders, and custommetafields.Apps that created a
can edit the associated location to ensure accurate representation of their fulfillment network.Note: You can't disable the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/locationEdit#arguments-input.fields.fulfillsOnlineOrders"><code><span class="PreventFireFoxApplyingGapToWBR">fulfills<wbr/>Online<wbr/>Orders</span></code></a> setting for fulfillment service locations.
Learn more about editing locations for fulfillment services.
- •ID!required
The ID of a location to edit.
- Anchor to inputinput•Location
Edit Input! required The updated properties for the location.
Arguments
- •ID!
- Anchor to locationLocalPickupDisablelocation•Location
Local Pickup Disable Local Pickup Disable Payload Disables local pickup for a location.
- Anchor to locationIdlocation•ID!
Id required The ID of the location to disable local pickup for.
Arguments
- Anchor to locationLocalPickupEnablelocation•Location
Local Pickup Enable Local Pickup Enable Payload Enables local pickup for a location so customers can collect their orders in person. Configures the estimated pickup time that customers see at checkout and optional instructions for finding or accessing the pickup location.
- Anchor to localPickupSettingslocal•Delivery
Pickup Settings Location Local Pickup Enable Input! required The settings required to enable local pickup for a location.
Arguments
- Anchor to marketCreatemarket•Market
Create Create Payload Creates a
Marketto deliver customized shopping experiences. Markets define various aspects of the buyer experience including pricing, product availability, custom content, inventory and fulfillment priorities, and payment methods.Define conditions to match buyers by region, company location, retail location, or other criteria. Configure
to control currency behavior. Setto determine tax and duty display. AssignCatalogobjects andconfigurations to control product availability and SEO strategy.Learn more about Shopify Markets.
- Anchor to inputinput•Market
Create Input! required The properties of the new market.
Arguments
- Anchor to marketDeletemarket•Market
Delete Delete Payload Deletes a market definition.
- •ID!required
The ID of the market to delete.
Arguments
- •ID!
- Anchor to marketingActivitiesDeleteAllExternalmarketing•Marketing
Activities Delete All External Activities Delete All External Payload Deletes all external marketing activities. Deletion is performed by a background job, as it may take a bit of time to complete if a large number of activities are to be deleted. Attempting to create or modify external activities before the job has completed will result in the create/update/upsert mutation returning an error.
- Anchor to marketingActivityCreatemarketing•Marketing
Activity Create Activity Create Payload Create new marketing activity. Marketing activity app extensions are deprecated and will be removed in the near future.
- Anchor to inputinput•Marketing
Activity Create Input! required The Input of marketing activity create.
Arguments
- Anchor to marketingActivityCreateExternalmarketing•Marketing
Activity Create External Activity Create External Payload Creates a new external marketing activity.
- Anchor to inputinput•Marketing
Activity Create External Input! required The input field for creating an external marketing activity.
Arguments
- Anchor to marketingActivityDeleteExternalmarketing•Marketing
Activity Delete External Activity Delete External Payload Deletes an external marketing activity.
- Anchor to marketingActivityIdmarketing•ID
Activity Id The ID of the marketing activity. A marketing activity ID or remote ID must be provided.
- Anchor to remoteIdremote•String
Id A custom unique identifier for the marketing activity, which can be used to manage the activity and send engagement metrics without having to store our marketing activity ID in your systems. A marketing activity ID or remote ID must be provided.
Arguments
- Anchor to marketingActivityUpdatemarketing•Marketing
Activity Update Activity Update Payload Updates a marketing activity with the latest information. Marketing activity app extensions are deprecated and will be removed in the near future.
- Anchor to inputinput•Marketing
Activity Update Input! required The Input of the marketing activity.
Arguments
- Anchor to marketingActivityUpdateExternalmarketing•Marketing
Activity Update External Activity Update External Payload Update an external marketing activity.
- Anchor to inputinput•Marketing
Activity Update External Input! required The input field for updating an external marketing activity.
- Anchor to marketingActivityIdmarketing•ID
Activity Id The ID of the marketing activity. Specify either the marketing activity ID, remote ID, or UTM to update the marketing activity.
- Anchor to remoteIdremote•String
Id A custom unique identifier for the marketing activity, which can be used to manage the activity and send engagement metrics without having to store our marketing activity ID in your systems. Specify either the marketing activity ID, remote ID, or UTM to update the marketing activity.
- •UTMInput
Specifies the Urchin Traffic Module (UTM) parameters that are associated with a related marketing campaign. Specify either the marketing activity ID, remote ID, or UTM to update the marketing activity.
Arguments
- Anchor to marketingActivityUpsertExternalmarketing•Marketing
Activity Upsert External Activity Upsert External Payload Creates a new external marketing activity or updates an existing one. When optional fields are absent or null, associated information will be removed from an existing marketing activity.
- Anchor to inputinput•Marketing
Activity Upsert External Input! required The input field for creating or updating an external marketing activity.
Arguments
- Anchor to marketingEngagementCreatemarketing•Marketing
Engagement Create Engagement Create Payload Creates a new marketing engagement for a marketing activity or a marketing channel.
- Anchor to marketingActivityIdmarketing•ID
Activity Id The identifier of the marketing activity for which the engagement metrics are being provided. This or the remoteId should be set when and only when providing activity-level engagements. This should be nil when providing channel-level engagements.
- Anchor to remoteIdremote•String
Id A custom unique identifier for the marketing activity, which can be used to manage the activity and send engagement metrics without having to store our marketing activity ID in your systems. This or the marketingActivityId should be set when and only when providing activity-level engagements. This should be nil when providing channel-level engagements.
- Anchor to channelHandlechannel•String
Handle The unique string identifier of the channel to which the engagement metrics are being provided. This should be set when and only when providing channel-level engagements. This should be nil when providing activity-level engagements. For the correct handle for your channel, contact your partner manager.
- Anchor to marketingEngagementmarketing•Marketing
Engagement Engagement Input! required The marketing engagement's attributes.
Arguments
- Anchor to marketingEngagementsDeletemarketing•Marketing
Engagements Delete Engagements Delete Payload Marks channel-level engagement data such that it no longer appears in reports. Activity-level data cannot be deleted directly, instead the MarketingActivity itself should be deleted to hide it from reports.
- Anchor to channelHandlechannel•String
Handle The handle of the channel for which engagement data should be deleted.
- Anchor to deleteEngagementsForAllChannelsdelete•Boolean
Engagements For All Channels Default:false When true, engagements for all channels that belong to the api client will be deleted.
Arguments
- Anchor to marketLocalizationsRegistermarket•Market
Localizations Register Localizations Register Payload Creates or updates market localizations.
- Anchor to resourceIdresource•ID!
Id required The ID of the resource that is being localized within the context of a market.
- Anchor to marketLocalizationsmarket•[Market
Localizations Localization Register Input!]! required The input fields for a market localization.
Arguments
- Anchor to marketLocalizationsRemovemarket•Market
Localizations Remove Localizations Remove Payload Deletes market localizations.
- Anchor to resourceIdresource•ID!
Id required The ID of the resource for which market localizations are being deleted.
- Anchor to marketLocalizationKeysmarket•[String!]!
Localization Keys required The list of market localization keys.
- Anchor to marketIdsmarket•[ID!]!
Ids required The list of market IDs.
Arguments
- Anchor to marketUpdatemarket•Market
Update Update Payload Updates the properties of a market.
- •ID!required
The ID of the market to update.
- Anchor to inputinput•Market
Update Input! required The properties to update.
Arguments
- •ID!
- •Menu
Create Payload Creates a navigation
Menufor the online store. Menus organize links that help customers navigate to collections, products, pages, blogs, and custom URLs.Each menu requires a unique handle for identification and can contain multiple
objects with nested sub-items up to three levels deep.- •String!required
The menu's title.
- •String!required
The menu's handle.
- •[Menu
Item Create Input!]! required List of the menu's items.
Arguments
- •String!
- •Menu
Delete Payload Deletes a menu.
- •ID!required
The ID of the menu to be deleted.
Arguments
- •ID!
- •Menu
Update Payload Updates a
Menufor display on the storefront. Modifies the menu's title and navigation structure, including nestedobjects. You can update the handle for non-default menus.The items argument accepts a list of menu items with their nested structure. Each item can include nested items to create multi-level navigation hierarchies. Default menus have restricted updates—you can't change their handles.
- •ID!required
ID of the menu to be updated.
- •String!required
The menu's title.
- •String
The menu's handle.
- •[Menu
Item Update Input!]! required List of the menu's items.
Arguments
- •ID!
- Anchor to metafieldDefinitionCreatemetafield•Metafield
Definition Create Definition Create Payload Creates a
that establishes structure and validation rules for metafields. The definition specifies the data type, validation constraints, and access permissions for metafields with a given namespace and key combination.When you create a new definition, the system validates any existing unstructured metafields matching the same owner type, namespace, and key against it. The system updates each valid metafield's type to match the definition. Invalid metafields remain unchanged but must conform to the definition when updated.
Learn more about creating metafield definitions.
- Anchor to definitiondefinition•Metafield
Definition Input! required Specifies the input fields for a metafield definition.
Arguments
- Anchor to metafieldDefinitionDeletemetafield•Metafield
Definition Delete Definition Delete Payload Deletes a
. You can identify the definition by providing either its owner type, namespace, and key, or its global ID.When you set
totrue, the mutation asynchronously deletes allMetafieldobjects that use this definition. This option must betruewhen deleting definitions under the$appnamespace.Learn more about deleting metafield definitions.
- •ID
The id of the metafield definition to delete. Using
identifieris preferred.- Anchor to identifieridentifier•Metafield
Definition Identifier Input The identifier of the metafield definition to delete.
- Anchor to deleteAllAssociatedMetafieldsdelete•Boolean
All Associated Metafields Default:false Whether to delete all associated metafields.
Arguments
- Anchor to metafieldDefinitionPinmetafield•Metafield
Definition Pin Definition Pin Payload You can organize your metafields in your Shopify admin by pinning/unpinning metafield definitions. The order of your pinned metafield definitions determines the order in which your metafields are displayed on the corresponding pages in your Shopify admin. By default, only pinned metafields are automatically displayed.
- Anchor to definitionIddefinition•ID
Id The id of the metafield definition to pin. Using
identifieris preferred.- Anchor to identifieridentifier•Metafield
Definition Identifier Input The identifier of the metafield definition to pin.
Arguments
- Anchor to metafieldDefinitionUnpinmetafield•Metafield
Definition Unpin Definition Unpin Payload You can organize your metafields in your Shopify admin by pinning/unpinning metafield definitions. The order of your pinned metafield definitions determines the order in which your metafields are displayed on the corresponding pages in your Shopify admin. By default, only pinned metafields are automatically displayed.
- Anchor to definitionIddefinition•ID
Id The ID of the metafield definition to unpin. Using
identifieris preferred.- Anchor to identifieridentifier•Metafield
Definition Identifier Input The identifier of the metafield definition to unpin.
Arguments
- Anchor to metafieldDefinitionUpdatemetafield•Metafield
Definition Update Definition Update Payload Updates a
's configuration and settings. You can modify the definition's name, description, validation rules, access settings, capabilities, and constraints.The mutation updates access settings that control visibility across different APIs, such as the GraphQL Admin API, Storefront API, and Customer Account API. It also enables capabilities like admin filtering or unique value validation, and modifies constraints that determine which resource subtypes the definition applies to.
NoteThe type, namespace, key, and owner type identify the definition and so can't be changed.
Note:The type, namespace, key, and owner type identify the definition and so can't be changed.
Note: The type, namespace, key, and owner type identify the definition and so can't be changed.
Learn more about updating metafield definitions.
- Anchor to definitiondefinition•Metafield
Definition Update Input! required The input fields for the metafield definition update.
Arguments
- Anchor to metafieldsDeletemetafields•Metafields
Delete Delete Payload Deletes
Metafieldobjects in bulk by specifying combinations of owner ID, namespace, and key.Returns the identifiers of successfully deleted metafields. If a specified metafield doesn't exist, then the mutation still succeeds but returns
nullfor that identifier in the response.- Anchor to metafieldsmetafields•[Metafield
Identifier Input!]! required A list of identifiers specifying metafields to delete. At least one identifier must be specified.
Arguments
- Anchor to metafieldsSetmetafields•Metafields
Set Set Payload Sets metafield values. Metafield values will be set regardless if they were previously created or not.
Allows a maximum of 25 metafields to be set at a time, with a maximum total request payload size of 10MB.
This operation is atomic, meaning no changes are persisted if an error is encountered.
As of
2024-07, this operation supports compare-and-set functionality to better handle concurrent requests. Ifis set for any metafield, the mutation will only set that metafield if the persisted metafield value matches the digest used on. If the metafield doesn't exist yet, but you want to guarantee that the operation will run in a safe manner, settonull. Thevalue can be acquired by querying the metafield object and selectingas a field. If thevalue does not match the digest for the persisted value, the mutation will return an error. You can opt out of write guarantees by not sendingin the request.- Anchor to metafieldsmetafields•[Metafields
Set Input!]! required The list of metafield values to set. Maximum of 25.
Arguments
- Anchor to metaobjectBulkDeletemetaobject•Metaobject
Bulk Delete Bulk Delete Payload Asynchronously delete metaobjects and their associated metafields in bulk.
- Anchor to wherewhere•Metaobject
Bulk Delete Where Condition! required Specifies the condition by which metaobjects are deleted. Exactly one field of input is required.
Arguments
- Anchor to metaobjectCreatemetaobject•Metaobject
Create Create Payload Creates a metaobject entry based on an existing
. The type must match a definition that already exists in the shop.Specify field values using key-value pairs that correspond to the field definitions. The mutation generates a unique handle automatically if you don't provide one. You can also configure capabilities like publishable status to control the metaobject's visibility across channels.
Learn more about managing metaobjects.
- Anchor to metaobjectmetaobject•Metaobject
Create Input! required The parameters for the metaobject to create.
Arguments
- Anchor to metaobjectDefinitionCreatemetaobject•Metaobject
Definition Create Definition Create Payload Creates a metaobject definition that establishes the structure for custom data objects in your store. The definition specifies the fields, data types, and access permissions that all
Metaobjectentries of this type share.Use the
typefield to create a unique namespace for your metaobjects. Prefix the type with$app:to reserve the definition for your app's exclusive use. The definition can include capabilities like publishable status or translation eligibility, to extend how metaobjects integrate with Shopify's features.Learn more about managing metaobjects.
- Anchor to definitiondefinition•Metaobject
Definition Create Input! required The input fields for creating a metaobject definition.
Arguments
- Anchor to metaobjectDefinitionDeletemetaobject•Metaobject
Definition Delete Definition Delete Payload Deletes the specified metaobject definition. Also deletes all related metafield definitions, metaobjects, and metafields asynchronously.
- •ID!required
The ID of the metaobjects definition to delete.
Arguments
- •ID!
- Anchor to metaobjectDefinitionUpdatemetaobject•Metaobject
Definition Update Definition Update Payload Updates a
's configuration and field structure. You can modify the definition's name, description, display name key, access controls, and capabilities, as well as those of all its fields.The mutation supports reordering fields when
istrue, which arranges submitted fields first followed by alphabetized omitted fields.Learn more about managing metaobjects.
- •ID!required
The ID of the metaobject definition to update.
- Anchor to definitiondefinition•Metaobject
Definition Update Input! required The input fields for updating a metaobject definition.
Arguments
- •ID!
- Anchor to metaobjectDeletemetaobject•Metaobject
Delete Delete Payload Deletes the specified metaobject and its associated metafields.
- •ID!required
The ID of the metaobject to delete.
Arguments
- •ID!
- Anchor to metaobjectUpdatemetaobject•Metaobject
Update Update Payload Updates a
Metaobjectwith new field values, handle, or capabilities. Metaobjects are custom data structures that extend Shopify's data model.You can modify field values mapped to the metaobject's
, update the handle for a unique identifier, and adjust capabilities like publishing status. When updating the handle, you can optionally create a redirect from the old handle to maintain existing references.- •ID!required
The ID of the metaobject to update.
- Anchor to metaobjectmetaobject•Metaobject
Update Input! required Specifies parameters to update on the metaobject.
Arguments
- •ID!
- Anchor to metaobjectUpsertmetaobject•Metaobject
Upsert Upsert Payload Creates or updates a
Metaobjectbased on its handle. If a metaobject with the specified handle exists, the mutation updates it with the provided field values. If no matching metaobject exists, the mutation creates a new one.The handle serves as a unique identifier within a metaobject type. Field values map to the
's field keys and overwrite existing values during updates.- Anchor to handlehandle•Metaobject
Handle Input! required The identifier of the metaobject to upsert.
- Anchor to metaobjectmetaobject•Metaobject
Upsert Input! required The parameters to upsert the metaobject.
Arguments
- Anchor to mobilePlatformApplicationCreatemobile•Mobile
Platform Application Create Platform Application Create Payload Create a mobile platform application.
- Anchor to inputinput•Mobile
Platform Application Create Input! required The input to create a mobile platform application.
Arguments
- Anchor to mobilePlatformApplicationDeletemobile•Mobile
Platform Application Delete Platform Application Delete Payload Delete a mobile platform application.
- •ID!required
The ID of the Mobile Platform Application to be deleted.
Arguments
- •ID!
- Anchor to mobilePlatformApplicationUpdatemobile•Mobile
Platform Application Update Platform Application Update Payload Update a mobile platform application.
- •ID!required
The ID of the Mobile Platform Application to be updated.
- Anchor to inputinput•Mobile
Platform Application Update Input! required The input to updat a Mobile Platform Application.
Arguments
- •ID!
- Anchor to orderCancelorder•Order
Cancel Cancel Payload Cancels an order, with options for refunding, restocking inventory, and customer notification.
CautionOrder cancellation is irreversible. An order that has been cancelled can't be restored to its original state.
Caution:Order cancellation is irreversible. An order that has been cancelled can't be restored to its original state.
Caution: Order cancellation is irreversible. An order that has been cancelled can't be restored to its original state.
Use the
mutation to programmatically cancel orders in scenarios such as:- Customer-requested cancellations due to size, color, or other preference changes
- Payment processing failures or declined transactions
- Fraud detection and prevention
- Insufficient inventory availability
- Staff errors in order processing
- Wholesale or B2B order management workflows
The
mutation provides flexible refund options including refunding to original payment methods or issuing store credit. If a payment was only authorized (temporarily held) but not yet charged, that hold will be automatically released when the order is cancelled, even if you choose not to refund other payments.The mutation supports different cancellation reasons: customer requests, payment declines, fraud, inventory issues, staff errors, or other unspecified reasons. Each cancellation can include optional staff notes for internal documentation (notes aren't visible to customers).
An order can only be cancelled if it meets the following criteria:
- The order hasn't already been cancelled.
- The order has no pending payment authorizations.
- The order has no active returns in progress.
- The order has no outstanding fulfillments that can't be cancelled.
Orders might be assigned to locations that become deactivated after the order was created. When cancelling such orders, inventory behavior depends on payment status:
- Paid orders: Cancellation will fail with an error if restocking is enabled, since inventory can't be returned to deactivated locations.
- Unpaid orders: Cancellation succeeds but inventory is not restocked anywhere, even when the restock option is enabled. The committed inventory effectively becomes unavailable rather than being returned to stock at the deactivated location.
After you cancel an order, you can still make limited updates to certain fields (like notes and tags) using the
.For partial refunds or more complex refund scenarios on active orders, such as refunding only specific line items while keeping the rest of the order fulfilled, consider using the
mutation instead of full order cancellation.Learn how to build apps that integrate with order management and fulfillment processes.
- Anchor to orderIdorder•ID!
Id required The ID of the order to be canceled.
- Anchor to refundrefund•BooleanDeprecated
- Anchor to refundMethodrefund•Order
Method Cancel Refund Method Input Indicates how to refund the amount paid by the customer. Authorized payments will be voided regardless of this setting.
- Anchor to restockrestock•Boolean!required
Whether to restock the inventory committed to the order. For unpaid orders fulfilled from locations that have been deactivated, inventory will not be restocked to the deactivated locations even if this argument is set to true.
- Anchor to reasonreason•Order
Cancel Reason! required The reason for canceling the order.
- Anchor to notifyCustomernotify•Boolean
Customer Default:false Whether to send a notification to the customer about the order cancellation.
- Anchor to staffNotestaff•String
Note Default:null A staff-facing note about the order cancellation. This is not visible to the customer. Maximum length of 255 characters.
Arguments
- Anchor to orderCaptureorder•Order
Capture Capture Payload Captures payment for an authorized transaction on an order. Use this mutation to claim the money that was previously reserved by an authorization transaction.
The
mutation can be used in the following scenarios:- To capture the full amount of an authorized transaction
- To capture a partial payment by specifying an amount less than the total order amount
- To perform multiple captures on the same order, as long as the order transaction is multi-capturable
NoteMulti-capture functionality is only available to stores on a Shopify Plus plan. For multi-currency orders, the
currencyfield is required and should match the presentment currency from the order.Note:Multi-capture functionality is only available to stores on a Shopify Plus plan. For multi-currency orders, the
currencyfield is required and should match the presentment currency from the order.Note: Multi-capture functionality is only available to stores on a <a href="https://help.shopify.com/manual/intro-to-shopify/pricing-plans/plans-features/shopify-plus-plan">Shopify Plus plan</a>. For multi-currency orders, the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/orderCapture#arguments-input.fields.currency"><code>currency</code></a> field is required and should match the presentment currency from the order.
After capturing a payment, you can:
- View the transaction details including status, amount, and processing information.
- Track the captured amount in both shop and presentment currencies.
- Monitor the transaction's settlement status.
Learn more about order transactions.
- Anchor to inputinput•Order
Capture Input! required The input for the mutation.
Arguments
- Anchor to orderCloseorder•Order
Close Close Payload Marks an open
Orderas closed. A closed order is one where merchants fulfill or cancel allobjects and complete all financial transactions.Once closed, the order indicates that no further work is required. The order's
timestamp is set when this mutation completes successfully.- Anchor to inputinput•Order
Close Input! required The input for the mutation.
Arguments
- Anchor to orderCreateorder•Order
Create Create Payload Creates an order with attributes such as customer information, line items, and shipping and billing addresses.
Use the
mutation to programmatically generate orders in scenarios where orders aren't created through the standard checkout process, such as when importing orders from an external system or creating orders for wholesale customers.The
mutation doesn't support applying multiple discounts, such as discounts on line items. Automatic discounts won't be applied unless you replicate the logic of those discounts in your custom implementation. You can apply a discount code, but only one discount code can be set for each order.NoteIf you're using the
mutation with a trial or development store, then you can create a maximum of five new orders per minute.Note:If you're using the
mutation with a trial or development store, then you can create a maximum of five new orders per minute.Note: If you're using the <code><span class="PreventFireFoxApplyingGapToWBR">order<wbr/>Create</span></code> mutation with a <a href="https://help.shopify.com/manual/intro-to-shopify/pricing-plans/free-trial">trial</a> or <a href="https://shopify.dev/docs/api/development-stores">development store</a>, then you can create a maximum of five new orders per minute.
After you create an order, you can make subsequent edits to the order using one of the following mutations:
: Used for simple updates to an order, such as changing the order's note, tags, or customer information.: Used when you need to make significant updates to an order, such as adding or removing line items, changing quantities, or modifying discounts. Themutation initiates an order editing session, allowing you to make multiple changes before finalizing them. Learn more about using themutation to edit existing orders.
Learn how to build apps that integrate with order management and fulfillment processes.
- Anchor to orderorder•Order
Create Order Input! required The attributes of the new order.
- Anchor to optionsoptions•Order
Create Options Input The strategies for updating inventory and whether to send shipping and order confirmations to customers.
Arguments
- Anchor to orderCreateMandatePaymentorder•Order
Create Mandate Payment Create Mandate Payment Payload Creates a payment for an
Orderusing a stored. A payment mandate represents the customer's authorization to charge their payment method for deferred payments, such as pre-orders or try-before-you-buy purchases.The mutation processes the payment asynchronously and returns a
Jobfor tracking the payment status. You can specify the payment amount to collect, and use theargument to either immediately capture the payment or only authorize it for later capture. Each payment request requires a uniqueto prevent duplicate charges. Subsequent calls with the same key return the original payment result rather than creating a new payment.Learn more about deferred payments and payment mandates and idempotent requests.
- •ID!required
The ID of the order to collect the balance for.
- Anchor to paymentScheduleIdpayment•ID
Schedule Id The ID of the payment schedule to collect the balance for.
- Anchor to idempotencyKeyidempotency•String!
Key required A unique key to identify the payment request.
- Anchor to mandateIdmandate•ID!
Id required The mandate ID used for payment.
- Anchor to amountamount•Money
Input The payment amount to collect.
- Anchor to autoCaptureauto•Boolean
Capture Default:true Whether the payment should be authorized or captured. If
false, then the authorization of the payment is triggered.
Arguments
- •ID!
- Anchor to orderCreateManualPaymentorder•Order
Create Manual Payment Create Manual Payment Payload Records a manual payment for an
Orderthat isn't fully paid. Use this mutation to track payments received outside the standard checkout process, such as cash, check, bank transfer, or other offline payment methods.You can specify the payment amount, method name, and when it was processed.
- •ID!required
The ID of the order to create a manual payment for.
- Anchor to amountamount•Money
Input The manual payment amount to be created.
- Anchor to paymentMethodNamepayment•String
Method Name The name of the payment method used for creating the payment. If none is provided, then the default manual payment method ('Other') will be used.
- Anchor to processedAtprocessed•Date
At Time The date and time (ISO 8601 format) when a manual payment was processed. If you're importing transactions from an app or another platform, then you can set processedAt to a date and time in the past to match when the original transaction was created.
Arguments
- •ID!
- Anchor to orderCustomerRemoveorder•Order
Customer Remove Customer Remove Payload Removes customer from an order.
- Anchor to orderIdorder•ID!
Id required The ID of the order having its customer removed.
Arguments
- Anchor to orderCustomerSetorder•Order
Customer Set Customer Set Payload Sets a customer on an order.
- Anchor to orderIdorder•ID!
Id required The ID of the order having a customer set.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer being set on the order.
Arguments
- Anchor to orderDeleteorder•Order
Delete Delete Payload Permanently deletes an
Orderfrom the store.You can only delete specific order types. Other orders you can cancel using the
mutation instead.CautionThis action is irreversible. You can't recover deleted orders.
Caution:This action is irreversible. You can't recover deleted orders.
Caution: This action is irreversible. You can't recover deleted orders.
- Anchor to orderIdorder•ID!
Id required The ID of the order to be deleted.
Arguments
- Anchor to orderEditAddCustomItemorder•Order
Edit Add Custom Item Edit Add Custom Item Payload Adds a custom line item to an existing
Order. Custom line items represent products or services not in your catalog, such as gift wrapping, installation fees, or one-off charges.Creates a
with the specified title, price, and quantity. Changes remain in the edit session until you commit them with themutation.Learn more about adding custom line items.
- •ID!required
The ID of the calculated order or the order edit session to edit. This is the edit to which the custom item is added.
- Anchor to titletitle•String!required
The name of the custom item to add.
- Anchor to locationIdlocation•ID
Id The ID of the retail location (if applicable) from which the custom item is sold. Used for tax calculations. A default location will be chosen automatically if none is provided.
- Anchor to priceprice•Money
Input! required The unit price of the custom item. This value can't be negative.
- Anchor to quantityquantity•Int!required
The quantity of the custom item. This value must be greater than zero.
- Anchor to taxabletaxable•Boolean
Whether the custom item is taxable. Defaults to
true.- Anchor to requiresShippingrequires•Boolean
Shipping Whether the custom item requires shipping. Defaults to
false.
Arguments
- •ID!
- Anchor to orderEditAddLineItemDiscountorder•Order
Edit Add Line Item Discount Edit Add Line Item Discount Payload Applies a discount to a
during an order edit session. The discount can be either a fixed amount or percentage value.To modify pricing on specific line items, use this mutation after starting an order edit with the
mutation. The changes remain staged until you commit them with themutation.Learn more about editing existing orders.
- •ID!required
The ID of the calculated order or the order edit session to edit.
- Anchor to lineItemIdline•ID!
Item Id required The ID of the calculated line item to add the discount to.
- Anchor to discountdiscount•Order
Edit Applied Discount Input! required The discount to add to the line item.
Arguments
- •ID!
- Anchor to orderEditAddShippingLineorder•Order
Edit Add Shipping Line Edit Add Shipping Line Payload Adds a custom shipping line to an
Orderduring an edit session. Specify the shipping title and price to create a new.Returns a
showing the order with edits applied but not yet saved. To save your changes, use themutation.Learn more about editing existing orders.
- •ID!required
The ID of the calculated order or the order edit session to edit. This is the edit to which the shipping line is added.
- Anchor to shippingLineshipping•Order
Line Edit Add Shipping Line Input! required The shipping line to be added.
Arguments
- •ID!
- Anchor to orderEditAddVariantorder•Order
Edit Add Variant Edit Add Variant Payload Adds a
as a line item to anOrderthat's being edited. The mutation respects the variant's contextual pricing.You can specify a
Locationto check for inventory availability and control whether duplicate variants are allowed. Thequantitymust be a positive value.Learn more about editing existing orders.
- •ID!required
The ID of the calculated order or the order edit session to edit.
- Anchor to variantIdvariant•ID!
Id required The ID of the variant to add.
- Anchor to locationIdlocation•ID
Id The ID of the location to check for inventory availability. A default location ID is chosen automatically if none is provided.
- Anchor to quantityquantity•Int!required
The quantity of the item to add to the order. Must be a positive value.
- Anchor to allowDuplicatesallow•Boolean
Duplicates Default:false Whether the mutation can create a line item for a variant that's already on the calculated order.
Arguments
- •ID!
- Anchor to orderEditBeginorder•Order
Edit Begin Edit Begin Payload Starts an order editing session that enables you to modify an existing
Order. This mutation creates anand returns ashowing how the order looks with your changes applied.Order editing follows a three-step workflow: Begin the edit with
, apply changes using mutations likeor, and then save the changes with themutation. The session tracks all staged changes until you commit or abandon them.Learn more about editing existing orders.
- •ID!required
The ID of the order to begin editing.
Arguments
- •ID!
- Anchor to orderEditCommitorder•Order
Edit Commit Edit Commit Payload Applies staged changes from an order editing session to the original order. This finalizes all modifications made during the edit session, including changes to line items, quantities, discounts, and shipping lines.
Order editing follows a three-step workflow: start with
to create an editing session, apply changes using various orderEdit mutations, and then save the changes with themutation. The mutation can optionally notify the customer of changes and add staff notes for internal tracking.You can only edit unfulfilled line items. If an edit changes the total order value, then the customer might need to pay a balance or receive a refund.
Learn more about editing existing orders.
- •ID!required
The ID of the calculated order or the order edit session that will have its changes applied to the order.
- Anchor to notifyCustomernotify•Boolean
Customer Whether to notify the customer or not.
- Anchor to staffNotestaff•String
Note Note for staff members.
Arguments
- •ID!
- Anchor to orderEditRemoveDiscountorder•Order
Edit Remove Discount Edit Remove Discount Payload Removes a discount on the current order edit. For more information on how to use the GraphQL Admin API to edit an existing order, refer to Edit existing orders.
- •ID!required
The ID of the calculated order or the order edit session to edit. This is the edit from which the discount is removed.
- Anchor to discountApplicationIddiscount•ID!
Application Id required The ID of the calculated discount application to remove.
Arguments
- •ID!
- Anchor to orderEditRemoveShippingLineorder•Order
Edit Remove Shipping Line Edit Remove Shipping Line Payload Removes a shipping line from an existing order. For more information on how to use the GraphQL Admin API to edit an existing order, refer to Edit existing orders.
- •ID!required
The ID of the calculated order or the order edit session to edit. This is the edit from which the shipping line is removed.
- Anchor to shippingLineIdshipping•ID!
Line Id required The ID of the calculated shipping line to remove.
Arguments
- •ID!
- Anchor to orderEditSetQuantityorder•Order
Edit Set Quantity Edit Set Quantity Payload Sets the quantity of a line item on an order that's being edited. Use this mutation to increase, decrease, or remove items by adjusting their quantities.
Setting the quantity to zero effectively removes the line item from the order. The item still exists as a data structure with zero quantity. When decreasing quantities, you can optionally restock the removed items to inventory by setting the
restockparameter totrue.Learn more about editing workflows for existing orders.
- •ID!required
The ID of the calculated order or the order edit session to edit. The edit changes the quantity on the line item.
- Anchor to lineItemIdline•ID!
Item Id required The ID of the calculated line item to edit.
- Anchor to quantityquantity•Int!required
The new quantity to set for the line item. This value cannot be negative.
- Anchor to restockrestock•Boolean
Whether or not to restock the line item when the updated quantity is less than the original quantity.
- Anchor to locationIdlocation•ID
Id Deprecated
Arguments
- •ID!
- Anchor to orderEditUpdateDiscountorder•Order
Edit Update Discount Edit Update Discount Payload Updates a manual line level discount on the current order edit. For more information on how to use the GraphQL Admin API to edit an existing order, refer to Edit existing orders.
- •ID!required
The ID of the calculated order or the order edit session to edit. This is the edit used to update the discount.
- Anchor to discountdiscount•Order
Edit Applied Discount Input! required The updated discount.
- Anchor to discountApplicationIddiscount•ID!
Application Id required The ID of the calculated discount application to update.
Arguments
- •ID!
- Anchor to orderEditUpdateShippingLineorder•Order
Edit Update Shipping Line Edit Update Shipping Line Payload Updates a shipping line on the current order edit. For more information on how to use the GraphQL Admin API to edit an existing order, refer to Edit existing orders.
- •ID!required
The ID of the calculated order or the order edit session to edit. This is the edit used to update the shipping line.
- Anchor to shippingLineshipping•Order
Line Edit Update Shipping Line Input! required The updated shipping line.
- Anchor to shippingLineIdshipping•ID!
Line Id required The ID of the calculated shipping line to update.
Arguments
- •ID!
- Anchor to orderInvoiceSendorder•Order
Invoice Send Invoice Send Payload Sends an email invoice for an
Order.You can customize the email recipient, sender, and subject line using the
emailargument.Note: Use store or staff account email addresses for the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/orderInvoiceSend#arguments-email.fields.from"><code>from</code></a> and <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/orderInvoiceSend#arguments-email.fields.bcc"><code>bcc</code></a> input fields.
- •ID!required
The order associated with the invoice.
- Anchor to emailemail•Email
Input The email input fields for the order invoice. The
bccandfromfields should be store or staff account emails.
Arguments
- •ID!
- Anchor to orderMarkAsPaidorder•Order
Mark As Paid Mark As Paid Payload Marks an order as paid by recording a payment transaction for the outstanding amount.
Use the
mutation to record payments received outside the standard checkout process. Themutation is particularly useful in scenarios where:- Orders were created with manual payment methods (cash on delivery, bank deposit, money order)
- Payments were received offline and need to be recorded in the system
- Previously authorized payments need to be captured manually
- Orders require manual payment reconciliation due to external payment processing
The mutation validates that the order can be marked as paid before processing. An order can be marked as paid only if it has a positive outstanding balance and its financial status isn't already
. The mutation will either create a new sale transaction for the full outstanding amount or capture an existing authorized transaction, depending on the order's current payment state.After successfully marking an order as paid, the order's financial status is updated to reflect the payment, and payment events are logged for tracking and analytics purposes.
Learn more about managing orders in apps.
- Anchor to inputinput•Order
Mark As Paid Input! required The input for the mutation.
Arguments
- Anchor to orderOpenorder•Order
Open Open Payload Opens a closed order.
- Anchor to inputinput•Order
Open Input! required The input for the mutation.
Arguments
- Anchor to orderRiskAssessmentCreateorder•Order
Risk Assessment Create Risk Assessment Create Payload Create a risk assessment for an order.
- Anchor to orderRiskAssessmentInputorder•Order
Risk Assessment Input Risk Assessment Create Input! required The input fields required to create a risk assessment.
Arguments
- Anchor to orderUpdateorder•Order
Update Update Payload Updates the attributes of an order, such as the customer's email, the shipping address for the order, tags, and metafields associated with the order.
If you need to make significant updates to an order, such as adding or removing line items, changing quantities, or modifying discounts, then use the
mutation instead. Themutation initiates an order editing session, allowing you to make multiple changes before finalizing them. Learn more about using themutation to edit existing orders.If you need to remove a customer from an order, then use the
mutation instead.Learn how to build apps that integrate with order management and fulfillment processes.
- Anchor to inputinput•Order
Input! required The attributes of the updated order.
Arguments
- Anchor to pageCreatepage•Page
Create Create Payload Creates a
Pagefor the online store.Pages contain custom content like "About Us" or "Contact" information that merchants display outside their product catalog. The page requires a
titleand can include HTML content, publishing settings, and custom template suffixes. You can control visibility through theflag or schedule publication with a specific date.The mutation returns the complete page object upon successful creation or validation errors if the input is invalid.
- Anchor to pagepage•Page
Create Input! required The properties of the new page.
Arguments
- Anchor to pageDeletepage•Page
Delete Delete Payload Permanently deletes a page from the online store.
For example, merchants might delete seasonal landing pages after campaigns end, or remove outdated policy pages when terms change.
Use the
mutation to:- Remove outdated or unnecessary pages
- Clean up seasonal landing pages
- Delete duplicate pages
The deletion is permanent and returns the deleted page's ID for confirmation.
- •ID!required
The ID of the page to be deleted.
Arguments
- Anchor to pageUpdatepage•Page
Update Update Payload Updates an existing page's content and settings.
For example, merchants can update their "Shipping Policy" page when rates change, or refresh their "About Us" page with new team information.
Use the
mutation to:- Update page content and titles
- Modify publication status
- Change page handles for URL structure
- Adjust template settings
The mutation supports partial updates, allowing specific changes while preserving other page properties.
- •ID!required
The ID of the page to be updated.
- Anchor to pagepage•Page
Update Input! required The properties of the page to be updated.
Arguments
- Anchor to paymentCustomizationActivationpayment•Payment
Customization Activation Customization Activation Payload Activates and deactivates payment customizations.
- •[ID!]!required
The global IDs of the payment customizations.
- Anchor to enabledenabled•Boolean!required
The enabled status of the payment customizations.
Arguments
- •[ID!]!
- Anchor to paymentCustomizationCreatepayment•Payment
Customization Create Customization Create Payload Creates a payment customization.
- Anchor to paymentCustomizationpayment•Payment
Customization Customization Input! required The input data used to create the payment customization.
Arguments
- Anchor to paymentCustomizationDeletepayment•Payment
Customization Delete Customization Delete Payload Deletes a payment customization.
- •ID!required
The global ID of the payment customization.
Arguments
- •ID!
- Anchor to paymentCustomizationUpdatepayment•Payment
Customization Update Customization Update Payload Updates a payment customization.
- •ID!required
The global ID of the payment customization.
- Anchor to paymentCustomizationpayment•Payment
Customization Customization Input! required The input data used to update the payment customization.
Arguments
- •ID!
- Anchor to paymentReminderSendpayment•Payment
Reminder Send Reminder Send Payload Sends an email payment reminder for a payment schedule.
- Anchor to paymentScheduleIdpayment•ID!
Schedule Id required The payment schedule id associated with the reminder.
Arguments
- Anchor to paymentTermsCreatepayment•Payment
Terms Create Terms Create Payload Create payment terms on an order. To create payment terms on a draft order, use a draft order mutation and include the request with the
.- Anchor to referenceIdreference•ID!
Id required Specifies the reference orderId to add the payment terms for.
- Anchor to paymentTermsAttributespayment•Payment
Terms Attributes Terms Create Input! required The attributes used to create the payment terms.
Arguments
- Anchor to paymentTermsDeletepayment•Payment
Terms Delete Terms Delete Payload Delete payment terms for an order. To delete payment terms on a draft order, use a draft order mutation and include the request with the
.- Anchor to inputinput•Payment
Terms Delete Input! required The input fields used to delete the payment terms.
Arguments
- Anchor to paymentTermsUpdatepayment•Payment
Terms Update Terms Update Payload Update payment terms on an order. To update payment terms on a draft order, use a draft order mutation and include the request with the
.- Anchor to inputinput•Payment
Terms Update Input! required The input fields used to update the payment terms.
Arguments
- Anchor to priceListCreateprice•Price
List Create List Create Payload Creates a
. Price lists enable contextual pricing by defining fixed prices or percentage-based adjustments.The price list requires a unique name, currency for fixed prices, and parent adjustment settings that determine how the system calculates prices relative to base prices. To apply contextual pricing, link the price list to a
Catalog. When that catalog's context is matched, customers receive the price list's prices.Learn more about building catalogs with price lists.
- Anchor to inputinput•Price
List Create Input! required The properties of the new price list.
Arguments
- Anchor to priceListDeleteprice•Price
List Delete List Delete Payload Deletes a price list. For example, you can delete a price list so that it no longer applies for products in the associated market.
- •ID!required
The ID of the price list to be deleted.
Arguments
- •ID!
- Anchor to priceListFixedPricesAddprice•Price
List Fixed Prices Add List Fixed Prices Add Payload Creates or updates fixed prices on a
. Use this mutation to set specific prices forobjects that override the price list's default percentage-based adjustments.When you add fixed prices, the mutation replaces any existing fixed prices for those variants on the price list.
- Anchor to priceListIdprice•ID!
List Id required The ID of the price list to which the fixed prices will be added or updated.
- Anchor to pricesprices•[Price
List Price Input!]! required The list of fixed prices to add or update in the price list.
Arguments
- Anchor to priceListFixedPricesByProductUpdateprice•Price
List Fixed Prices By Product Update List Fixed Prices By Product Update Payload Sets or removes fixed prices for all variants of a
Producton a. Simplifies pricing management when all variants of a product should have the same price on a price list, rather than setting individual variant prices.When you add a fixed price for a product, all its
objects receive the same price on the price list. When you remove a product's fixed prices, all variant prices revert to the price list's adjustment rules.- Anchor to pricesToAddprices•[Price
To Add List Product Price Input!] A list of
that identifies which products to update the fixed prices for.- Anchor to pricesToDeleteByProductIdsprices•[ID!]
To Delete By Product Ids A list of product IDs that identifies which products to remove the fixed prices for.
- Anchor to priceListIdprice•ID!
List Id required The price list to update the prices for.
Arguments
- Anchor to priceListFixedPricesDeleteprice•Price
List Fixed Prices Delete List Fixed Prices Delete Payload Deletes specific fixed prices from a price list using a product variant ID. You can use the
mutation to delete a set of fixed prices from a price list. After deleting the set of fixed prices from the price list, the price of each product variant reverts to the original price that was determined by the price list adjustment.- Anchor to priceListIdprice•ID!
List Id required The ID of the price list from which the fixed prices will be removed.
- Anchor to variantIdsvariant•[ID!]!
Ids required A list of product variant IDs whose fixed prices will be removed from the price list.
Arguments
- Anchor to priceListFixedPricesUpdateprice•Price
List Fixed Prices Update List Fixed Prices Update Payload Updates fixed prices on a
. This mutation lets you add new fixed prices for specificobjects and remove existing prices in a single operation.Use this mutation to modify variant pricing on a price list by providing prices to add and variant IDs to delete.
Learn more about setting fixed prices for product variants.
- Anchor to priceListIdprice•ID!
List Id required The price list that the prices will be updated against.
- Anchor to pricesToAddprices•[Price
To Add List Price Input!]! required The fixed prices to add.
- Anchor to variantIdsToDeletevariant•[ID!]!
Ids To Delete required A list of product variant IDs to remove from the price list.
Arguments
- Anchor to priceListUpdateprice•Price
List Update List Update Payload Updates a
's configuration, including its name, currency,Catalogassociation, and pricing adjustments.Changing the currency removes all fixed prices from the price list. The affected
objects revert to prices calculated from the price list's adjustment settings.- •ID!required
The ID of the price list to update.
- Anchor to inputinput•Price
List Update Input! required The input data used to update the price list.
Arguments
- •ID!
- Anchor to privacyFeaturesDisableprivacy•Privacy
Features Disable Features Disable Payload Disable a shop's privacy features.
- Anchor to featuresToDisablefeatures•[Privacy
To Disable Features Enum!]! required The list of privacy features to disable.
Arguments
- Anchor to productBundleCreateproduct•Product
Bundle Create Bundle Create Payload Creates a product bundle that groups multiple
Productobjects together as components. The bundle appears as a single product in the store, with its price determined by the parent product and inventory calculated from the component products.The mutation runs asynchronously and returns a
object to track the creation status. Poll the operation using thequery to determine when the bundle is ready.Learn more about creating product fixed bundles.
- Anchor to inputinput•Product
Bundle Create Input! required Input for creating a product bundle or componentized product.
Arguments
- Anchor to productBundleUpdateproduct•Product
Bundle Update Bundle Update Payload Updates a product bundle or componentized product.
- Anchor to inputinput•Product
Bundle Update Input! required Input for updating a product bundle or componentized product.
Arguments
- Anchor to productCreateproduct•Product
Create Create Payload Creates a product with attributes such as title, description, vendor, and media.
The
mutation helps you create many products at once, avoiding the tedious or time-consuming process of adding them one by one in the Shopify admin. Common examples include creating products for a new collection, launching a new product line, or adding seasonal products.You can define product options and values, allowing you to create products with different variations like sizes or colors. You can also associate media files to your products, including images and videos.
The
mutation only supports creating a product with its initial product variant. To create multiple product variants for a single product and manage prices, use themutation.NoteThe
mutation has a throttle that takes effect when a store has 50,000 product variants. After this threshold is reached, no more than 1,000 new product variants can be created per day.Note:The
mutation has a throttle that takes effect when a store has 50,000 product variants. After this threshold is reached, no more than 1,000 new product variants can be created per day.Note: The <code><span class="PreventFireFoxApplyingGapToWBR">product<wbr/>Create</span></code> mutation has a <a href="https://shopify.dev/docs/api/usage/rate-limits#resource-based-rate-limits">throttle</a> that takes effect when a store has 50,000 product variants. After this threshold is reached, no more than 1,000 new product variants can be created per day.
After you create a product, you can make subsequent edits to the product using one of the following mutations:
: Used to publish the product and make it available to customers. Themutation creates products in an unpublished state by default, so you must perform a separate operation to publish the product.: Used to update a single product, such as changing the product's title, description, vendor, or associated media.: Used to perform multiple operations on products, such as creating or modifying product options and variants.
Learn more about the product model and adding product data.
- Anchor to inputinput•Product
Input Deprecated - Anchor to productproduct•Product
Create Input The attributes of the new product.
- Anchor to mediamedia•[Create
Media Input!] The media to add to the product.
Arguments
- Anchor to productDeleteproduct•Product
Delete Delete Payload Permanently deletes a product and all its associated data, including variants, media, publications, and inventory items.
Use the
mutation to programmatically remove products from your store when they need to be permanently deleted from your catalog, such as when removing discontinued items, cleaning up test data, or synchronizing with external inventory management systems.The
mutation removes the product from all associated collections, and removes all associated data for the product, including:- All product variants and their inventory items
- Product media (images, videos) that are not referenced by other products
- Product options and option values
- Product publications across all sales channels
- Product tags and metadata associations
The
mutation also has the following effects on existing orders and transactions:- Draft orders: Existing draft orders that reference this product will retain the product information as stored data, but the product reference will be removed. Draft orders can still be completed with the stored product details.
- Completed orders and refunds: Previously completed orders that included this product aren't affected. The product information in completed orders is preserved for record-keeping, and existing refunds for this product remain valid and processable.
CautionProduct deletion is irreversible. After a product is deleted, it can't be recovered. Consider archiving or unpublishing products instead if you might need to restore them later.
Caution:Product deletion is irreversible. After a product is deleted, it can't be recovered. Consider archiving or unpublishing products instead if you might need to restore them later.
Caution: Product deletion is irreversible. After a product is deleted, it can't be recovered. Consider archiving or unpublishing products instead if you might need to restore them later.
If you need to delete a large product, such as one that has many variants that are active at several locations, you might encounter timeout errors. To avoid these timeout errors, you can set the
synchronousparameter tofalseto run the deletion asynchronously, which returns athat you can monitor for completion status.If you need more granular control over product cleanup, consider using these alternative mutations:
: Update the product status to archived or unpublished instead of deleting.: Delete specific variants while keeping the product.: Delete the choices available for a product, such as size, color, or material.
Learn more about the product model.
- Anchor to inputinput•Product
Delete Input! required Specifies the product to delete by its ID.
- Anchor to synchronoussynchronous•BooleanDefault:true
Specifies whether or not to run the mutation synchronously.
Arguments
- Anchor to productDuplicateproduct•Product
Duplicate Duplicate Payload Duplicates a product.
If you need to duplicate a large product, such as one that has many variants that are active at several locations, you might encounter timeout errors.
To avoid these timeout errors, you can instead duplicate the product asynchronously.
In API version 2024-10 and higher, include
synchronous: falseargument in this mutation to perform the duplication asynchronously.In API version 2024-07 and lower, use the asynchronous
.Metafield values are not duplicated if the unique values capability is enabled.
- Anchor to productIdproduct•ID!
Id required The ID of the product to be duplicated.
- Anchor to newTitlenew•String!
Title required The new title of the product.
- Anchor to newStatusnew•Product
Status Status The new status of the product. If no value is provided the status will be inherited from the original product.
- Anchor to includeImagesinclude•Boolean
Images Default:false Specifies whether or not to duplicate images.
- Anchor to includeTranslationsinclude•Boolean
Translations Default:false Specifies whether or not to duplicate translations.
- Anchor to synchronoussynchronous•BooleanDefault:true
Specifies whether or not to run the mutation synchronously.
Arguments
- Anchor to productFeedCreateproduct•Product
Feed Create Feed Create Payload Creates a product feed for a specific publication.
- Anchor to inputinput•Product
Feed Input The properties of the new product feed.
Arguments
- Anchor to productFeedDeleteproduct•Product
Feed Delete Feed Delete Payload Deletes a product feed for a specific publication.
- •ID!required
The ID of the product feed to be deleted.
Arguments
- •ID!
- Anchor to productFullSyncproduct•Product
Full Sync Full Sync Payload Runs the full product sync for a given shop.
- Anchor to beforeUpdatedAtbefore•Date
Updated At Time Syncs only products that haven't changed since the specified timestamp.
- •ID!required
The product feed which needs syncing.
- Anchor to updatedAtSinceupdated•Date
At Since Time Syncs only products that have changed since the specified timestamp.
Arguments
- Anchor to productJoinSellingPlanGroupsproduct•Product
Join Selling Plan Groups Join Selling Plan Groups Payload Adds multiple selling plan groups to a product.
- •ID!required
The ID of the product.
- Anchor to sellingPlanGroupIdsselling•[ID!]!
Plan Group Ids required The IDs of the selling plan groups to add.
Arguments
- •ID!
- Anchor to productLeaveSellingPlanGroupsproduct•Product
Leave Selling Plan Groups Leave Selling Plan Groups Payload Removes multiple groups from a product.
- •ID!required
The ID of the product.
- Anchor to sellingPlanGroupIdsselling•[ID!]!
Plan Group Ids required The IDs of the selling plan groups to add.
Arguments
- •ID!
- Anchor to productOptionsCreateproduct•Product
Options Create Options Create Payload Creates one or more options on a product, such as size, color, or material. Each option includes a name, position, and a list of values. The combination of a product option and value creates a product variant.
Use the
mutation for the following use cases:- Add product choices: Add a new option, like "Size" (Small, Medium, Large) or "Color" (Red, Blue, Green), to an existing product so customers can select their preferred variant.
- Enable personalization features: Add options such as "Engraving text" to let customers customize their purchase.
- Offer seasonal or limited edition products: Add a new value (for example, "Holiday red") to an existing option to support limited-time or seasonal variants.
- Integrate with apps that manage product configuration: Allow third-party apps to add options, like "Bundle size", when customers select or customize product bundles.
- Link options to metafields: Associate a product option with a custom metafield, like "Fabric code", for richer integrations with other systems or apps.
NoteThe
mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant. If you use thevariant strategy, consider the maximum allowed number of variants for each product is 2048.Note:The
mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant. If you use thevariant strategy, consider the maximum allowed number of variants for each product is 2048.Note: The <code><span class="PreventFireFoxApplyingGapToWBR">product<wbr/>Options<wbr/>Create</span></code> mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant. If you use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/productOptionsCreate#arguments-variantStrategy.enums.CREATE"><code><span class="PreventFireFoxApplyingGapToWBR">C<wbr/>R<wbr/>E<wbr/>A<wbr/>T<wbr/>E</span></code> variant strategy</a>, consider the maximum allowed number of variants for each product is 2048.
After you create product options, you can further manage a product's configuration using related mutations:
Learn more about the product model and adding product data.
- Anchor to productIdproduct•ID!
Id required The ID of the product to update.
- Anchor to optionsoptions•[Option
Create Input!]! required Options to add to the product.
- Anchor to variantStrategyvariant•Product
Strategy Option Create Variant Strategy Default:LEAVE_AS_IS The strategy defines which behavior the mutation should observe regarding variants. If not provided or set to null, the strategy
will be used.
Arguments
- Anchor to productOptionsDeleteproduct•Product
Options Delete Options Delete Payload Deletes one or more options from a product. Product options define the choices available for a product, such as size, color, or material.
CautionCaution: Removing an option can affect a product's <a href="https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariant">variants</a> and their configuration. Deleting an option might also delete associated option values and, depending on the chosen <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/productoptionsdelete#arguments-strategy">strategy</a>, might affect variants.
Use the
mutation for the following use cases:- Simplify product configuration: Remove obsolete or unnecessary options (for example, discontinue "Material" if all variants are now the same material).
- Clean up after seasonal or limited-time offerings: Delete options that are no longer relevant (for example, "Holiday edition").
- Automate catalog management: Enable apps or integrations to programmatically remove options as product data changes.
NoteThe
mutation enforces strict data integrity for product options and variants. All option positions must remain sequential, and every remaining option must be used by at least one variant.Note:The
mutation enforces strict data integrity for product options and variants. All option positions must remain sequential, and every remaining option must be used by at least one variant.Note: The <code><span class="PreventFireFoxApplyingGapToWBR">product<wbr/>Options<wbr/>Delete</span></code> mutation enforces strict data integrity for product options and variants. All option positions must remain sequential, and every remaining option must be used by at least one variant.
After you delete a product option, you can further manage a product's configuration using related mutations:
Learn more about the product model and adding product data.
- Anchor to productIdproduct•ID!
Id required ID of the product from which to delete the options.
- Anchor to optionsoptions•[ID!]!required
IDs of the options to delete from the product.
- Anchor to strategystrategy•Product
Option Delete Strategy Default:DEFAULT The strategy defines which behavior the mutation should observe,such as how to handle a situation where deleting an option would result in duplicate variants.
Arguments
- Anchor to productOptionsReorderproduct•Product
Options Reorder Options Reorder Payload Reorders the options and option values on a product, updating the order in which product variants are presented to customers.
The
mutation accepts a list of product options, each identified byidorname, and an optional list of values (also byidorname) specifying the new order. The order of options in the mutation's input determines their new positions (for example, the first option becomesoption1). The order of values within each option determines their new positions. The mutation recalculates the order of variants based on the new option and value order.Suppose a product has the following variants:
"Red / Small""Green / Medium""Blue / Small"
You reorder options and values:
options: [ { name: "Size", values: [{ name: "Small" }, { name: "Medium" }] }, { name: "Color", values: [{ name: "Green" }, { name: "Red" }, { name: "Blue" }] } ]The resulting variant order will be:
"Small / Green""Small / Red""Small / Blue""Medium / Green"
Use the
mutation for the following use cases:- Change the order of product options: For example, display "Color" before "Size" in a store.
- Reorder option values within an option: For example, show "Red" before "Blue" in a color picker.
- Control the order of product variants: The order of options and their values determines the sequence in which variants are listed and selected.
- Highlight best-selling options: Present the most popular or relevant options and values first.
- Promote merchandising strategies: Highlight seasonal colors, limited editions, or featured sizes.
NoteThe
mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant.Note:The
mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant.Note: The <code><span class="PreventFireFoxApplyingGapToWBR">product<wbr/>Options<wbr/>Reorder</span></code> mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant.
After you reorder product options, you can further manage a product's configuration using related mutations:
Learn more about the product model and managing product data.
- Anchor to productIdproduct•ID!
Id required The ID of the product to update.
- Anchor to optionsoptions•[Option
Reorder Input!]! required Options to reorder on the product.
Arguments
- Anchor to productOptionUpdateproduct•Product
Option Update Option Update Payload Updates an option on a product, such as size, color, or material. Each option includes a name, position, and a list of values. The combination of a product option and value creates a product variant.
Use the
mutation for the following use cases:- Update product choices: Modify an existing option, like "Size" (Small, Medium, Large) or "Color" (Red, Blue, Green), so customers can select their preferred variant.
- Enable personalization features: Update an option (for example, "Engraving text") to let customers customize their purchase.
- Offer seasonal or limited edition products: Update a value (for example, "Holiday red") on an existing option to support limited-time or seasonal variants.
- Integrate with apps that manage product configuration: Allow third-party apps to update options, like "Bundle size", when customers select or customize product bundles.
- Link options to metafields: Associate a product option with a custom metafield, like "Fabric code", for richer integrations with other systems or apps.
NoteThe
mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant.Note:The
mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant.Note: The <code><span class="PreventFireFoxApplyingGapToWBR">product<wbr/>Option<wbr/>Update</span></code> mutation enforces strict data integrity for product options and variants. All option positions must be sequential, and every option should be used by at least one variant.
After you update a product option, you can further manage a product's configuration using related mutations:
Learn more about the product model and adding product data.
- Anchor to optionoption•Option
Update Input! required Option to update.
- Anchor to productIdproduct•ID!
Id required The ID of the Product the Option belongs to.
- Anchor to optionValuesToAddoption•[Option
Values To Add Value Create Input!] New option values to create.
- Anchor to optionValuesToUpdateoption•[Option
Values To Update Value Update Input!] Existing option values to update.
- Anchor to optionValuesToDeleteoption•[ID!]
Values To Delete IDs of the existing option values to delete.
- Anchor to variantStrategyvariant•Product
Strategy Option Update Variant Strategy The strategy defines which behavior the mutation should observe regarding variants, such as creating variants or deleting them in response to option values to add or to delete. If not provided or set to null, the strategy
will be used.
Arguments
- Anchor to productReorderMediaproduct•Product
Reorder Media Reorder Media Payload Reorders media attached to a product, changing their sequence in product displays. The operation processes asynchronously to handle products with large media collections.
Specify the product ID and an array of moves, where each move contains a media ID and its new zero-based position.
NoteOnly include media items that need repositioning. Unchanged items maintain their relative order automatically.
Note:Only include media items that need repositioning. Unchanged items maintain their relative order automatically.
Note: Only include media items that need repositioning. Unchanged items maintain their relative order automatically.
The mutation returns a
Jobto track the reordering progress. Poll the job status to determine when the operation completes and media positions update across all sales channels.Learn more about reordering product media.
- •ID!required
The ID of the product on which to reorder medias.
- Anchor to movesmoves•[Move
Input!]! required A list of moves to perform which will be evaluated in order.
Arguments
- •ID!
- Anchor to productSetproduct•Product
Set Set Payload Performs multiple operations to create or update products in a single request.
Use the
mutation to sync information from an external data source into Shopify, manage large product catalogs, and perform batch updates. The mutation is helpful for bulk product management, including price adjustments, inventory updates, and product lifecycle management.The behavior of
depends on the type of field it's modifying:For list fields: Creates new entries, updates existing entries, and deletes existing entries that aren't included in the mutation's input. Common examples of list fields include
collections,metafields, andvariants.For all other field types: Updates only the included fields. Any omitted fields will remain unchanged.
NoteBy default, stores have a limit of 2048 product variants for each product.
Note:By default, stores have a limit of 2048 product variants for each product.
Note: By default, stores have a limit of 2048 product variants for each product.
You can run
in one of the following modes:- Synchronously: Returns the updated product in the response.
- Asynchronously: Returns a
object. Use thequery to check the status of the operation and retrieve details of the updated product and its product variants.
If you need to only manage product variants, then use one of the following mutations:
If you need to only manage product options, then use one of the following mutations:
Learn more about syncing product data from an external source.
- Anchor to inputinput•Product
Set Input! required The properties of the newly created or updated product.
- Anchor to synchronoussynchronous•BooleanDefault:true
Whether the mutation should be run synchronously or asynchronously.
If
true, the mutation will return the updatedproduct.If
false, the mutation will return a.Defaults to
true.Setting
synchronous: falsemay be desirable depending on the input complexity/size, and should be used if you are experiencing timeouts.Note: When run in the context of a bulk operation, the mutation will always run synchronously and this argument will be ignored.
- Anchor to identifieridentifier•Product
Set Identifiers Specifies the identifier that will be used to lookup the resource.
Arguments
- Anchor to productUpdateproduct•Product
Update Update Payload Updates a product with attributes such as title, description, vendor, and media.
The
mutation helps you modify many products at once, avoiding the tedious or time-consuming process of updating them one by one in the Shopify admin. Common examples including updating product details like status or tags.The
mutation doesn't support updating product variants. To update multiple product variants for a single product and manage prices, use themutation.NoteThe
mutation has a throttle that takes effect when a store has 50,000 product variants. After this threshold is reached, no more than 1,000 new product variants can be updated per day.Note:The
mutation has a throttle that takes effect when a store has 50,000 product variants. After this threshold is reached, no more than 1,000 new product variants can be updated per day.Note: The <code><span class="PreventFireFoxApplyingGapToWBR">product<wbr/>Update</span></code> mutation has a <a href="https://shopify.dev/docs/api/usage/rate-limits#resource-based-rate-limits">throttle</a> that takes effect when a store has 50,000 product variants. After this threshold is reached, no more than 1,000 new product variants can be updated per day.
After updating a product, you can make additional changes using one of the following mutations:
: Used to perform multiple operations on products, such as creating or modifying product options and variants.: Used to publish the product and make it available to customers, if the product is currently unpublished.
Learn more about the product model and adding product data.
- Anchor to inputinput•Product
Input Deprecated - Anchor to productproduct•Product
Update Input The updated properties for a product.
- Anchor to mediamedia•[Create
Media Input!] List of new media to be added to the product.
Arguments
- Anchor to productVariantAppendMediaproduct•Product
Variant Append Media Variant Append Media Payload Appends existing media from a product to specific variants of that product, creating associations between media files and particular product options. This allows different variants to showcase relevant images or videos.
For example, a t-shirt product might have color variants where each color variant displays only the images showing that specific color, helping customers see exactly what they're purchasing.
Use
to:- Associate specific images with product variants for accurate display
- Build variant-specific media management in product interfaces
- Implement automated media assignment based on variant attributes
The operation links existing product media to variants without duplicating files, maintaining efficient media storage while enabling variant-specific displays.
Learn more about product variants.
- Anchor to productIdproduct•ID!
Id required Specifies the product associated to the media.
- Anchor to variantMediavariant•[Product
Media Variant Append Media Input!]! required A list of pairs of variants and media to be attached to the variants.
Arguments
- Anchor to productVariantDetachMediaproduct•Product
Variant Detach Media Variant Detach Media Payload Detaches media from product variants.
- Anchor to productIdproduct•ID!
Id required Specifies the product to which the variants and media are associated.
- Anchor to variantMediavariant•[Product
Media Variant Detach Media Input!]! required A list of pairs of variants and media to be deleted from the variants.
Arguments
- Anchor to productVariantJoinSellingPlanGroupsproduct•Product
Variant Join Selling Plan Groups Variant Join Selling Plan Groups Payload Adds multiple selling plan groups to a product variant.
- •ID!required
The ID of the product variant.
- Anchor to sellingPlanGroupIdsselling•[ID!]!
Plan Group Ids required The IDs of the selling plan groups to add.
Arguments
- •ID!
- Anchor to productVariantLeaveSellingPlanGroupsproduct•Product
Variant Leave Selling Plan Groups Variant Leave Selling Plan Groups Payload Remove multiple groups from a product variant.
- •ID!required
The ID of the product variant.
- Anchor to sellingPlanGroupIdsselling•[ID!]!
Plan Group Ids required The IDs of the selling plan groups to leave.
Arguments
- •ID!
- Anchor to productVariantRelationshipBulkUpdateproduct•Product
Variant Relationship Bulk Update Variant Relationship Bulk Update Payload Creates new bundles, updates component quantities in existing bundles, and removes bundle components for one or multiple
objects.Each bundle variant can contain up to 30 component variants with specified quantities. After an app assigns components to a bundle, only that app can manage those components.
NoteFor most use cases, use
instead, which creates product fixed bundles.is for variant fixed bundles, where each variant has its own component configuration.Note:For most use cases, use
instead, which creates product fixed bundles.is for variant fixed bundles, where each variant has its own component configuration.Note: For most use cases, use <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/productBundleCreate"><code><span class="PreventFireFoxApplyingGapToWBR">product<wbr/>Bundle<wbr/>Create</span></code></a> instead, which creates product fixed bundles. <code><span class="PreventFireFoxApplyingGapToWBR">product<wbr/>Variant<wbr/>Relationship<wbr/>Bulk<wbr/>Update</span></code> is for <a href="https://shopify.dev/docs/apps/build/product-merchandising/bundles/add-variant-fixed-bundle">variant fixed bundles</a>, where each variant has its own component configuration.
- Anchor to inputinput•[Product
Variant Relationship Update Input!]! required The input options for the product variant being updated.
Arguments
- Anchor to productVariantsBulkCreateproduct•Product
Variants Bulk Create Variants Bulk Create Payload Creates multiple product variants for a single product in one operation. You can run this mutation directly or as part of a bulk operation for large-scale catalog updates.
Use the
mutation to efficiently add new product variants—such as different sizes, colors, or materials—to an existing product. The mutation is helpful if you need to add product variants in bulk, such as importing from an external system.The mutation supports:
- Creating variants with custom option values
- Associating media (for example, images, videos, and 3D models) with the product or its variants
- Handling complex product configurations
NoteBy default, stores have a limit of 2048 product variants for each product.
Note:By default, stores have a limit of 2048 product variants for each product.
Note: By default, stores have a limit of 2048 product variants for each product.
After creating variants, you can make additional changes using one of the following mutations:
: Updates multiple product variants for a single product in one operation.: Used to perform multiple operations on products, such as creating or modifying product options and variants.
You can also specifically manage product options through related mutations:
Learn more about the product model and adding product data.
- Anchor to variantsvariants•[Product
Variants Bulk Input!]! required An array of product variants to be created.
- Anchor to productIdproduct•ID!
Id required The ID of the product on which to create the variants.
- Anchor to mediamedia•[Create
Media Input!] List of new media to be added to the product.
- Anchor to strategystrategy•Product
Variants Bulk Create Strategy Default:DEFAULT The strategy defines which behavior the mutation should observe, such as whether to keep or delete the standalone variant (when product has only a single or default variant) when creating new variants in bulk.
Arguments
- Anchor to productVariantsBulkDeleteproduct•Product
Variants Bulk Delete Variants Bulk Delete Payload Deletes multiple variants in a single
Product. Specify the product ID and an array of variant IDs to remove variants in bulk. You can call this mutation directly or through themutation. Returns the updated product and anyobjects.- Anchor to variantsIdsvariants•[ID!]!
Ids required An array of product variants IDs to delete.
- Anchor to productIdproduct•ID!
Id required The ID of the product with the variants to update.
Arguments
- Anchor to productVariantsBulkReorderproduct•Product
Variants Bulk Reorder Variants Bulk Reorder Payload Reorders multiple variants in a single product. This mutation can be called directly or via the bulkOperation.
- Anchor to productIdproduct•ID!
Id required The product ID of the variants to be reordered.
- Anchor to positionspositions•[Product
Variant Position Input!]! required An array of variant positions.
Arguments
- Anchor to productVariantsBulkUpdateproduct•Product
Variants Bulk Update Variants Bulk Update Payload Updates multiple product variants for a single product in one operation. You can run this mutation directly or as part of a bulk operation for large-scale catalog updates.
Use the
mutation to efficiently modify product variants—such as different sizes, colors, or materials—associated with an existing product. The mutation is helpful if you need to update a product's variants in bulk, such as importing from an external system.The mutation supports:
- Updating variants with custom option values
- Associating media (for example, images, videos, and 3D models) with the product or its variants
- Handling complex product configurations
NoteBy default, stores have a limit of 2048 product variants for each product.
Note:By default, stores have a limit of 2048 product variants for each product.
Note: By default, stores have a limit of 2048 product variants for each product.
After creating variants, you can make additional changes using the
mutation, which is used to perform multiple operations on products, such as creating or modifying product options and variants.You can also specifically manage product options through related mutations:
Learn more about the product model and adding product data.
- Anchor to variantsvariants•[Product
Variants Bulk Input!]! required An array of product variants to update.
- Anchor to productIdproduct•ID!
Id required The ID of the product associated with the variants to update.
- Anchor to mediamedia•[Create
Media Input!] List of new media to be added to the product.
- Anchor to allowPartialUpdatesallow•Boolean
Partial Updates Default:false When partial updates are allowed, valid variant changes may be persisted even if some of the variants updated have invalid data and cannot be persisted. When partial updates are not allowed, any error will prevent all variants from updating.
Arguments
- Anchor to publicationCreatepublication•Publication
Create Create Payload Creates a
Publicationthat controls whichProductandCollectioncustomers can access through aCatalog.When to create a publication
Publications are optional for catalogs. Only create a publication if you need to control which products are visible in a specific catalog context. When a publication isn't associated with a catalog, product availability is determined by the sales channel.
Create a publication if you need to:
- Restrict product visibility to a subset of your inventory for a specific market or company location
- Publish different product selections to different contexts
Do NOT create a publication if:
- You want product availability determined by the sales channel
- You only need custom pricing (use a price list on the catalog instead)
Configuration options
You can create an empty publication and add products later, or prepopulate it with all existing products. The
field determines whether the publication automatically adds newly created products.- Anchor to inputinput•Publication
Create Input! required The input fields to use when creating the publication.
Arguments
- Anchor to publicationDeletepublication•Publication
Delete Delete Payload Deletes a publication.
- •ID!required
The ID of the publication to delete.
Arguments
- •ID!
- Anchor to publicationUpdatepublication•Publication
Update Update Payload Updates a
Publication.You can add or remove products from the publication, with a maximum of 50 items per operation. The
field determines whether new products automatically display in this publication.- •ID!required
The ID of the publication to update.
- Anchor to inputinput•Publication
Update Input! required The input fields to use when updating the publication.
Arguments
- •ID!
- Anchor to publishablePublishpublishable•Publishable
Publish Publish Payload Publishes a resource, such as a
ProductorCollection, to one or more publications.For products to be visible in a channel, they must have an active
. Products sold exclusively on subscription () can only be published to online stores.You can schedule future publication by providing a publish date. Only online store channels support scheduled publishing.
- •ID!required
The resource to create or update publications for.
- Anchor to inputinput•[Publication
Input!]! required Specifies the input fields required to publish a resource.
Arguments
- •ID!
- Anchor to publishableUnpublishpublishable•Publishable
Unpublish Unpublish Payload Unpublishes a resource, such as a
ProductorCollection, from one or more publications. The resource remains in your store but becomes unavailable to customers.For products to be visible in a channel, they must have an active
.- •ID!required
The resource to delete or update publications for.
- Anchor to inputinput•[Publication
Input!]! required Specifies the input fields required to unpublish a resource.
Arguments
- •ID!
- Anchor to pubSubServerPixelUpdatepub•Pub
Sub Server Pixel Update Sub Server Pixel Update Payload Updates the server pixel to connect to a Google PubSub endpoint. Running this mutation deletes any previous subscriptions for the server pixel.
- Anchor to pubSubProjectpub•String!
Sub Project required The Google PubSub project ID.
- Anchor to pubSubTopicpub•String!
Sub Topic required The Google PubSub topic ID.
Arguments
- Anchor to quantityPricingByVariantUpdatequantity•Quantity
Pricing By Variant Update Pricing By Variant Update Payload Updates quantity pricing on a
for specificobjects. You can set fixed prices (see), quantity rules, and quantity price breaks in a single operation.objects define minimum, maximum, and increment constraints for ordering.objects offer tiered pricing based on purchase volume.The mutation executes delete operations before create operations and doesn't allow partial updates.
NoteIf any requested change fails, then the mutation doesn't apply any of the changes.
Note:If any requested change fails, then the mutation doesn't apply any of the changes.
Note: If any requested change fails, then the mutation doesn't apply any of the changes.
- Anchor to priceListIdprice•ID!
List Id required The ID of the price list for which quantity pricing will be updated.
- Anchor to inputinput•Quantity
Pricing By Variant Update Input! required The input data used to update the quantity pricing in the price list.
Arguments
- Anchor to quantityRulesAddquantity•Quantity
Rules Add Rules Add Payload Creates or updates existing quantity rules on a price list. You can use the
mutation to set order level minimums, maximumums and increments for specific product variants.- Anchor to priceListIdprice•ID!
List Id required The ID of the price list to which the quantity rules will be added or updated.
- Anchor to quantityRulesquantity•[Quantity
Rules Rule Input!]! required The list of quantity rules to add or update in the price list.
Arguments
- Anchor to quantityRulesDeletequantity•Quantity
Rules Delete Rules Delete Payload Deletes specific quantity rules from a price list using a product variant ID. You can use the
mutation to delete a set of quantity rules from a price list.- Anchor to priceListIdprice•ID!
List Id required The ID of the price list from which the quantity rules will be deleted.
- Anchor to variantIdsvariant•[ID!]!
Ids required A list of product variant IDs whose quantity rules will be removed from the price list.
Arguments
- Anchor to refundCreaterefund•Refund
Create Create Payload Creates a refund for an order, allowing you to process returns and issue payments back to customers.
Use the
mutation to programmatically process refunds in scenarios where you need to return money to customers, such as when handling returns, processing chargebacks, or correcting order errors.The
mutation supports various refund scenarios:- Refunding line items with optional restocking
- Refunding shipping costs
- Refunding duties and import taxes
- Refunding additional fees
- Processing refunds through different payment methods
- Issuing store credit refunds (when enabled)
You can create both full and partial refunds, and optionally allow over-refunding in specific cases.
After creating a refund, you can track its status and details through the order's
refundsfield. The refund is associated with the order and can be used for reporting and reconciliation purposes.Learn more about managing returns and refunding duties.
NoteNote: The refunding behavior of the <code><span class="PreventFireFoxApplyingGapToWBR">refund<wbr/>Create</span></code> mutation is similar to the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/returnRefund"><code><span class="PreventFireFoxApplyingGapToWBR">refund<wbr/>Return</span></code></a> mutation. The key difference is that the <code><span class="PreventFireFoxApplyingGapToWBR">refund<wbr/>Create</span></code> mutation lets you to specify restocking behavior for line items, whereas the <code><span class="PreventFireFoxApplyingGapToWBR">return<wbr/>Refund</span></code> mutation focuses solely on handling the financial refund without any restocking input.
CautionAs of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution:As of 2026-01, this mutation supports an optional idempotency key using the
@idempotentdirective. As of 2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Caution: As of 2026-01, this mutation supports an optional idempotency key using the <code>@idempotent</code> directive. As of 2026-04, the idempotency key is required and must be provided using the <code>@idempotent</code> directive. For more information, see the <a href="https://shopify.dev/docs/api/usage/idempotent-requests">idempotency documentation</a>.
- Anchor to inputinput•Refund
Input! required The input fields that are used in the mutation for creating a refund.
Arguments
- Anchor to removeFromReturnremove•Remove
From Return From Return Payload Removes return and/or exchange lines from a return.
- Anchor to returnIdreturn•ID!
Id required The ID of the return for line item removal.
- Anchor to returnLineItemsreturn•[Return
Line Items Line Item Remove From Return Input!] The return line items to remove from the return.
- Anchor to exchangeLineItemsexchange•[Exchange
Line Items Line Item Remove From Return Input!] The exchange line items to remove from the return.
Arguments
- Anchor to returnApproveRequestreturn•Return
Approve Request Approve Request Payload Approves a customer's return request. If this mutation is successful, then the
Return.statusfield of the approved return is set to.- Anchor to inputinput•Return
Approve Request Input! required The input fields to approve a return.
Arguments
- Anchor to returnCancelreturn•Return
Cancel Cancel Payload Cancels a return and restores the items back to being fulfilled. Canceling a return is only available before any work has been done on the return (such as an inspection or refund).
- •ID!required
The ID of the return to cancel.
- Anchor to notifyCustomernotify•Boolean
Customer DeprecatedDefault:false
Arguments
- •ID!
- Anchor to returnClosereturn•Return
Close Close Payload Indicates a return is complete, either when a refund has been made and items restocked, or simply when it has been marked as returned in the system.
- •ID!required
The ID of the return to close.
Arguments
- •ID!
- Anchor to returnCreatereturn•Return
Create Create Payload Creates a return from an existing order that has at least one fulfilled line item that hasn't yet been refunded. If you create a return on an archived order, then the order is automatically unarchived.
Use the
mutation when your workflow involves approving or declining requested returns outside of the Shopify platform.The
mutation performs the following actions:- Creates a return in the
state, and assumes that the return request from the customer has already been approved - Creates a reverse fulfillment order, and enables you to create a reverse delivery for the reverse fulfillment order
- Creates a sales agreement with a
reason, which links to all sales created for the return or exchange - Generates sales records that reverse the sales records for the items being returned
- Generates sales records for any exchange line items
After you've created a return, use the
returnquery to retrieve the return by its ID. Learn more about providing a return management workflow for merchants.- Anchor to returnInputreturn•Return
Input Input! required Specifies the input fields for a return.
Arguments
- Creates a return in the
- Anchor to returnDeclineRequestreturn•Return
Decline Request Decline Request Payload Declines a return on an order. When a return is declined, each
can be associated to a new return. Use theormutation to initiate a new return.- Anchor to inputinput•Return
Decline Request Input! required The input fields for declining a customer's return request.
Arguments
- Anchor to returnProcessreturn•Return
Process Process Payload Processes a return by confirming which items customers return and exchange, handling their disposition, and optionally issuing refunds. This mutation confirms the quantities for
andobjects previously created on theReturn.For returned items, you specify how to handle them through dispositions such as restocking or disposal. The mutation creates
objects for exchange items and records all transactions in the merchant's financial reports. You can optionally issue refunds through financial transfers, apply refund duties, and refund shipping costs.Learn more about processing returns.
- Anchor to inputinput•Return
Process Input! required Specifies the input fields for processing a return.
Arguments
- Anchor to returnReopenreturn•Return
Reopen Reopen Payload Reopens a closed return.
- •ID!required
The ID of the return to reopen.
Arguments
- •ID!
- Anchor to returnRequestreturn•Return
Request Request Payload Creates a return request that requires merchant approval before processing. The return has its status set to
and the merchant must approve or decline it.Use this mutation when customers initiate returns that need review. After creating a requested return, use
to approve it orto decline it.For returns that should be immediately open for processing, use the
mutation instead.Learn more about building return management workflows.
- Anchor to inputinput•Return
Request Input! required The input fields for requesting a return.
Arguments
- Anchor to reverseDeliveryCreateWithShippingreverse•Reverse
Delivery Create With Shipping Delivery Create With Shipping Payload Creates a new reverse delivery with associated external shipping information.
- Anchor to reverseFulfillmentOrderIdreverse•ID!
Fulfillment Order Id required The ID of the reverse fulfillment order that's associated to the reverse delivery.
- Anchor to reverseDeliveryLineItemsreverse•[Reverse
Delivery Line Items Delivery Line Item Input!]! required The reverse delivery line items to be created. If an empty array is provided, then this mutation will create a reverse delivery line item for each reverse fulfillment order line item, with its quantity equal to the reverse fulfillment order line item total quantity.
- Anchor to trackingInputtracking•Reverse
Input Delivery Tracking Input Default:null The tracking information for the reverse delivery.
- Anchor to labelInputlabel•Reverse
Input Delivery Label Input Default:null The return label file information for the reverse delivery.
- Anchor to notifyCustomernotify•Boolean
Customer Default:true When
truethe customer is notified with delivery instructions if theis present.
Arguments
- Anchor to reverseDeliveryShippingUpdatereverse•Reverse
Delivery Shipping Update Delivery Shipping Update Payload Updates a reverse delivery with associated external shipping information.
- Anchor to reverseDeliveryIdreverse•ID!
Delivery Id required The ID of the reverse delivery to update.
- Anchor to trackingInputtracking•Reverse
Input Delivery Tracking Input Default:null The tracking information for the reverse delivery.
- Anchor to labelInputlabel•Reverse
Input Delivery Label Input Default:null The return label file information for the reverse delivery.
- Anchor to notifyCustomernotify•Boolean
Customer Default:true If
trueand an email address exists on the, then the customer is notified with the updated delivery instructions.
Arguments
- Anchor to reverseFulfillmentOrderDisposereverse•Reverse
Fulfillment Order Dispose Fulfillment Order Dispose Payload Disposes reverse fulfillment order line items.
- Anchor to dispositionInputsdisposition•[Reverse
Inputs Fulfillment Order Dispose Input!]! required The input parameters required to dispose reverse fulfillment order line items.
Arguments
- Anchor to savedSearchCreatesaved•Saved
Search Create Search Create Payload Creates a saved search.
- Anchor to inputinput•Saved
Search Create Input! required Specifies the input fields for a saved search.
Arguments
- Anchor to savedSearchDeletesaved•Saved
Search Delete Search Delete Payload Delete a saved search.
- Anchor to inputinput•Saved
Search Delete Input! required The input fields to delete a saved search.
Arguments
- Anchor to savedSearchUpdatesaved•Saved
Search Update Search Update Payload Updates a saved search.
- Anchor to inputinput•Saved
Search Update Input! required The input fields to update a saved search.
Arguments
- Anchor to scriptTagCreatescript•Script
Tag Create Tag Create Payload - Theme app extensions
If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. Learn more.
Theme app extensions:If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. Learn more.
Script tag deprecationScript tags will be sunset for the Order status page on August 28, 2025. Upgrade to Checkout Extensibility before this date. Shopify Scripts will continue to work alongside Checkout Extensibility until August 28, 2025.
Script tag deprecation:Script tags will be sunset for the Order status page on August 28, 2025. Upgrade to Checkout Extensibility before this date. Shopify Scripts will continue to work alongside Checkout Extensibility until August 28, 2025.
Creates a new script tag.
- Anchor to inputinput•Script
Tag Input! required The input fields for a script tag.
Arguments
- Anchor to scriptTagDeletescript•Script
Tag Delete Tag Delete Payload - Theme app extensions
If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. Learn more.
Theme app extensions:If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. Learn more.
Script tag deprecationScript tags will be sunset for the Order status page on August 28, 2025. Upgrade to Checkout Extensibility before this date. Shopify Scripts will continue to work alongside Checkout Extensibility until August 28, 2025.
Script tag deprecation:Script tags will be sunset for the Order status page on August 28, 2025. Upgrade to Checkout Extensibility before this date. Shopify Scripts will continue to work alongside Checkout Extensibility until August 28, 2025.
Deletes a script tag.
- •ID!required
The ID of the script tag to delete.
Arguments
- •ID!
- Anchor to scriptTagUpdatescript•Script
Tag Update Tag Update Payload - Theme app extensions
If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. Learn more.
Theme app extensions:If your app integrates with a Shopify theme and you plan to submit it to the Shopify App Store, you must use theme app extensions instead of Script tags. Script tags can only be used with vintage themes. Learn more.
Script tag deprecationScript tags will be sunset for the Order status page on August 28, 2025. Upgrade to Checkout Extensibility before this date. Shopify Scripts will continue to work alongside Checkout Extensibility until August 28, 2025.
Script tag deprecation:Script tags will be sunset for the Order status page on August 28, 2025. Upgrade to Checkout Extensibility before this date. Shopify Scripts will continue to work alongside Checkout Extensibility until August 28, 2025.
Updates a script tag.
- •ID!required
The ID of the script tag to update.
- Anchor to inputinput•Script
Tag Input! required Specifies the input fields for a script tag.
Arguments
- •ID!
- Anchor to segmentCreatesegment•Segment
Create Create Payload Creates a segment.
- Anchor to namename•String!required
The name of the segment to be created. Segment names must be unique.
- Anchor to queryquery•String!required
A precise definition of the segment. The definition is composed of a combination of conditions on facts about customers such as
with this syntax.
Arguments
- Anchor to segmentDeletesegment•Segment
Delete Delete Payload Deletes a segment.
- •ID!required
Specifies the segment to delete.
Arguments
- •ID!
- Anchor to segmentUpdatesegment•Segment
Update Update Payload Updates a segment.
- •ID!required
Specifies the segment to be updated.
- Anchor to namename•String
The new name for the segment.
- Anchor to queryquery•String
A precise definition of the segment. The definition is composed of a combination of conditions on facts about customers such as
with this syntax.
Arguments
- •ID!
- Anchor to sellingPlanGroupAddProductsselling•Selling
Plan Group Add Products Plan Group Add Products Payload Adds multiple products to a selling plan group.
- •ID!required
The ID of the selling plan group.
- Anchor to productIdsproduct•[ID!]!
Ids required The IDs of the products to add.
Arguments
- •ID!
- Anchor to sellingPlanGroupAddProductVariantsselling•Selling
Plan Group Add Product Variants Plan Group Add Product Variants Payload Adds multiple product variants to a selling plan group.
- •ID!required
The ID of the selling plan group.
- Anchor to productVariantIdsproduct•[ID!]!
Variant Ids required The IDs of the product variants to add.
Arguments
- •ID!
- Anchor to sellingPlanGroupCreateselling•Selling
Plan Group Create Plan Group Create Payload Creates a selling plan group that defines how products can be sold and purchased. A selling plan group represents a selling method such as "Subscribe and save", "Pre-order", or "Try before you buy" and contains one or more selling plans with specific billing, delivery, and pricing policies.
Use the
resourcesargument to associate products or product variants with the group during creation. You can also add products later usingor.Learn more about building selling plan groups or explore examples of creating TBYB and other selling plan groups.
- Anchor to inputinput•Selling
Plan Group Input! required The properties of the new Selling Plan Group.
- Anchor to resourcesresources•Selling
Plan Group Resource Input The resources this Selling Plan Group should be applied to.
Arguments
- Anchor to sellingPlanGroupDeleteselling•Selling
Plan Group Delete Plan Group Delete Payload Delete a Selling Plan Group. This does not affect subscription contracts.
- •ID!required
The id of the selling plan group to delete.
Arguments
- •ID!
- Anchor to sellingPlanGroupRemoveProductsselling•Selling
Plan Group Remove Products Plan Group Remove Products Payload Removes multiple products from a selling plan group.
- •ID!required
The ID of the selling plan group.
- Anchor to productIdsproduct•[ID!]!
Ids required The IDs of the products to remove.
Arguments
- •ID!
- Anchor to sellingPlanGroupRemoveProductVariantsselling•Selling
Plan Group Remove Product Variants Plan Group Remove Product Variants Payload Removes multiple product variants from a selling plan group.
- •ID!required
The ID of the selling plan group.
- Anchor to productVariantIdsproduct•[ID!]!
Variant Ids required The IDs of the product variants to remove.
Arguments
- •ID!
- Anchor to sellingPlanGroupUpdateselling•Selling
Plan Group Update Plan Group Update Payload Update a Selling Plan Group.
- •ID!required
The Selling Plan Group to update.
- Anchor to inputinput•Selling
Plan Group Input! required The properties of the Selling Plan Group to update.
Arguments
- •ID!
- Anchor to serverPixelCreateserver•Server
Pixel Create Pixel Create Payload Creates a new unconfigured server pixel. A single server pixel can exist for an app and shop combination. If you call this mutation when a server pixel already exists, then an error will return.
- Anchor to serverPixelDeleteserver•Server
Pixel Delete Pixel Delete Payload Deletes the Server Pixel associated with the current app & shop.
- Anchor to shippingPackageDeleteshipping•Shipping
Package Delete Package Delete Payload Deletes a shipping package.
- •ID!required
The ID of the shipping package to remove.
Arguments
- •ID!
- Anchor to shippingPackageMakeDefaultshipping•Shipping
Package Make Default Package Make Default Payload Set a shipping package as the default. The default shipping package is the one used to calculate shipping costs on checkout.
- •ID!required
The ID of the shipping package to set as the default.
Arguments
- •ID!
- Anchor to shippingPackageUpdateshipping•Shipping
Package Update Package Update Payload Updates a shipping package.
- •ID!required
The ID of the shipping package to update.
- Anchor to shippingPackageshipping•Custom
Package Shipping Package Input! required Specifies the input fields for a shipping package.
Arguments
- •ID!
- Anchor to shopifyPaymentsPayoutAlternateCurrencyCreateshopify•Shopify
Payments Payout Alternate Currency Create Payments Payout Alternate Currency Create Payload Creates an alternate currency payout for a Shopify Payments account.
- Anchor to accountIdaccount•ID
Id The ID of the Shopify Payments account on which the mutation is being performed.
- Anchor to currencycurrency•Currency
Code! required The currency of the balance to payout.
Arguments
- Anchor to shopLocaleDisableshop•Shop
Locale Disable Locale Disable Payload Deletes a locale for a shop. This also deletes all translations of this locale.
- Anchor to localelocale•String!required
ISO code of the locale to delete.
Arguments
- Anchor to shopLocaleEnableshop•Shop
Locale Enable Locale Enable Payload Adds a locale for a shop. The newly added locale is in the unpublished state.
- Anchor to localelocale•String!required
ISO code of the locale to enable.
- Anchor to marketWebPresenceIdsmarket•[ID!]
Web Presence Ids The list of markets web presences to add the locale to.
Arguments
- Anchor to shopLocaleUpdateshop•Shop
Locale Update Locale Update Payload Updates a locale for a shop.
- Anchor to localelocale•String!required
ISO code of the locale to update.
- Anchor to shopLocaleshop•Shop
Locale Locale Input! required Specifies the input fields for a shop locale.
Arguments
- Anchor to shopPolicyUpdateshop•Shop
Policy Update Policy Update Payload Updates a shop policy.
- Anchor to shopPolicyshop•Shop
Policy Policy Input! required The properties to use when updating the shop policy.
Arguments
- Anchor to shopResourceFeedbackCreateshop•Shop
Resource Feedback Create Resource Feedback Create Payload The
object lets your app report the status of shops and their resources. For example, if your app is a marketplace channel, then you can use resource feedback to alert merchants that they need to connect their marketplace account by signing in.Resource feedback notifications are displayed to the merchant on the home screen of their Shopify admin, and in the product details view for any products that are published to your app.
This resource should be used only in cases where you're describing steps that a merchant is required to complete. If your app offers optional or promotional set-up steps, or if it makes recommendations, then don't use resource feedback to let merchants know about them.
Sending feedback on a shop
You can send resource feedback on a shop to let the merchant know what steps they need to take to make sure that your app is set up correctly. Feedback can have one of two states:
orsuccess. You need to send afeedback request for each step that the merchant is required to complete.If there are multiple set-up steps that require merchant action, then send feedback with a state of
as merchants complete prior steps. And to remove the feedback message from the Shopify admin, send asuccessfeedback request.Important
Sending feedback replaces previously sent feedback for the shop. Send a new
mutation to push the latest state of a shop or its resources to Shopify.- Anchor to inputinput•Resource
Feedback Create Input! required The fields required to create shop feedback.
Arguments
- Anchor to stagedUploadsCreatestaged•Staged
Uploads Create Uploads Create Payload Creates staged upload targets for file uploads such as images, videos, and 3D models.
Use the
mutation instead of direct file creation mutations when:- Uploading large files: Files over a few MB benefit from staged uploads for better reliability
- Uploading media files: Videos, 3D models, and high-resolution images
- Bulk importing: CSV files, product catalogs, or other bulk data
- Using external file sources: When files are stored remotely and need to be transferred to Shopify
The
mutation is the first step in Shopify's secure two-step upload process:Step 1: Create staged upload targets (this mutation)
- Generate secure, temporary upload URLs for your files.
- Receive authentication parameters for the upload.
Step 2: Upload files and create assets
- Upload your files directly to the provided URLs using the authentication parameters.
- Use the returned
as thein subsequent mutations like.
This approach provides better performance for large files, handles network interruptions gracefully, and ensures secure file transfers to Shopify's storage infrastructure.
Note: File size is required when uploading <a href="https://shopify.dev/docs/api/admin-graphql/latest/enums/StagedUploadTargetGenerateUploadResource#enums-VIDEO"><code><span class="PreventFireFoxApplyingGapToWBR">V<wbr/>I<wbr/>D<wbr/>E<wbr/>O</span></code></a> or <a href="https://shopify.dev/docs/api/admin-graphql/latest/enums/StagedUploadTargetGenerateUploadResource#enums-MODEL_3D"><code><span class="PreventFireFoxApplyingGapToWBR">M<wbr/>O<wbr/>D<wbr/>E<wbr/>L<wbr/>_3<wbr/>D</span></code></a> resources.
After creating staged upload targets, complete the process by:
- Uploading files: Send your files to the returned
urlusing the providedparametersfor authentication - Creating file assets: Use the
as thein mutations such as:
Learn more about uploading media to Shopify.
- Anchor to inputinput•[Staged
Upload Input!]! required The information required to generate staged upload targets.
Arguments
- Anchor to standardMetafieldDefinitionEnablestandard•Standard
Metafield Definition Enable Metafield Definition Enable Payload Activates the specified standard metafield definition from its template.
Refer to the list of standard metafield definition templates.
- Anchor to ownerTypeowner•Metafield
Type Owner Type! required The resource type that the metafield definition is scoped to.
- •ID
The ID of the standard metafield definition template to enable.
- Anchor to namespacenamespace•String
The namespace of the standard metafield to enable. Used in combination with
key.- •String
The key of the standard metafield to enable. Used in combination with
namespace.- •BooleanDefault:null
Whether to pin the metafield definition.
- Anchor to visibleToStorefrontApivisible•Boolean
To Storefront Api DeprecatedDefault:null - Anchor to useAsCollectionConditionuse•Boolean
As Collection Condition DeprecatedDefault:null - Anchor to capabilitiescapabilities•Metafield
Capability Create Input The capabilities of the metafield definition.
- Anchor to accessaccess•Standard
Metafield Definition Access Input The access settings that apply to each of the metafields that belong to the metafield definition.
Arguments
- Anchor to standardMetaobjectDefinitionEnablestandard•Standard
Metaobject Definition Enable Metaobject Definition Enable Payload Enables the specified standard metaobject definition from its template.
- Anchor to typetype•String!required
The type of the metaobject definition to enable.
Arguments
- Anchor to storeCreditAccountCreditstore•Store
Credit Account Credit Credit Account Credit Payload Adds funds to a
by creating a. The mutation accepts either a store credit account ID, aCustomerID, or aID. When you provide a customer or company location ID, it automatically creates an account if one doesn't exist for the specified currency.Store credit accounts are currency-specific. A single owner can have multiple accounts, each holding a different currency. Use the most appropriate currency for the given store credit account owner.
Credits can optionally include an expiration date.
- •ID!required
The ID of the store credit account or the ID of the account owner.
- Anchor to creditInputcredit•Store
Input Credit Account Credit Input! required The input fields for a store credit account credit transaction.
Arguments
- •ID!
- Anchor to storeCreditAccountDebitstore•Store
Credit Account Debit Credit Account Debit Payload Creates a debit transaction that decreases the store credit account balance by the given amount.
- •ID!required
The ID of the store credit account or the ID of the account owner.
- Anchor to debitInputdebit•Store
Input Credit Account Debit Input! required The input fields for a store credit account debit transaction.
Arguments
- •ID!
- Anchor to storefrontAccessTokenCreatestorefront•Storefront
Access Token Create Access Token Create Payload Creates a storefront access token that delegates unauthenticated access scopes to clients using the Storefront API. The token provides public access to storefront resources without requiring customer authentication.
Each shop can have up to 100 active
objects. Headless storefronts, mobile apps, and other client applications typically use these tokens to access public storefront data.Learn more about building with the Storefront API.
- Anchor to inputinput•Storefront
Access Token Input! required Provides the input fields for creating a storefront access token.
Arguments
- Anchor to storefrontAccessTokenDeletestorefront•Storefront
Access Token Delete Access Token Delete Payload Deletes a storefront access token.
- Anchor to inputinput•Storefront
Access Token Delete Input! required Provides the input fields required to delete a storefront access token.
Arguments
- Anchor to subscriptionBillingAttemptCreatesubscription•Subscription
Billing Attempt Create Billing Attempt Create Payload Creates a billing attempt to charge for a
. The mutation processes either the payment for the current billing cycle or for a specific cycle, if selected.The mutation creates an
Orderwhen successful. Failed billing attempts include afield with error details.TipTip: Use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/subscriptionBillingAttemptCreate#arguments-subscriptionBillingAttemptInput.fields.idempotencyKey"><code><span class="PreventFireFoxApplyingGapToWBR">idempotency<wbr/>Key</span></code></a> to ensure the billing attempt executes only once, preventing duplicate charges if the request is retried.
You can target a specific billing cycle using the
to bill past or future cycles. Theparameter adjusts fulfillment scheduling for attempts completed after the expected billing date.Learn more about creating billing attempts.
- Anchor to subscriptionContractIdsubscription•ID!
Contract Id required The ID of the subscription contract.
- Anchor to subscriptionBillingAttemptInputsubscription•Subscription
Billing Attempt Input Billing Attempt Input! required The information to apply as a billing attempt.
Arguments
- Anchor to subscriptionBillingCycleBulkChargesubscription•Subscription
Billing Cycle Bulk Charge Billing Cycle Bulk Charge Payload Asynchronously queries and charges all subscription billing cycles whose billingAttemptExpectedDate values fall within a specified date range and meet additional filtering criteria. The results of this action can be retrieved using the subscriptionBillingCycleBulkResults query.
- Anchor to billingAttemptExpectedDateRangebilling•Subscription
Attempt Expected Date Range Billing Cycles Date Range Selector! required Specifies the date range within which the
values of the billing cycles should fall.- Anchor to filtersfilters•Subscription
Billing Cycle Bulk Filters Criteria to filter the billing cycles on which the action is executed.
- Anchor to inventoryPolicyinventory•Subscription
Policy Billing Attempt Inventory Policy Default:PRODUCT_VARIANT_INVENTORY_POLICY The behaviour to use when updating inventory.
Arguments
- Anchor to subscriptionBillingCycleBulkSearchsubscription•Subscription
Billing Cycle Bulk Search Billing Cycle Bulk Search Payload Asynchronously queries all subscription billing cycles whose billingAttemptExpectedDate values fall within a specified date range and meet additional filtering criteria. The results of this action can be retrieved using the subscriptionBillingCycleBulkResults query.
- Anchor to billingAttemptExpectedDateRangebilling•Subscription
Attempt Expected Date Range Billing Cycles Date Range Selector! required Specifies the date range within which the
values of the billing cycles should fall.- Anchor to filtersfilters•Subscription
Billing Cycle Bulk Filters Criteria to filter the billing cycles on which the action is executed.
Arguments
- Anchor to subscriptionBillingCycleChargesubscription•Subscription
Billing Cycle Charge Billing Cycle Charge Payload Creates a new subscription billing attempt for a specified billing cycle. This is the alternative mutation for subscriptionBillingAttemptCreate. For more information, refer to Create a subscription contract.
- Anchor to subscriptionContractIdsubscription•ID!
Contract Id required The ID of the subscription contract.
- Anchor to billingCycleSelectorbilling•Subscription
Cycle Selector Billing Cycle Selector! required Select the specific billing cycle to be billed. If the selected billing cycle's billingAttemptExpectedDate is in the past, the originTime of the billing attempt will be set to this date. However, if the billingAttemptExpectedDate is in the future, the originTime will be the current time.
- Anchor to inventoryPolicyinventory•Subscription
Policy Billing Attempt Inventory Policy Default:PRODUCT_VARIANT_INVENTORY_POLICY The behaviour to use when updating inventory.
Arguments
- Anchor to subscriptionBillingCycleContractDraftCommitsubscription•Subscription
Billing Cycle Contract Draft Commit Billing Cycle Contract Draft Commit Payload Commits the updates of a Subscription Billing Cycle Contract draft.
- Anchor to draftIddraft•ID!
Id required The gid of the Subscription Contract draft to commit.
Arguments
- Anchor to subscriptionBillingCycleContractDraftConcatenatesubscription•Subscription
Billing Cycle Contract Draft Concatenate Billing Cycle Contract Draft Concatenate Payload Concatenates a contract to a Subscription Draft.
- Anchor to draftIddraft•ID!
Id required The gid of the Subscription Contract draft to update.
- Anchor to concatenatedBillingCycleContractsconcatenated•[Subscription
Billing Cycle Contracts Billing Cycle Input!]! required An array of Subscription Contracts with their selected billing cycles to concatenate to the subscription draft.
Arguments
- Anchor to subscriptionBillingCycleContractEditsubscription•Subscription
Billing Cycle Contract Edit Billing Cycle Contract Edit Payload Edit the contents of a subscription contract for the specified billing cycle.
- Anchor to billingCycleInputbilling•Subscription
Cycle Input Billing Cycle Input! required Input object for selecting and using billing cycles.
Arguments
- Anchor to subscriptionBillingCycleEditDeletesubscription•Subscription
Billing Cycle Edit Delete Billing Cycle Edit Delete Payload Delete the schedule and contract edits of the selected subscription billing cycle.
- Anchor to billingCycleInputbilling•Subscription
Cycle Input Billing Cycle Input! required Input object used to select and use billing cycles.
Arguments
- Anchor to subscriptionBillingCycleEditsDeletesubscription•Subscription
Billing Cycle Edits Delete Billing Cycle Edits Delete Payload Delete the current and future schedule and contract edits of a list of subscription billing cycles.
- Anchor to contractIdcontract•ID!
Id required The globally-unique identifier of the subscription contract that the billing cycle belongs to.
- Anchor to targetSelectiontarget•Subscription
Selection Billing Cycles Target Selection! required Select billing cycles to be deleted.
Arguments
- Anchor to subscriptionBillingCycleScheduleEditsubscription•Subscription
Billing Cycle Schedule Edit Billing Cycle Schedule Edit Payload Modify the schedule of a specific billing cycle.
- Anchor to billingCycleInputbilling•Subscription
Cycle Input Billing Cycle Input! required Input object for selecting and using billing cycles.
- Anchor to inputinput•Subscription
Billing Cycle Schedule Edit Input! required Data used to create or modify billing cycle schedule edit.
Arguments
- Anchor to subscriptionBillingCycleSkipsubscription•Subscription
Billing Cycle Skip Billing Cycle Skip Payload Skips a Subscription Billing Cycle.
- Anchor to billingCycleInputbilling•Subscription
Cycle Input Billing Cycle Input! required Input object for selecting and using billing cycles.
Arguments
- Anchor to subscriptionBillingCycleUnskipsubscription•Subscription
Billing Cycle Unskip Billing Cycle Unskip Payload Unskips a Subscription Billing Cycle.
- Anchor to billingCycleInputbilling•Subscription
Cycle Input Billing Cycle Input! required Input object for selecting and using billing cycles.
Arguments
- Anchor to subscriptionContractActivatesubscription•Subscription
Contract Activate Contract Activate Payload Activates a Subscription Contract. Contract status must be either active, paused, or failed.
- Anchor to subscriptionContractIdsubscription•ID!
Contract Id required The ID of the Subscription Contract.
Arguments
- Anchor to subscriptionContractAtomicCreatesubscription•Subscription
Contract Atomic Create Contract Atomic Create Payload Creates a Subscription Contract.
- Anchor to inputinput•Subscription
Contract Atomic Create Input! required The properties of the new Subscription Contract.
Arguments
- Anchor to subscriptionContractCancelsubscription•Subscription
Contract Cancel Contract Cancel Payload Cancels a Subscription Contract.
- Anchor to subscriptionContractIdsubscription•ID!
Contract Id required The ID of the Subscription Contract.
Arguments
- Anchor to subscriptionContractCreatesubscription•Subscription
Contract Create Contract Create Payload Creates a subscription contract draft, which is an intention to create a new subscription. The draft lets you incrementally build and modify subscription details before committing them to create the actual
.The mutation requires
Customerinformation, billing details, and contract configuration including theand. You can specify the, thefor shipping, and subscription intervals.After you create the draft, you can either modify it with the
mutation or finalize and create the active subscription contract with.Learn more about building subscription contracts.
- Anchor to inputinput•Subscription
Contract Create Input! required The properties of the new Subscription Contract.
Arguments
- Anchor to subscriptionContractExpiresubscription•Subscription
Contract Expire Contract Expire Payload Expires a Subscription Contract.
- Anchor to subscriptionContractIdsubscription•ID!
Contract Id required The ID of the Subscription Contract.
Arguments
- Anchor to subscriptionContractFailsubscription•Subscription
Contract Fail Contract Fail Payload Fails a Subscription Contract.
- Anchor to subscriptionContractIdsubscription•ID!
Contract Id required The ID of the Subscription Contract.
Arguments
- Anchor to subscriptionContractPausesubscription•Subscription
Contract Pause Contract Pause Payload Pauses a Subscription Contract.
- Anchor to subscriptionContractIdsubscription•ID!
Contract Id required The ID of the Subscription Contract.
Arguments
- Anchor to subscriptionContractProductChangesubscription•Subscription
Contract Product Change Contract Product Change Payload Allows for the easy change of a Product in a Contract or a Product price change.
- Anchor to subscriptionContractIdsubscription•ID!
Contract Id required The ID of the subscription contract.
- Anchor to lineIdline•ID!
Id required The gid of the Subscription Line to update.
- Anchor to inputinput•Subscription
Contract Product Change Input! required The properties of the Product changes.
Arguments
- Anchor to subscriptionContractSetNextBillingDatesubscription•Subscription
Contract Set Next Billing Date Contract Set Next Billing Date Payload Sets the next billing date of a Subscription Contract. This field is managed by the apps. Alternatively you can utilize our Billing Cycles APIs, which provide auto-computed billing dates and additional functionalities.
- Anchor to contractIdcontract•ID!
Id required The gid of the Subscription Contract to set the next billing date for.
- Anchor to datedate•Date
Time! required The next billing date.
Arguments
- Anchor to subscriptionContractUpdatesubscription•Subscription
Contract Update Contract Update Payload Creates a draft of an existing
. The draft captures the current state of the contract and allows incremental modifications through draft mutations such as,, and.Changes remain in draft state and don't affect the live contract until committed. After you've made all necessary changes to the draft, commit it using
to apply the updates to the original contract.Learn more about updating subscription contracts.
- Anchor to contractIdcontract•ID!
Id required The gid of the Subscription Contract to update.
Arguments
- Anchor to subscriptionDraftCommitsubscription•Subscription
Draft Commit Draft Commit Payload Commits the updates of a Subscription Contract draft.
- Anchor to draftIddraft•ID!
Id required The gid of the Subscription Contract draft to commit.
Arguments
- Anchor to subscriptionDraftDiscountAddsubscription•Subscription
Draft Discount Add Draft Discount Add Payload Adds a subscription discount to a subscription draft.
- Anchor to draftIddraft•ID!
Id required The ID of the Subscription Contract draft to add a subscription discount to.
- Anchor to inputinput•Subscription
Manual Discount Input! required The properties of the new Subscription Discount.
Arguments
- Anchor to subscriptionDraftDiscountCodeApplysubscription•Subscription
Draft Discount Code Apply Draft Discount Code Apply Payload Applies a code discount on the subscription draft.
- Anchor to draftIddraft•ID!
Id required The gid of the subscription contract draft to apply a subscription code discount on.
- Anchor to redeemCoderedeem•String!
Code required Code discount redeem code.
Arguments
- Anchor to subscriptionDraftDiscountRemovesubscription•Subscription
Draft Discount Remove Draft Discount Remove Payload Removes a subscription discount from a subscription draft.
- Anchor to draftIddraft•ID!
Id required The gid of the subscription contract draft to remove a subscription discount from.
- Anchor to discountIddiscount•ID!
Id required The gid of the subscription draft discount to remove.
Arguments
- Anchor to subscriptionDraftDiscountUpdatesubscription•Subscription
Draft Discount Update Draft Discount Update Payload Updates a subscription discount on a subscription draft.
- Anchor to draftIddraft•ID!
Id required The ID of the Subscription Contract draft to update a subscription discount on.
- Anchor to discountIddiscount•ID!
Id required The gid of the Subscription Discount to update.
- Anchor to inputinput•Subscription
Manual Discount Input! required The properties to update on the Subscription Discount.
Arguments
- Anchor to subscriptionDraftFreeShippingDiscountAddsubscription•Subscription
Draft Free Shipping Discount Add Draft Free Shipping Discount Add Payload Adds a subscription free shipping discount to a subscription draft.
- Anchor to draftIddraft•ID!
Id required The ID of the subscription contract draft to add a subscription free shipping discount to.
- Anchor to inputinput•Subscription
Free Shipping Discount Input! required The properties of the new subscription free shipping discount.
Arguments
- Anchor to subscriptionDraftFreeShippingDiscountUpdatesubscription•Subscription
Draft Free Shipping Discount Update Draft Free Shipping Discount Update Payload Updates a subscription free shipping discount on a subscription draft.
- Anchor to draftIddraft•ID!
Id required The ID of the Subscription Contract draft to update a subscription discount on.
- Anchor to discountIddiscount•ID!
Id required The gid of the Subscription Discount to update.
- Anchor to inputinput•Subscription
Free Shipping Discount Input! required The properties to update on the Subscription Free Shipping Discount.
Arguments
- Anchor to subscriptionDraftLineAddsubscription•Subscription
Draft Line Add Draft Line Add Payload Adds a subscription line to a subscription draft.
- Anchor to draftIddraft•ID!
Id required The gid of the Subscription Contract draft to add a subscription line to.
- Anchor to inputinput•Subscription
Line Input! required The properties of the new Subscription Line.
Arguments
- Anchor to subscriptionDraftLineRemovesubscription•Subscription
Draft Line Remove Draft Line Remove Payload Removes a subscription line from a subscription draft.
- Anchor to draftIddraft•ID!
Id required The gid of the Subscription Contract draft to remove a subscription line from.
- Anchor to lineIdline•ID!
Id required The gid of the Subscription Line to remove.
Arguments
- Anchor to subscriptionDraftLineUpdatesubscription•Subscription
Draft Line Update Draft Line Update Payload Updates a subscription line on a subscription draft.
- Anchor to draftIddraft•ID!
Id required The gid of the Subscription Contract draft to update a subscription line from.
- Anchor to lineIdline•ID!
Id required The gid of the Subscription Line to update.
- Anchor to inputinput•Subscription
Line Update Input! required The properties of the new Subscription Line.
Arguments
- Anchor to subscriptionDraftUpdatesubscription•Subscription
Draft Update Draft Update Payload Updates a Subscription Draft.
- Anchor to draftIddraft•ID!
Id required The gid of the Subscription Draft to update.
- Anchor to inputinput•Subscription
Draft Input! required The properties of the new Subscription Contract.
Arguments
- •Tags
Add Payload Adds tags to a resource in the store. Supported resources include
Order,,Customer,Product, andArticle.Tags help merchants organize and filter resources. See the
tagsargument for supported input formats.Learn more about using tags to organize subscription orders.
- •ID!required
The ID of a resource to add tags to.
- •[String!]!required
A list of tags to add to the resource. Can be an array of strings or a single string composed of a comma-separated list of values. Example values:
["tag1", "tag2", "tag3"],"tag1, tag2, tag3".
Arguments
- •ID!
- •Tags
Remove Payload Removes tags from an
Order,,Customer,Product, orArticle.Tags are searchable keywords that help organize and filter these resources.
- •ID!required
The ID of the resource to remove tags from.
- •[String!]!required
A list of tags to remove from the resource in the form of an array of strings. Example value:
["tag1", "tag2", "tag3"].
Arguments
- •ID!
- Anchor to taxAppConfiguretax•Tax
App Configure App Configure Payload Allows tax app configurations for tax partners.
- Anchor to readyready•Boolean!required
Configures whether the tax app is correctly configured and ready to be used.
Arguments
- Anchor to taxSummaryCreatetax•Tax
Summary Create Summary Create Payload Creates a tax summary for a given order. If both an order ID and a start and end time are provided, the order ID will be used.
- Anchor to orderIdorder•ID
Id The ID of the order to create the tax summary for.
- Anchor to startTimestart•Date
Time Time The start time of the range of orders to create the tax summary for.
- Anchor to endTimeend•Date
Time Time The end time of the range of orders to create the tax summary for.
Arguments
- Anchor to themeCreatetheme•Theme
Create Create Payload Creates a theme from an external URL or staged upload. The theme source can either be a ZIP file hosted at a public URL or files previously uploaded using the
mutation. The theme displays in the Themes page in the Shopify admin.New themes have an
role by default. You can optionally specify arole for temporary themes used during development.- Anchor to sourcesource•URL!required
An external URL or a staged upload URL of the theme to import.
- Anchor to namename•String
The name of the theme to be created.
- Anchor to rolerole•Theme
Role Default:UNPUBLISHED The role of the theme to be created. Only UNPUBLISHED and DEVELOPMENT roles are permitted.
Arguments
- Anchor to themeDeletetheme•Theme
Delete Delete Payload Deletes a theme.
- •ID!required
The ID of the theme to be deleted.
Arguments
- •ID!
- Anchor to themeDuplicatetheme•Theme
Duplicate Duplicate Payload Duplicates a theme.
- •ID!required
ID of the theme to be duplicated.
- Anchor to namename•String
Name of the new theme.
Arguments
- •ID!
- Anchor to themeFilesCopytheme•Theme
Files Copy Files Copy Payload Copy theme files. Copying to existing theme files will overwrite them.
- Anchor to themeIdtheme•ID!
Id required The theme to update.
- Anchor to filesfiles•[Theme
Files Copy File Input!]! required The files to update.
Arguments
- Anchor to themeFilesDeletetheme•Theme
Files Delete Files Delete Payload Deletes a theme's files.
- Anchor to themeIdtheme•ID!
Id required Specifies the theme to deleted.
- Anchor to filesfiles•[String!]!required
The files to delete.
Arguments
- Anchor to themeFilesUpserttheme•Theme
Files Upsert Files Upsert Payload Creates or updates theme files in an online store theme. This mutation allows batch operations on multiple theme files, either creating new files or overwriting existing ones with the same filename.
NoteYou can process a maximum of 50 files in a single request.
Note:You can process a maximum of 50 files in a single request.
Note: You can process a maximum of 50 files in a single request.
Each file requires a filename and body content. The body must specify a
typewith the correspondingvalue. The mutation returns ajobfield for tracking asynchronous operations and anfield with details about the processed files.- Anchor to themeIdtheme•ID!
Id required The theme to update.
- Anchor to filesfiles•[Online
Store Theme Files Upsert File Input!]! required The files to update.
Arguments
- Anchor to themePublishtheme•Theme
Publish Publish Payload Publishes a theme.
- •ID!required
ID of the theme to be published.
Arguments
- •ID!
- Anchor to themeUpdatetheme•Theme
Update Update Payload Updates a theme.
- •ID!required
The ID of the theme to be updated.
- Anchor to inputinput•Online
Store Theme Input! required The attributes of the theme to be updated.
Arguments
- •ID!
- Anchor to transactionVoidtransaction•Transaction
Void Void Payload Trigger the voiding of an uncaptured authorization transaction.
- Anchor to parentTransactionIdparent•ID!
Transaction Id required An uncaptured authorization transaction.
Arguments
- Anchor to translationsRegistertranslations•Translations
Register Register Payload Creates or updates translations for a resource's translatable content.
Each translation requires a digest value from the resource's translatable content. Use the
query to get a resource's translatable content and digest values before creating translations. You can optionally scope translations to specific markets using thefield in each translation input.Learn more about managing translations.
- Anchor to resourceIdresource•ID!
Id required ID of the resource that is being translated.
- Anchor to translationstranslations•[Translation
Input!]! required Specifies the input fields for a translation.
Arguments
- Anchor to translationsRemovetranslations•Translations
Remove Remove Payload Deletes translations.
- Anchor to resourceIdresource•ID!
Id required ID of the translatable resource for which translations are being deleted.
- Anchor to translationKeystranslation•[String!]!
Keys required The list of translation keys.
- Anchor to localeslocales•[String!]!required
The list of translation locales. Only locales returned in
are valid.- Anchor to marketIdsmarket•[ID!]
Ids The list of market IDs.
Arguments
- Anchor to urlRedirectBulkDeleteAllurl•Url
Redirect Bulk Delete All Redirect Bulk Delete All Payload Asynchronously delete URL redirects in bulk.
- Anchor to urlRedirectBulkDeleteByIdsurl•Url
Redirect Bulk Delete By Ids Redirect Bulk Delete By Ids Payload Asynchronously delete URLRedirect objects in bulk by IDs. Learn more about URLRedirect objects.
- •[ID!]!required
Arguments
- •[ID!]!
- Anchor to urlRedirectBulkDeleteBySavedSearchurl•Url
Redirect Bulk Delete By Saved Search Redirect Bulk Delete By Saved Search Payload Asynchronously delete redirects in bulk.
- Anchor to savedSearchIdsaved•ID!
Search Id required The ID of the URL redirect saved search for filtering.
Arguments
- Anchor to urlRedirectBulkDeleteBySearchurl•Url
Redirect Bulk Delete By Search Redirect Bulk Delete By Search Payload Asynchronously delete redirects in bulk.
- Anchor to searchsearch•String!required
Search query for filtering redirects on (both Redirect from and Redirect to fields).
Arguments
- Anchor to urlRedirectCreateurl•Url
Redirect Create Redirect Create Payload - Anchor to urlRedirecturl•Url
Redirect Redirect Input! required The fields to use when creating the redirect.
Arguments
- Anchor to urlRedirectDeleteurl•Url
Redirect Delete Redirect Delete Payload - •ID!required
The ID of the redirect to delete.
Arguments
- •ID!
- Anchor to urlRedirectImportCreateurl•Url
Redirect Import Create Redirect Import Create Payload - •URL!required
The staged upload URL of the CSV file. You can download a sample URL redirect CSV file.
Arguments
- •URL!
- Anchor to urlRedirectImportSubmiturl•Url
Redirect Import Submit Redirect Import Submit Payload - •ID!required
Arguments
- •ID!
- Anchor to urlRedirectUpdateurl•Url
Redirect Update Redirect Update Payload Updates a URL redirect.
- •ID!required
The ID of the URL redirect to update.
- Anchor to urlRedirecturl•Url
Redirect Redirect Input! required The input fields required to update the URL redirect.
Arguments
- •ID!
- Anchor to validationCreatevalidation•Validation
Create Create Payload Creates a validation.
- Anchor to validationvalidation•Validation
Create Input! required The input fields for a new validation.
Arguments
- Anchor to validationDeletevalidation•Validation
Delete Delete Payload Deletes a validation.
- •ID!required
The ID representing the installed validation.
Arguments
- •ID!
- Anchor to validationUpdatevalidation•Validation
Update Update Payload Update a validation.
- Anchor to validationvalidation•Validation
Update Input! required The input fields to update a validation.
- •ID!required
The ID representing the validation to update.
Arguments
- Anchor to webhookSubscriptionCreatewebhook•Webhook
Subscription Create Subscription Create Payload Creates a webhook subscription that notifies your
Appwhen specific events occur in a shop. Webhooks push event data to your endpoint immediately when changes happen, eliminating the need for polling.The subscription configuration supports multiple endpoint types including HTTPS URLs, Google Pub/Sub topics, and AWS EventBridge event sources. You can filter events using Shopify API search syntax to receive only relevant webhooks, control which data fields are included in webhook payloads, and specify metafield namespaces to include.
NoteThe Webhooks API version configured in your app determines the API version for webhook events. You can't specify it per subscription.
Note:The Webhooks API version configured in your app determines the API version for webhook events. You can't specify it per subscription.
Note: The Webhooks API version <a href="https://shopify.dev/docs/apps/build/webhooks/subscribe/use-newer-api-version">configured in your app</a> determines the API version for webhook events. You can't specify it per subscription.
Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your
shopify.app.tomlmay be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.- Anchor to topictopic•Webhook
Subscription Topic! required The type of event that triggers the webhook.
- Anchor to webhookSubscriptionwebhook•Webhook
Subscription Subscription Input! required Specifies the input fields for a webhook subscription.
Arguments
- Anchor to webhookSubscriptionDeletewebhook•Webhook
Subscription Delete Subscription Delete Payload Deletes a
and stops all future webhooks to its endpoint. Returns the deleted subscription's ID for confirmation.Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your
shopify.app.tomlmay be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.- •ID!required
The ID of the webhook subscription to delete.
Arguments
- •ID!
- Anchor to webhookSubscriptionUpdatewebhook•Webhook
Subscription Update Subscription Update Payload Updates a webhook subscription's configuration. Modify the endpoint URL, event filters, included fields, or metafield namespaces without recreating the subscription.
The mutation accepts a
that specifies the new configuration. You can switch between endpoint types (HTTP, Pub/Sub, EventBridge) by providing a different URI format. Updates apply atomically without interrupting webhook delivery.Building an app? If you only use app-specific webhooks, you won't need this. App-specific webhook subscriptions specified in your
shopify.app.tomlmay be easier. They are automatically kept up to date by Shopify & require less maintenance. Please read About managing webhook subscriptions.- •ID!required
The ID of the webhook subscription to update.
- Anchor to webhookSubscriptionwebhook•Webhook
Subscription Subscription Input! required Specifies the input fields for a webhook subscription.
Arguments
- •ID!
- Anchor to webPixelCreateweb•Web
Pixel Create Pixel Create Payload Activate a web pixel extension by creating a web pixel record on the store where you installed your app.
When you run the
mutation, Shopify validates it against the settings definition inshopify.extension.toml. If thesettingsinput field doesn't match the schema that you defined, then the mutation fails. Learn how to define web pixel settings.- Anchor to webPixelweb•Web
Pixel Pixel Input! required The web pixel settings in JSON format.
Arguments
- Anchor to webPixelDeleteweb•Web
Pixel Delete Pixel Delete Payload Deletes the web pixel shop settings.
- •ID!required
The ID of the web pixel to delete.
Arguments
- •ID!
- Anchor to webPixelUpdateweb•Web
Pixel Update Pixel Update Payload Activate a web pixel extension by updating a web pixel record on the store where you installed your app.
When you run the
mutation, Shopify validates it against the settings definition inshopify.extension.toml. If thesettingsinput field doesn't match the schema that you defined, then the mutation fails. Learn how to define web pixel settings.- •ID!required
The ID of the web pixel to update.
- Anchor to webPixelweb•Web
Pixel Pixel Input! required The web pixel settings in JSON format.
Arguments
- •ID!
- Anchor to webPresenceCreateweb•Web
Presence Create Presence Create Payload Creates a web presence.
- Anchor to inputinput•Web
Presence Create Input! required The details of the web presence to be created.
Arguments
- Anchor to webPresenceDeleteweb•Web
Presence Delete Presence Delete Payload Deletes a web presence.
- •ID!required
The ID of the web presence to delete.
Arguments
- •ID!
- Anchor to webPresenceUpdateweb•Web
Presence Update Presence Update Payload Updates a web presence.
- •ID!required
The ID of the web presence to update.
- Anchor to inputinput•Web
Presence Update Input! required The web presence properties to update.
Arguments
- •ID!
Deprecated fields
- abandonmentEmailStateUpdate (AbandonmentEmailStateUpdatePayload): deprecated
- collectionPublish (CollectionPublishPayload): deprecated
- collectionUnpublish (CollectionUnpublishPayload): deprecated
- companyLocationAssignTaxExemptions (CompanyLocationAssignTaxExemptionsPayload): deprecated
- companyLocationCreateTaxRegistration (CompanyLocationCreateTaxRegistrationPayload): deprecated
- companyLocationRevokeTaxExemptions (CompanyLocationRevokeTaxExemptionsPayload): deprecated
- companyLocationRevokeTaxRegistration (CompanyLocationRevokeTaxRegistrationPayload): deprecated
- deliveryShippingOriginAssign (DeliveryShippingOriginAssignPayload): deprecated
- eventBridgeWebhookSubscriptionCreate (EventBridgeWebhookSubscriptionCreatePayload): deprecated
- eventBridgeWebhookSubscriptionUpdate (EventBridgeWebhookSubscriptionUpdatePayload): deprecated
- fulfillmentCreateV2 (FulfillmentCreateV2Payload): deprecated
- fulfillmentTrackingInfoUpdateV2 (FulfillmentTrackingInfoUpdateV2Payload): deprecated
- inventorySetOnHandQuantities (InventorySetOnHandQuantitiesPayload): deprecated
- inventorySetScheduledChanges (InventorySetScheduledChangesPayload): deprecated
- marketCurrencySettingsUpdate (MarketCurrencySettingsUpdatePayload): deprecated
- marketRegionDelete (MarketRegionDeletePayload): deprecated
- marketRegionsCreate (MarketRegionsCreatePayload): deprecated
- marketRegionsDelete (MarketRegionsDeletePayload): deprecated
- marketWebPresenceCreate (MarketWebPresenceCreatePayload): deprecated
- marketWebPresenceDelete (MarketWebPresenceDeletePayload): deprecated
- marketWebPresenceUpdate (MarketWebPresenceUpdatePayload): deprecated
- orderEditRemoveLineItemDiscount (OrderEditRemoveLineItemDiscountPayload): deprecated
- productChangeStatus (ProductChangeStatusPayload): deprecated
- productCreateMedia (ProductCreateMediaPayload): deprecated
- productDeleteMedia (ProductDeleteMediaPayload): deprecated
- productPublish (ProductPublishPayload): deprecated
- productUnpublish (ProductUnpublishPayload): deprecated
- productUpdateMedia (ProductUpdateMediaPayload): deprecated
- publishablePublishToCurrentChannel (PublishablePublishToCurrentChannelPayload): deprecated
- publishableUnpublishToCurrentChannel (PublishableUnpublishToCurrentChannelPayload): deprecated
- pubSubWebhookSubscriptionCreate (PubSubWebhookSubscriptionCreatePayload): deprecated
- pubSubWebhookSubscriptionUpdate (PubSubWebhookSubscriptionUpdatePayload): deprecated
- returnLineItemRemoveFromReturn (ReturnLineItemRemoveFromReturnPayload): deprecated
- returnRefund (ReturnRefundPayload): deprecated
- stagedUploadTargetGenerate (StagedUploadTargetGeneratePayload): deprecated
- stagedUploadTargetsGenerate (StagedUploadTargetsGeneratePayload): deprecated
- Anchor to abandonmentEmailStateUpdateabandonment•Abandonment
Email State Update Email State Update Payload Deprecated - •ID!required
The ID of the abandonment that needs to be updated.
- Anchor to emailStateemail•Abandonment
State Email State! required The new email state of the abandonment.
- Anchor to emailSentAtemail•Date
Sent At Time The date and time for when the email was sent, if that is the case.
- Anchor to emailStateChangeReasonemail•String
State Change Reason The reason why the email was or was not sent.
Arguments
- •ID!
- Anchor to collectionPublishcollection•Collection
Publish Publish Payload Deprecated - Anchor to inputinput•Collection
Publish Input! required Specify a collection to publish and the sales channels to publish it to.
Arguments
- Anchor to collectionUnpublishcollection•Collection
Unpublish Unpublish Payload Deprecated - Anchor to inputinput•Collection
Unpublish Input! required Specify a collection to unpublish and the sales channels to remove it from.
Arguments
- Anchor to companyLocationAssignTaxExemptionscompany•Company
Location Assign Tax Exemptions Location Assign Tax Exemptions Payload Deprecated - Anchor to companyLocationIdcompany•ID!
Location Id required The location to which the tax exemptions will be assigned.
- Anchor to taxExemptionstax•[Tax
Exemptions Exemption!]! required The tax exemptions that are being assigned to the location.
Arguments
- Anchor to companyLocationCreateTaxRegistrationcompany•Company
Location Create Tax Registration Location Create Tax Registration Payload Deprecated - Anchor to locationIdlocation•ID!
Id required The ID of the company location that the tax registration gets assigned to.
- Anchor to taxIdtax•String!
Id required The unique tax id for the tax registration.
Arguments
- Anchor to companyLocationRevokeTaxExemptionscompany•Company
Location Revoke Tax Exemptions Location Revoke Tax Exemptions Payload Deprecated - Anchor to companyLocationIdcompany•ID!
Location Id required The location from which the tax exemptions will be revoked.
- Anchor to taxExemptionstax•[Tax
Exemptions Exemption!]! required The tax exemptions that are being revoked from the location.
Arguments
- Anchor to companyLocationRevokeTaxRegistrationcompany•Company
Location Revoke Tax Registration Location Revoke Tax Registration Payload Deprecated - Anchor to companyLocationIdcompany•ID!
Location Id required The location whose tax registration is being revoked.
Arguments
- Anchor to deliveryShippingOriginAssigndelivery•Delivery
Shipping Origin Assign Shipping Origin Assign Payload Deprecated - Anchor to locationIdlocation•ID!
Id required The ID of the location to assign as the shipping origin.
Arguments
- Anchor to eventBridgeWebhookSubscriptionCreateevent•Event
Bridge Webhook Subscription Create Bridge Webhook Subscription Create Payload Deprecated - Anchor to topictopic•Webhook
Subscription Topic! required The type of event that triggers the webhook.
- Anchor to webhookSubscriptionwebhook•Event
Subscription Bridge Webhook Subscription Input! required Specifies the input fields for an EventBridge webhook subscription.
Arguments
- Anchor to eventBridgeWebhookSubscriptionUpdateevent•Event
Bridge Webhook Subscription Update Bridge Webhook Subscription Update Payload Deprecated - •ID!required
The ID of the webhook subscription to update.
- Anchor to webhookSubscriptionwebhook•Event
Subscription Bridge Webhook Subscription Input! required Specifies the input fields for an EventBridge webhook subscription.
Arguments
- •ID!
- Anchor to fulfillmentCreateV2fulfillment•Fulfillment
Create V2 Create V2Payload Deprecated - Anchor to fulfillmentfulfillment•Fulfillment
V2Input! required The input fields used to create a fulfillment from fulfillment orders.
- Anchor to messagemessage•String
An optional message for the fulfillment request.
Arguments
- Anchor to fulfillmentTrackingInfoUpdateV2fulfillment•Fulfillment
Tracking Info Update V2 Tracking Info Update V2Payload Deprecated - Anchor to fulfillmentIdfulfillment•ID!
Id required The ID of the fulfillment.
- Anchor to trackingInfoInputtracking•Fulfillment
Info Input Tracking Input! required The tracking input for the mutation, including tracking URL, number, and company.
- Anchor to notifyCustomernotify•Boolean
Customer Whether the customer will be notified of this update and future updates for the fulfillment. If this field is left blank, then notifications won't be sent to the customer when the fulfillment is updated.
Arguments
- Anchor to inventorySetOnHandQuantitiesinventory•Inventory
Set On Hand Quantities Set On Hand Quantities Payload Deprecated - Anchor to inputinput•Inventory
Set On Hand Quantities Input! required The information required to set inventory on hand quantities.
Arguments
- Anchor to inventorySetScheduledChangesinventory•Inventory
Set Scheduled Changes Set Scheduled Changes Payload Deprecated - Anchor to inputinput•Inventory
Set Scheduled Changes Input! required The input fields for setting up scheduled changes of inventory items.
Arguments
- Anchor to marketCurrencySettingsUpdatemarket•Market
Currency Settings Update Currency Settings Update Payload Deprecated - Anchor to marketIdmarket•ID!
Id required The ID of the market definition to target.
- Anchor to inputinput•Market
Currency Settings Update Input! required Properties to update for the market currency settings.
Arguments
- Anchor to marketRegionDeletemarket•Market
Region Delete Region Delete Payload Deprecated - •ID!required
The ID of the market region to delete.
Arguments
- •ID!
- Anchor to marketRegionsCreatemarket•Market
Regions Create Regions Create Payload Deprecated - Anchor to marketIdmarket•ID!
Id required The ID of the market to add the regions to.
- Anchor to regionsregions•[Market
Region Create Input!]! required The regions to be created.
Arguments
- Anchor to marketRegionsDeletemarket•Market
Regions Delete Regions Delete Payload Deprecated - •[ID!]!required
A list of IDs of the market regions to delete.
Arguments
- •[ID!]!
- Anchor to marketWebPresenceCreatemarket•Market
Web Presence Create Web Presence Create Payload Deprecated - Anchor to marketIdmarket•ID!
Id required The ID of the market for which to create a web presence.
- Anchor to webPresenceweb•Market
Presence Web Presence Create Input! required The details of the web presence to be created.
Arguments
- Anchor to marketWebPresenceDeletemarket•Market
Web Presence Delete Web Presence Delete Payload Deprecated - Anchor to webPresenceIdweb•ID!
Presence Id required The ID of the web presence to delete.
Arguments
- Anchor to marketWebPresenceUpdatemarket•Market
Web Presence Update Web Presence Update Payload Deprecated - Anchor to webPresenceIdweb•ID!
Presence Id required The ID of the web presence to update.
- Anchor to webPresenceweb•Market
Presence Web Presence Update Input! required The web_presence fields used to update the market's web presence.
Arguments
- Anchor to orderEditRemoveLineItemDiscountorder•Order
Edit Remove Line Item Discount Edit Remove Line Item Discount Payload Deprecated - •ID!required
The ID of the calculated order or the order edit session to edit. This is the edit from which the line item discount is removed.
- Anchor to discountApplicationIddiscount•ID!
Application Id required The ID of the calculated discount application to remove.
Arguments
- •ID!
- Anchor to productChangeStatusproduct•Product
Change Status Change Status Payload Deprecated - Anchor to productIdproduct•ID!
Id required The ID of the product.
- Anchor to statusstatus•Product
Status! required The status to be assigned to the product.
Arguments
- Anchor to productCreateMediaproduct•Product
Create Media Create Media Payload Deprecated - Anchor to productIdproduct•ID!
Id required Specifies the product associated with the media.
- Anchor to mediamedia•[Create
Media Input!]! required List of new media to be added to a product.
Arguments
- Anchor to productDeleteMediaproduct•Product
Delete Media Delete Media Payload Deprecated - Anchor to productIdproduct•ID!
Id required Specifies the product ID from which the media will be deleted.
- Anchor to mediaIdsmedia•[ID!]!
Ids required The media IDs to be deleted.
Arguments
- Anchor to productPublishproduct•Product
Publish Publish Payload Deprecated - Anchor to inputinput•Product
Publish Input! required Specifies the product to publish and the channels to publish it to.
Arguments
- Anchor to productUnpublishproduct•Product
Unpublish Unpublish Payload Deprecated - Anchor to inputinput•Product
Unpublish Input! required Specifies the product to unpublish and the channel to unpublish it from.
Arguments
- Anchor to productUpdateMediaproduct•Product
Update Media Update Media Payload Deprecated - Anchor to productIdproduct•ID!
Id required Specifies the product on which media will be updated.
- Anchor to mediamedia•[Update
Media Input!]! required A list of media updates.
Arguments
- Anchor to publishablePublishToCurrentChannelpublishable•Publishable
Publish To Current Channel Publish To Current Channel Payload Deprecated - •ID!required
The resource to create or update publications for.
Arguments
- •ID!
- Anchor to publishableUnpublishToCurrentChannelpublishable•Publishable
Unpublish To Current Channel Unpublish To Current Channel Payload Deprecated - •ID!required
The resource to delete or update publications for.
Arguments
- •ID!
- Anchor to pubSubWebhookSubscriptionCreatepub•Pub
Sub Webhook Subscription Create Sub Webhook Subscription Create Payload Deprecated - Anchor to topictopic•Webhook
Subscription Topic! required The type of event that triggers the webhook.
- Anchor to webhookSubscriptionwebhook•Pub
Subscription Sub Webhook Subscription Input! required Specifies the input fields for a Google Cloud Pub/Sub webhook subscription.
Arguments
- Anchor to pubSubWebhookSubscriptionUpdatepub•Pub
Sub Webhook Subscription Update Sub Webhook Subscription Update Payload Deprecated - •ID!required
The ID of the webhook subscription to update.
- Anchor to webhookSubscriptionwebhook•Pub
Subscription Sub Webhook Subscription Input! required Specifies the input fields for a Google Cloud Pub/Sub webhook subscription.
Arguments
- •ID!
- Anchor to returnLineItemRemoveFromReturnreturn•Return
Line Item Remove From Return Line Item Remove From Return Payload Deprecated - Anchor to returnIdreturn•ID!
Id required The ID of the return for line item removal.
- Anchor to returnLineItemsreturn•[Return
Line Items Line Item Remove From Return Input!]! required The return line items to remove from the return.
Arguments
- Anchor to returnRefundreturn•Return
Refund Refund Payload Deprecated - Anchor to returnRefundInputreturn•Return
Refund Input Refund Input! required The input fields to refund a return.
Arguments
- Anchor to stagedUploadTargetGeneratestaged•Staged
Upload Target Generate Upload Target Generate Payload Deprecated - Anchor to inputinput•Staged
Upload Target Generate Input! required The input fields for generating a staged upload.
Arguments
- Anchor to stagedUploadTargetsGeneratestaged•Staged
Upload Targets Generate Upload Targets Generate Payload Deprecated - Anchor to inputinput•[Stage
Image Input!]! required The input fields for generating staged uploads.
Arguments