Queries
checkoutAbTest(Experimental) — A checkout A/B test by id. Null if it doesn’t exist.checkoutAbTestQueue(Experimental) — The store’s queue of checkout A/B tests, next up first. Change the order withcheckoutAbTestQueueReorder.checkoutAbTestResults(Experimental) — Statistical results of one checkout A/B test. This is an expensive call that runs several warehouse queries, so fetch one test at a time rather than sweeping a list. Null if the test doesn’t exist.checkoutAbTests(Experimental) — The store’s checkout A/B tests of every status, newest first, at most 50 at a time. For older ones, pass the lastidasbefore. Post-purchase tests aren’t included.checkoutAbTestSegmentResults(Experimental) — One checkout A/B test’s results per checkout segment, as the merchant’s test page shows them. Expensive: it runs warehouse queries. Null if the test doesn’t exist. CHECKOUT_AB_TEST_SEGMENTS_UNAVAILABLE when the store lacks advanced checkout analytics, or the test hasn’t started or started before they were collected;checkoutAbTestResultsworks for every test.checkoutDiscountRule(Experimental) — Get one checkout discount rule. An id from another account, or one that does not exist, is null.checkoutDiscountRules(Experimental) — The store’s checkout discount rules: whether they are on, whether they can be turned on, the active rules in evaluation order, and the inactive rules.checkoutExperience— Get a checkout experience with the full configuration of each shipping method: prices and the cart conditions they apply to, carrier services, markups, price constraints, and fulfillment delays. An id from another account, or one that does not exist, is null. An invalid request fails with INVALID_CHECKOUT_REQUEST (400).checkoutExperiences— List the store’s checkout experiences with a summary of each one’s shipping methods. For prices, carriers, conditions, and fulfillment delays, get the experience with checkoutExperience(id:).activetells you whether an experience is reachable in the store’s live checkout tree, which decides which shoppers see which experience. Experiences belonging to another account are not included. An invalid request fails with INVALID_CHECKOUT_REQUEST (400).checkoutTree(Experimental) — A saved checkout tree by id, or the live one whenidis omitted. Null if it doesn’t exist, or the store has no live tree. To see one of its experiences or A/B test treatments at checkout, readguide/previewincheckoutTreeCatalog.checkoutTreeCatalog(Experimental) — Read checkout tree docs by path: one entry per path, in order, null for an unknown path.""is the index; start withguide/, thenworkspaceCreate(resourceType: CHECKOUT_TREE)to edit the live tree.guide/previewshows how to see a given checkout experience or A/B test treatment at checkout. At most 50 paths.checkoutTreeCheck(Experimental) — Check a checkout tree as saving and publishing would, without saving it. For an editor that changesCheckoutTree.definitionand saves it withcheckoutTreeCreate.checkoutTreeRevision(Experimental) — The store’s checkout tree revision: it changes whenever a tree is published, by anyone. Pass it asexpectedRevisiontocheckoutTreeCreateandcheckoutTreePublish."none"when no tree is live.checkoutTrees(Experimental) — The store’s saved checkout trees, newest first, at most 50 at a time. For older ones, pass the lastidasbefore.checkoutWidget(Experimental) — Get one checkout widget. An id from another account, or one that does not exist, is null.checkoutWidgets(Experimental) — The store’s checkout widgets, and whether it can add more.customShippingMethodCode(Experimental) — Get what is needed to write or edit a custom shipping method: the custom rate contract’s TypeScript type definitions, starter code, and a sample input. SendshippingMethodIdandcheckoutExperienceIdtogether to also get that method’s current source. A shipping method that is not CUSTOM is null. An id from another account, or one that does not exist, is null.postPurchaseAbTests(Experimental) — The store’s post-purchase A/B tests, newest first, at most 50 at a time. For older ones, pass the lastidasbefore.postPurchaseFlow(Experimental) — The store’s post-purchase flow. Null without a Shopify integration. POST_PURCHASE_FLOW_UNREADABLE (409) when the stored flow can’t be read.postPurchaseFlowCheck(Experimental) — Check a post-purchase flow as publishing would, without publishing it. POST_PURCHASE_FLOW_UNREADABLE (409) when the stored flow can’t be read.postPurchaseFlowRevision(Experimental) — The store’s post-purchase flow revision, a hash of the stored flow: it changes whenever the flow does, by anyone. Pass it asexpectedRevisiontopostPurchaseFlowPublishandpostPurchaseAbTestConclude."none"with no flow. POST_PURCHASE_FLOW_UNREADABLE (409) when the stored flow can’t be read.postPurchaseProviderStatus(Experimental) — Whether Redo is the store’s post-purchase app, asked of Shopify. POST_PURCHASE_PROVIDER_UNAVAILABLE (502) when Shopify doesn’t answer: try again shortly.shippingAiExperienceResults(Experimental) — One checkout experience’s AI shipping results per shipping method: checkouts by shipping price and shipping margin by order value, as lifetime totals since it launched. Expensive: it runs warehouse queries. Null if the checkout experience doesn’t exist.shippingAiResults(Experimental) — AI shipping pricing results: revenue captured and price combinations, as lifetime totals since each experience launched. WithoutcheckoutExperienceId, totals across every AI shipping experience of the store, which are zeros for a store with none. Expensive: it runs warehouse queries. Null if the checkout experience doesn’t exist.storefrontDeliveryEstimate(Experimental) — The store’s storefront delivery estimate settings. A store that never set them reads as off, with the defaults.storefrontProgressBar(Experimental) — The store’s cart progress bar. Null while it’s off.subscriptionDeliveryProfile(Experimental) — The store’s Shopify delivery profile for subscriptions and pre-orders. Null if the store has no Shopify integration.upsellPage(Experimental) — An upsell page by id. An id from another store is null, as is one that doesn’t exist. POST_PURCHASE_FLOW_UNREADABLE (409) when the stored flow can’t be read.upsellPages(Experimental) — The store’s upsell pages, newest first, at most 50 at a time. For older ones, pass the lastidasbefore. POST_PURCHASE_FLOW_UNREADABLE (409) when the stored flow can’t be read.
Mutations
checkoutAbTestConclude(Experimental) — Conclude a running checkout A/B test to one arm: the live tree is republished with the test replaced by that arm, and every open checkout uses it from its next shipping-rate request. It records the winner, which billing’s proven-lift attestations rely on, and saves the winner’s progress bar to the store. This can’t be undone. Concluding to the control records no winner. CHECKOUT_AB_TEST_NOT_RUNNING, CHECKOUT_AB_TEST_TREATMENT_INVALID and CHECKOUT_AB_TEST_ALREADY_CONCLUDED when it can’t be concluded. CHECKOUT_TREE_REVISION_STALE when a tree went live meanwhile and the test is still running. CHECKOUT_AB_TEST_CONCLUDED_NOT_LIVE when the winner is recorded but the live tree still contains the test: call again with the same treatment to take it out, which doesn’t conclude it twice. Null if the test doesn’t exist.checkoutAbTestDelete(Experimental) — Delete a checkout A/B test that hasn’t started, and take it out of the queue. Returns false if the test doesn’t exist or has started.checkoutAbTestQueueReorder(Experimental) — Put the queue of checkout A/B tests in a new order. Pass every queued test exactly once, next up first; CHECKOUT_AB_TEST_QUEUE_MISMATCH otherwise. Returns the queue.checkoutAbTestSchedule(Experimental) — Add a checkout A/B test to the queue, to start from a saved checkout tree that contains it. A saved test never joins the queue on its own. Scheduling a queued test again replaces its tree and keeps its place. CHECKOUT_AB_TEST_ALREADY_STARTED and CHECKOUT_AB_TEST_NOT_IN_TREE when it can’t be scheduled. Null if the test or tree doesn’t exist.checkoutAbTestStart(Experimental) — Start a scheduled checkout A/B test: its tree goes live, and every open checkout uses it from its next shipping-rate request. Call withoutacknowledgedRisksfirst to see therisks; nothing changes until each is acknowledged. Null if the test doesn’t exist.checkoutDiscountRuleCreate(Experimental) — Create a checkout discount rule. It is created inactive; turn it on with checkoutDiscountRuleSetActive. Amounts must be in the shop’s currency. Numeric Shopify product and collection ids are saved as GIDs, and empty condition blocks are dropped. An invalid rule fails with INVALID_CHECKOUT_DISCOUNT_RULE (400).checkoutDiscountRuleDelete(Experimental) — Permanently delete a checkout discount rule. When discount rules are on, the store’s live checkout discount is updated right away. If that update fails, the change is still saved and the request fails with CHECKOUT_DISCOUNT_RULES_NOT_SYNCED (409); send the same request again to retry. After that failure the rule is already deleted, so the repeat returns false and still updates the live checkout. An id from another account, or one that does not exist, returns false.checkoutDiscountRuleSetActive(Experimental) — Turn a checkout discount rule on or off. A rule turned on is tried after every other active rule; reorder with checkoutDiscountRulesReorder. When discount rules are on, the store’s live checkout discount is updated right away. If that update fails, the change is still saved and the request fails with CHECKOUT_DISCOUNT_RULES_NOT_SYNCED (409); send the same request again to retry. An id from another account, or one that does not exist, is null.checkoutDiscountRulesReorder(Experimental) — Set the evaluation order of the active rules. At checkout the first active rule whose conditions match wins. Returns the active rules in their new order. When discount rules are on, the store’s live checkout discount is updated right away. If that update fails, the change is still saved and the request fails with CHECKOUT_DISCOUNT_RULES_NOT_SYNCED (409); send the same request again to retry.idsmust list every active rule exactly once; otherwise the request fails with INVALID_CHECKOUT_DISCOUNT_RULE_ORDER (400).checkoutDiscountRulesSetEnabled(Experimental) — Turn the store’s checkout discount rules on or off. This changes the live checkout: on installs the active rules as the store’s shipping discount, off removes it. Rules keep their active state while off. Turning them on whileeligibility.eligibleis false fails with CHECKOUT_DISCOUNT_RULES_NOT_ELIGIBLE (409). If turning rules on or off is saved but the store’s checkout is not updated, the request fails with CHECKOUT_DISCOUNT_RULES_NOT_SYNCED (409); send the same request again to retry.checkoutDiscountRuleUpdate(Experimental) — Change a checkout discount rule. Each field you send replaces that whole field: send all ofconditionsto change one condition. When discount rules are on, the store’s live checkout discount is updated right away. If that update fails, the change is still saved and the request fails with CHECKOUT_DISCOUNT_RULES_NOT_SYNCED (409); send the same request again to retry. An id from another account, or one that does not exist, is null. An invalid rule fails with INVALID_CHECKOUT_DISCOUNT_RULE (400).checkoutExperienceUpsellPageSet(Experimental) — Attach, swap or remove a checkout experience’s upsell page. Its page wins over the post-purchase flow, and over any A/B test in it, for orders placed through that experience. Changing a live experience needsconfirmLiveChange, or fails with CHECKOUT_EXPERIENCE_LIVE (409). Null if the experience or the page doesn’t exist, or belongs to another store. CONVERSION_FEATURE_LOCKED (409) when post-purchase is locked for the store.checkoutExperienceWidgetsSet(Experimental) — Replace the widgets a checkout experience shows, and return them. This changes checkout right away for an experience in the live checkout tree, soconfirmLiveChangemust be true or it fails with CHECKOUT_WIDGET_LIVE (409). Fails with CHECKOUT_WIDGETS_UNAVAILABLE (409) whileavailability.availableis false, unless the list only removes widgets the experience already has. A shipping option widget fails with INVALID_CHECKOUT_WIDGET (400). Null when the experience or any widget is from another account or does not exist.checkoutTreeCreate(Experimental) — Save a whole checkout tree as a new tree. It doesn’t go live untilcheckoutTreePublish. New A/B tests are created but don’t start; tests that have started can’t be changed here. CHECKOUT_TREE_REVISION_STALE when a tree was published sinceexpectedRevision; CHECKOUT_TREE_DEFINITION_INVALID, withdiagnostics, while a diagnostic blocks saving.checkoutTreePublish(Experimental) — Make a saved checkout tree live: every open checkout uses it from its next shipping-rate request. Call withoutacknowledgedRisksfirst to see therisks; nothing changes until each is acknowledged. A running A/B test the tree removes needs its winner insplitConclusions, and concludes. Publishing an older tree rolls back to it. Null if the tree doesn’t exist.checkoutWidgetCreate(Experimental) — Create a checkout widget. It reaches shoppers once it is global or assigned to an experience; see checkoutExperienceWidgetsSet. Fails with CHECKOUT_WIDGETS_UNAVAILABLE (409) whileavailability.availableis false. A store can have one global widget per type; a second fails with CHECKOUT_WIDGET_GLOBAL_EXISTS (409). A write that reaches shoppers right away fails with CHECKOUT_WIDGET_LIVE (409) unlessconfirmLiveChangeis true. An invalid widget fails with INVALID_CHECKOUT_WIDGET (400).checkoutWidgetDelete(Experimental) — Permanently delete a checkout widget. A widget that is global or used by an experience fails with CHECKOUT_WIDGET_IN_USE (409): turn it off or unassign it first. An id from another account, or one that does not exist, returns false.checkoutWidgetDuplicate(Experimental) — Copy a checkout widget. The copy is named “<name> (copy)”, isn’t global, and isn’t assigned to any experience. Fails with CHECKOUT_WIDGETS_UNAVAILABLE (409) whileavailability.availableis false. An id from another account, or one that does not exist, is null.checkoutWidgetUpdate(Experimental) — Change a checkout widget. Fields you leave out keep their values.config, when sent, replaces all of the widget’s settings, and a widget’s type can’t change. A write that reaches shoppers right away fails with CHECKOUT_WIDGET_LIVE (409) unlessconfirmLiveChangeis true. That applies to a widget that is global, is becoming global, or is assigned to an experience. A store can have one global widget per type; a second fails with CHECKOUT_WIDGET_GLOBAL_EXISTS (409). Turningglobalon fails with CHECKOUT_WIDGETS_UNAVAILABLE (409) whileavailability.availableis false. An id from another account, or one that does not exist, is null. An invalid widget fails with INVALID_CHECKOUT_WIDGET (400).createCheckoutExperience— Create an empty checkout experience. It has no shipping methods and is not live until the store’s checkout tree routes shoppers to it; add methods with createShippingMethod. An invalid request fails with INVALID_CHECKOUT_REQUEST (400).createShippingMethod— Add a shipping method to a checkout experience. - A FIXED method is a price you set, served by Redo with no carrier involved. It needsrates. - A DYNAMIC method quotes live carrier rates through Redo. It needscarrierServicesor aserviceLevel, and every carrier must be one the store has an account or setting for. - A CUSTOM method is priced per cart by the TypeScript incode, which is type-checked against the custom rate contract before anything is saved. Read customShippingMethodCode (experimental) for the contract and starter code. An agent or an automation cannot sendcode. Per-method shipping discounts cannot be set here; discount shipping with the store’s checkout discount rules instead (checkoutDiscountRuleCreate, experimental). An id from another account, or one that does not exist, is null. An invalid request fails with INVALID_CHECKOUT_REQUEST (400).deleteCheckoutExperience— Permanently delete a checkout experience and its shipping methods. An experience that is live in the store’s checkout tree cannot be deleted, because checkout would be left pointing at an experience that no longer exists. First publish a checkout tree that no longer serves this experience (checkoutTreePublish, experimental), then delete it. An id from another account, or one that does not exist, returns false. Deleting an experience that is live in the checkout tree fails with CHECKOUT_EXPERIENCE_LIVE (409). An invalid request fails with INVALID_CHECKOUT_REQUEST (400).deleteShippingMethod— Permanently remove a shipping method from a checkout experience. If the experience is live, shoppers stop seeing the method as soon as the change propagates. An id from another account, or one that does not exist, returns false. An invalid request fails with INVALID_CHECKOUT_REQUEST (400).duplicateCheckoutExperience— Copy a checkout experience, including its settings and shipping methods. The copy’s shipping methods get new IDs, and the copy is not live until the store’s checkout tree routes shoppers to it. An id from another account, or one that does not exist, is null. An invalid request fails with INVALID_CHECKOUT_REQUEST (400).postPurchaseAbTestConclude(Experimental) — End a running post-purchase A/B test: its winner takes its place in the live flow at once, for every order from now on, and this can’t be undone. It is the only way a running test leaves the flow. Null if the test doesn’t exist, or belongs to another store. POST_PURCHASE_FLOW_REVISION_STALE (409) when the flow changed sinceexpectedRevision: a running test keeps running, so read the flow and call again with the new revision; INVALID_POST_PURCHASE_REQUEST (400) for a treatment that isn’t in the test, or a test that hasn’t started. CONVERSION_FEATURE_LOCKED (409) when post-purchase is locked for the store. POST_PURCHASE_FLOW_UNREADABLE (409) when the stored flow can’t be read.postPurchaseFlowPublish(Experimental) — Replace the store’s post-purchase flow. It is live at once, for every order, with no draft and no rollback: to undo a publish, publish the old flow, after concluding any A/B test it started. Call withoutacknowledgedRisksfirst to see therisks; nothing changes until each is acknowledged. A running A/B test can’t leave the flow or change here, only be rerouted: conclude it withpostPurchaseAbTestConclude. A SPLIT step with nosplit.idstarts a new test. A page attached to a checkout experience still wins over this flow. Null without a Shopify integration. CONVERSION_FEATURE_LOCKED (409) when post-purchase is locked for the store. POST_PURCHASE_FLOW_UNREADABLE (409) when the stored flow can’t be read.setAutoSelectedShippingMethods— Choose which shipping methods are shown first at checkout, in priority order. The first one available is pre-selected for the shopper, and methods not listed follow in their usual order. Send only the methods to put first, not every method. The list replaces the current one; send an empty list to turn auto-selection off. Read the current list fromautoSelectedShippingMethodIdson the checkout experience. An id from another account, or one that does not exist, is null. An invalid request fails with INVALID_CHECKOUT_REQUEST (400).storefrontDeliveryEstimateUpdate(Experimental) — Change the storefront delivery estimate and return it. Fields you leave out keep their values. Changing a setting that’s on, or turning one on or off, reaches shoppers right away, so it fails with STOREFRONT_SETTING_LIVE (409) and changes nothing unlessconfirmLiveChangeis true. An invalid value fails with INVALID_STOREFRONT_SETTING (400).storefrontProgressBarUpdate(Experimental) — Change the cart progress bar and return it, or null after turning it off. While it’s on, fields you leave out keep their values. Turning it on from off needsthreshold,belowThresholdText,reachedThresholdTextandcolor. Changing a setting that’s on, or turning one on or off, reaches shoppers right away, so it fails with STOREFRONT_SETTING_LIVE (409) and changes nothing unlessconfirmLiveChangeis true. An invalid value fails with INVALID_STOREFRONT_SETTING (400).subscriptionDeliveryProfileUpdate(Experimental) — Turn the Shopify delivery profile for subscriptions and pre-orders on or off, and return it. Turning it on writes to Shopify: it reuses the stored profile if that still exists there, so it’s safe to retry after a failure. Turning it off leaves the profile on Shopify and only stops Redo updating it. Changing a setting that’s on, or turning one on or off, reaches shoppers right away, so it fails with STOREFRONT_SETTING_LIVE (409) and changes nothing unlessconfirmLiveChangeis true. Null if the store has no Shopify integration.updateCheckoutExperience— Change a checkout experience’s settings. Only the fields you send are changed. Changes to an experience that is live in the checkout tree take effect for shoppers immediately. An id from another account, or one that does not exist, is null. An invalid request fails with INVALID_CHECKOUT_REQUEST (400).updateShippingMethod— Replace a shipping method’s configuration. The request replaces the whole method, so read it from the experience first and send it back with your changes applied. Configuration the API does not expose, such as shipping discount rules, is kept from the existing method, as ispriceConstraintswhen you omit it. Any other optional field you leave out is cleared. A method’stypecan be changed. On a CUSTOM method, omitcodeto keep the current script; moving to CUSTOM from another type needscode. Read the current script from customShippingMethodCode (experimental). An agent or an automation cannot sendcode. An id from another account, or one that does not exist, is null. An invalid request fails with INVALID_CHECKOUT_REQUEST (400).upsellPageCreate(Experimental) — Create an upsell page. Nobody sees it until the flow or a checkout experience uses it. INVALID_UPSELL_PAGE (400) for a bad page; CONVERSION_FEATURE_LOCKED (409) when post-purchase is locked for the store. POST_PURCHASE_FLOW_UNREADABLE (409) when the stored flow can’t be read.upsellPageDelete(Experimental) — Permanently delete an upsell page. False if it doesn’t exist, or belongs to another store. A page in use can’t be deleted: UPSELL_PAGE_IN_USE (409). CONVERSION_FEATURE_LOCKED (409) when post-purchase is locked for the store. POST_PURCHASE_FLOW_UNREADABLE (409) when the stored flow can’t be read.upsellPageDuplicate(Experimental) — Copy an upsell page, adding “(copy)” to its name. Nobody sees the copy until the flow or a checkout experience uses it. An id from another store is null, as is one that doesn’t exist. CONVERSION_FEATURE_LOCKED (409) when post-purchase is locked for the store. POST_PURCHASE_FLOW_UNREADABLE (409) when the stored flow can’t be read.upsellPageUpdate(Experimental) — Replace a whole upsell page. A page in use (inUse) changes for shoppers at once, so that needsconfirmLiveChange, or fails with UPSELL_PAGE_LIVE (409). An id from another store is null, as is one that doesn’t exist. INVALID_UPSELL_PAGE (400) for a bad page; CONVERSION_FEATURE_LOCKED (409) when post-purchase is locked for the store. POST_PURCHASE_FLOW_UNREADABLE (409) when the stored flow can’t be read.
Objects
CheckoutAbTest(Experimental) — A checkout A/B test. Create one by saving a checkout tree with a SPLIT step.CheckoutAbTestMetricValue(Experimental) — One treatment’s result for a metric.CheckoutAbTestResults(Experimental) — Statistical results of a checkout A/B test. A variant ahead of control doesn’t mean the test was won: onlyCheckoutAbTestTreatment.isWinnersays that.CheckoutAbTestSegment(Experimental) — One checkout segment of an A/B test’s results.CheckoutAbTestSegmentResults(Experimental) — An A/B test’s results per checkout segment. This isn’t a list of per-segment winners: confidence isn’t adjusted for examining many segments at once, so about one segment in twenty clears a 95% bar on noise alone. Weigh any result againstcomparisonsPerformed.CheckoutAbTestSegmentTreatment(Experimental) — One treatment’s result within a segment.CheckoutAbTestTreatment(Experimental) — One arm of a checkout A/B test.CheckoutDiscountRule(Experimental) — A store-level checkout discount rule: when its conditions match the cart, its discount applies to the targeted delivery options. The first matching active rule wins.CheckoutDiscountRuleCartTotalCondition(Experimental) — Compares the cart total, before shipping, taxes and duties, with an amount.CheckoutDiscountRuleCollectionsCondition(Experimental) — Matches when the right number of cart products match the listed collections.CheckoutDiscountRuleConditionBlock(Experimental) — A group of conditions combined by one conjunction.CheckoutDiscountRuleConditions(Experimental) — When the rule applies. A rule with no blocks applies to every cart.CheckoutDiscountRuleCustomerOrderCountCondition(Experimental) — Compares how many orders the shopper has placed with a count. A shopper who is not signed in has zero.CheckoutDiscountRuleDeliveryOptionFilter(Experimental) — Picks delivery options by comparing one field with a value.CheckoutDiscountRuleFixedAmountDiscount(Experimental) — A fixed amount off the matching delivery options’ price, never below zero.CheckoutDiscountRulePercentageDiscount(Experimental) — A percentage off the matching delivery options’ price.CheckoutDiscountRuleProductsCondition(Experimental) — Matches when the right number of cart products are listed.CheckoutDiscountRules(Experimental) — The store’s checkout discount rules and whether they are on.CheckoutDiscountRulesEligibility(Experimental) — Whether the store can turn on checkout discount rules.CheckoutDiscountRuleShippingTarget(Experimental) — The shipping delivery options the discount applies to.CheckoutExperience— A checkout experience: a named group of shipping methods shown together at checkout. It does not decide who sees it — the checkout tree does. An experience can also group checkout widgets, which are not covered here, and a post-purchase upsell page.CheckoutExperienceSummary— A checkout experience: a named group of shipping methods shown together at checkout. It does not decide who sees it — the checkout tree does. An experience can also group checkout widgets and a post-purchase upsell page; this summary covers only its shipping methods.CheckoutTree(Experimental) — A saved checkout tree: which checkout experience each shopper sees. Saving never changes a tree; it creates a new one. One tree per store is live; make another live withcheckoutTreePublish.CheckoutTreeCatalogEntry(Experimental) — A page of the checkout tree catalog.CheckoutTreeCatalogListing(Experimental) — A catalog page, as listed under its parent.CheckoutTreeDefinition(Experimental) — A checkout tree as steps and the edges between them.CheckoutTreeDiagnostic(Experimental) — A problem in a checkout tree.CheckoutTreeRisk(Experimental) — A consequence of publishing. Pass itscodeinacknowledgedRisksto accept it.CheckoutTreeStep(Experimental) — One step of a checkout tree.CheckoutTreeSummary(Experimental) — A saved checkout tree, without its steps.CheckoutWidget(Experimental) — A block a store shows at checkout. It reaches shoppers whenglobalis true or an experience uses it.CheckoutWidgetAssignedExperience(Experimental) — A checkout experience that shows the widget.CheckoutWidgetCollectionSource(Experimental) — A product from a Shopify collection.CheckoutWidgetContentBlockConfig(Experimental) — Settings of a content block.CheckoutWidgetContentSection(Experimental) — One section of a content block.CheckoutWidgetFailedDiscountRescueConfig(Experimental) — Settings of a failed discount rescue.CheckoutWidgetFixedAmountDiscount(Experimental) — A fixed amount off the product.CheckoutWidgetFulfillmentCutoffConfig(Experimental) — Settings of a fulfillment cutoff.CheckoutWidgetImageBlockConfig(Experimental) — Settings of an image block.CheckoutWidgetLowProfileProductUpsellConfig(Experimental) — Settings of a low-profile product upsell.CheckoutWidgetPercentageDiscount(Experimental) — A percentage off the product.CheckoutWidgetProductReviewsConfig(Experimental) — Settings of a product reviews widget.CheckoutWidgetProductSource(Experimental) — One specific Shopify product.CheckoutWidgetRedoAiSource(Experimental) — Redo AI picks the product.CheckoutWidgetReviewsDisplay(Experimental) — Which parts of a review are shown.CheckoutWidgets(Experimental) — The store’s checkout widgets, and whether it can add more.CheckoutWidgetsAvailability(Experimental) — Whether the store can add checkout widgets.CheckoutWidgetShippingOptionContentConfig(Experimental) — Settings of shipping option content.CheckoutWidgetShippingOptionImageConfig(Experimental) — Settings of a shipping option image.CheckoutWidgetShippingOptionProductUpsellConfig(Experimental) — Settings of a shipping option upsell.CheckoutWidgetTagsSource(Experimental) — A product with any of these tags.CheckoutWidgetThresholdUpsellConfig(Experimental) — Settings of a threshold upsell.CheckoutWidgetUpsellProgressBar(Experimental) — A progress bar toward a cart total.CheckoutWidgetUpsellStyling(Experimental) — How upsell product cards look.CustomShippingMethodCode(Experimental) — What is needed to write or edit a custom shipping method: the custom rate contract, starter code, and optionally one method’s current source.CustomShippingMethodSource(Experimental) — The current source of one custom shipping method.PostPurchaseAbTest(Experimental) — An A/B test in the post-purchase flow. Add one by publishing a flow with a split step; end one withpostPurchaseAbTestConclude.PostPurchaseAbTestTreatment(Experimental) — One arm of a post-purchase A/B test.PostPurchaseCustomerTagsCondition(Experimental) — Looks at the customer’s tags.PostPurchaseFlow(Experimental) — The store’s post-purchase flow: which upsell pages each order gets. There is one, and no history of it: it changes for every order the momentpostPurchaseFlowPublishsucceeds. A page attached to a checkout experience wins over the flow, and over any A/B test in it, for orders placed through that experience.PostPurchaseFlowCheck(Experimental) — What publishing a post-purchase flow would do.PostPurchaseFlowDiagnostic(Experimental) — A problem in a post-purchase flow.PostPurchaseFlowRisk(Experimental) — A consequence of publishing. Pass itscodeinacknowledgedRisksto accept it.PostPurchaseFlowSplit(Experimental) — The A/B test of a split step.PostPurchaseFlowStep(Experimental) — One step of the post-purchase flow.PostPurchaseMetafield(Experimental) — A metafield value to look for.PostPurchaseOrderValueCondition(Experimental) — Compares the order’s value.PostPurchasePreviousOrderCountCondition(Experimental) — Compares how many orders the customer placed before this one, so “less than 1” is a first-time buyer.PostPurchaseProductCollectionsCondition(Experimental) — Looks at the collections of the order’s products.PostPurchaseProductMetafieldsCondition(Experimental) — Looks at the metafields of the order’s products.PostPurchaseProductsOrderedCondition(Experimental) — Looks for products in the order.PostPurchaseProductTagsCondition(Experimental) — Looks at the tags of the order’s products.PostPurchaseProviderStatus(Experimental) — Whether post-purchase upsells can reach shoppers.PostPurchaseSegment(Experimental) — Which orders match a segment step.PostPurchaseSegmentBlock(Experimental) — A group of conditions in a post-purchase segment.PostPurchaseVariantFilter(Experimental) — The variants of one product a condition counts.ShippingAiExperienceResults(Experimental) — One checkout experience’s AI shipping results per shipping method, as lifetime totals since it launched.ShippingAiMarginPoint(Experimental) — Shipping margin at one order value.ShippingAiMethodResults(Experimental) — AI shipping results for one shipping method.ShippingAiPriceBucket(Experimental) — Checkouts at one shipping price bucket.ShippingAiResults(Experimental) — What AI shipping pricing has done, as lifetime totals since each experience launched.ShippingMethod— A shipping method offered at checkout and the configuration that prices it.ShippingMethodCarrierService— A carrier service a dynamic method quotes live rates from.ShippingMethodCarrierServiceMarkup— Markup applied to one carrier service.ShippingMethodCondition— A cart weight or cart value range a fixed rate applies to.ShippingMethodCoverageTypes— Redo coverage bundled into a shipping method.ShippingMethodDiscountRule— A shipping discount applied to a method.ShippingMethodMarkup— Markup applied to every live carrier rate on a dynamic method.ShippingMethodMarkupAmount— A flat amount added on top of every carrier rate.ShippingMethodPriceBounds— Hard clamp applied to a dynamic price after markup and rounding.ShippingMethodPriceConstraints— Bounds a shipping method’s sold price must stay within.ShippingMethodPriceInequality— An absolute amount or a percentage bound on a price.ShippingMethodRate— One configured price of a fixed shipping method.ShippingMethodSummary— A shipping method as it appears in a checkout experience summary.StorefrontDeliveryEstimate(Experimental) — The delivery estimate shown on product and cart pages of the storefront.StorefrontDeliveryEstimateRange(Experimental) — A date range shown around the estimated delivery date.StorefrontProgressBar(Experimental) — The cart progress bar shoppers see on the storefront. A store has one only while it’s on.StorefrontSelector(Experimental) — Where on a storefront page a widget is placed.SubscriptionDeliveryProfile(Experimental) — A separate Shopify delivery profile for subscription and pre-order selling plans.UpsellPage(Experimental) — A post-purchase upsell page: the offer a shopper sees after paying. The post-purchase flow decides who sees it. A page attached to a checkout experience wins over the flow, and over any A/B test in it, for orders placed through that experience.UpsellPageBanner(Experimental) — The banner at the top of an upsell page.UpsellPageProduct(Experimental) — A product an upsell page offers.UpsellPageTimer(Experimental) — An upsell page’s countdown timer.
Input objects
CheckoutDiscountRuleCartTotalConditionInput(Experimental) — Compare the cart total with an amount.CheckoutDiscountRuleCollectionsConditionInput(Experimental) — Match on cart products in listed collections.CheckoutDiscountRuleConditionBlockInput(Experimental) — A group of conditions combined by one conjunction.CheckoutDiscountRuleConditionInput(Experimental) — Pass exactly one of cartTotal, customerOrderCount, products, or collections.CheckoutDiscountRuleConditionsInput(Experimental) — When the rule applies. Send no blocks for a rule that applies to every cart.CheckoutDiscountRuleCreateInput(Experimental) — A new checkout discount rule.CheckoutDiscountRuleCustomerOrderCountConditionInput(Experimental) — Compare the shopper’s order count with a number.CheckoutDiscountRuleDeleteInput(Experimental) — The rule to delete.CheckoutDiscountRuleDeliveryOptionFilterInput(Experimental) — Pick delivery options by comparing one field with a value.CheckoutDiscountRuleDiscountInput(Experimental) — Pass exactly one of percentage or fixedAmount.CheckoutDiscountRuleFixedAmountDiscountInput(Experimental) — A fixed amount off shipping.CheckoutDiscountRulePercentageDiscountInput(Experimental) — A percentage off shipping.CheckoutDiscountRuleProductsConditionInput(Experimental) — Match on listed products in the cart.CheckoutDiscountRuleSetActiveInput(Experimental) — Turn one rule on or off.CheckoutDiscountRuleShippingTargetInput(Experimental) — Discount shipping delivery options.CheckoutDiscountRulesReorderInput(Experimental) — A new evaluation order for the active rules.CheckoutDiscountRulesSetEnabledInput(Experimental) — Turn the store’s checkout discount rules on or off.CheckoutDiscountRuleTargetInput(Experimental) — Pass exactly one of shipping.CheckoutDiscountRuleUpdateInput(Experimental) — Changes to a rule. Each field you send replaces that whole field; fields you leave out are kept.CheckoutExperienceWidgetsSetInput(Experimental) — The complete list of widgets for an experience.CheckoutTreeDefinitionInput(Experimental) — A whole checkout tree as steps and edges.CheckoutTreeEdgeInput(Experimental) — Where a step leads, by one of its ports.CheckoutTreeSplitConclusionInput(Experimental) — The winner of an A/B test the new tree removes.CheckoutTreeStepInput(Experimental) — One step of a checkout tree.CheckoutWidgetCollectionSourceInput(Experimental) — A product from a Shopify collection.CheckoutWidgetConfigInput(Experimental) — A widget’s complete settings. Pass exactly one member. Settings you leave out of it are cleared.CheckoutWidgetContentBlockConfigInput(Experimental) — Settings of a content block.CheckoutWidgetContentSectionInput(Experimental) — One section of a content block.CheckoutWidgetCreateInput(Experimental) — The widget to create.CheckoutWidgetDeleteInput(Experimental) — The widget to delete.CheckoutWidgetDiscountInput(Experimental) — Pass exactly one of percentage or fixedAmount.CheckoutWidgetDuplicateInput(Experimental) — The widget to copy.CheckoutWidgetFailedDiscountRescueConfigInput(Experimental) — Settings of a failed discount rescue.CheckoutWidgetFulfillmentCutoffConfigInput(Experimental) — Settings of a fulfillment cutoff.CheckoutWidgetImageBlockConfigInput(Experimental) — Settings of an image block.CheckoutWidgetLowProfileProductUpsellConfigInput(Experimental) — Settings of a low-profile product upsell.CheckoutWidgetProductReviewsConfigInput(Experimental) — Settings of a product reviews widget.CheckoutWidgetProductSourceInput(Experimental) — One specific Shopify product.CheckoutWidgetProgressBarInput(Experimental) — A progress bar toward a cart total.CheckoutWidgetRedoAiSourceInput(Experimental) — Redo AI picks the product. Not for threshold upsells.CheckoutWidgetReviewsDisplayInput(Experimental) — Which parts of a review are shown.CheckoutWidgetShippingOptionContentConfigInput(Experimental) — Settings of shipping option content.CheckoutWidgetShippingOptionImageConfigInput(Experimental) — Settings of a shipping option image.CheckoutWidgetShippingOptionProductUpsellConfigInput(Experimental) — Settings of a shipping option upsell.CheckoutWidgetTagsSourceInput(Experimental) — A product with any of these tags.CheckoutWidgetThresholdUpsellConfigInput(Experimental) — Settings of a threshold upsell.CheckoutWidgetUpdateInput(Experimental) — Fields you leave out keep their values.config, when sent, replaces all of the widget’s settings.CheckoutWidgetUpsellSourceInput(Experimental) — Pass exactly one of redoAi, collection, product or tags.CheckoutWidgetUpsellStylingInput(Experimental) — How upsell product cards look.CreateCheckoutExperienceInput— Input for creating an empty checkout experience.PostPurchaseCustomerTagsConditionInput(Experimental) — Looks at the customer’s tags.PostPurchaseFlowDefinitionInput(Experimental) — A whole post-purchase flow as steps and edges. A step has at most one edge into it. No steps means no flow.PostPurchaseFlowEdgeInput(Experimental) — Where a step leads, by one of its ports.PostPurchaseFlowSplitInput(Experimental) — The A/B test of a split step.PostPurchaseFlowSplitTreatmentInput(Experimental) — One arm of a split step’s A/B test.PostPurchaseFlowStepInput(Experimental) — One step of the post-purchase flow.PostPurchaseMetafieldInput(Experimental) — A metafield value to look for.PostPurchaseOrderValueConditionInput(Experimental) — Compares the order’s value.PostPurchasePreviousOrderCountConditionInput(Experimental) — Compares how many orders the customer placed before this one.PostPurchaseProductCollectionsConditionInput(Experimental) — Looks at the collections of the order’s products.PostPurchaseProductMetafieldsConditionInput(Experimental) — Looks at the metafields of the order’s products.PostPurchaseProductsOrderedConditionInput(Experimental) — Looks for products in the order.PostPurchaseProductTagsConditionInput(Experimental) — Looks at the tags of the order’s products.PostPurchaseSegmentBlockInput(Experimental) — A group of conditions in a post-purchase segment.PostPurchaseSegmentConditionInput(Experimental) — Pass exactly one of orderValue, productsOrdered, productCollections, productMetafields, productTags, customerTags or previousOrderCount.PostPurchaseSegmentInput(Experimental) — Which orders match a segment step.PostPurchaseVariantFilterInput(Experimental) — The variants of one product a condition counts.ShippingMethodCarrierServiceInput— A carrier service to quote live rates from.ShippingMethodCarrierServiceMarkupInput— Markup applied to one carrier service.ShippingMethodConditionInput— A cart weight or cart value range a fixed rate applies to.ShippingMethodCoverageTypesInput— Redo coverage bundled into this shipping method.ShippingMethodInput— Configuration written to create or replace a shipping method.ShippingMethodMarkupInput— Markup applied to every live carrier rate on a dynamic method.ShippingMethodPriceBoundsInput— Hard clamp applied after markup and rounding.ShippingMethodPriceConstraintsInput— Bounds the final price this method may be sold at, after every other pricing rule has run. Omit to leave the method’s existing constraint untouched; send one to replace it outright. There is no way to clear a constraint through this API.ShippingMethodPriceInequalityInput— An absolute amount or a percentage bound on a price.ShippingMethodRateInput— One price of a fixed shipping method.StorefrontDeliveryEstimateRangeInput(Experimental) — A date range to show around the estimated delivery date.StorefrontDeliveryEstimateUpdateInput(Experimental) — The delivery estimate fields to change.StorefrontProgressBarUpdateInput(Experimental) — The progress bar settings to change.StorefrontSelectorInput(Experimental) — Where on a storefront page to place a widget.SubscriptionDeliveryProfileUpdateInput(Experimental) — The subscription delivery profile change.UpdateCheckoutExperienceInput— Only the fields you send are changed.UpsellPageBannerInput(Experimental) — The banner at the top of an upsell page.UpsellPageInput(Experimental) — A whole upsell page. Updates replace every field.UpsellPageProductInput(Experimental) — A product an upsell page offers.UpsellPageTimerInput(Experimental) — An upsell page’s countdown timer.
Enums
CheckoutAbTestMetric(Experimental) — What a line of A/B test results measures.CheckoutAbTestSampleAdequacy(Experimental) — Whether a segment saw enough traffic to read.CheckoutAbTestSegmentCategory(Experimental) — The kind of checkout segment.CheckoutAbTestStartStatus(Experimental) — WhatcheckoutAbTestStartdid.CheckoutAbTestStatus(Experimental) — Where a checkout A/B test is in its life.CheckoutDiscountRuleCollectionMembership(Experimental) — When a single cart product counts as matching the listed collections.CheckoutDiscountRuleConjunction(Experimental) — How a group of conditions combines.CheckoutDiscountRuleDeliveryOptionFilterField(Experimental) — The part of a delivery option a filter reads.CheckoutDiscountRuleDeliveryOptionFilterOperator(Experimental) — How a filter compares the field with its value.CheckoutDiscountRuleDeliveryOptions(Experimental) — Which of the shopper’s delivery options the discount applies to.CheckoutDiscountRuleMatch(Experimental) — How many products in the cart must match.CheckoutDiscountRuleNumberOperator(Experimental) — How a cart value is compared with the condition’s value.CheckoutDiscountRulesIneligibleReason(Experimental) — Why the store cannot turn on checkout discount rules.CheckoutTreeDiagnosticBlocks(Experimental) — What a checkout tree diagnostic stops.CheckoutTreePublishStatus(Experimental) — WhatcheckoutTreePublishdid.CheckoutTreeRiskCode(Experimental) — A consequence of publishing a checkout tree.CheckoutTreeStepType(Experimental) — What a step of a checkout tree does.CheckoutWidgetImageAspectRatio(Experimental) — The shape of upsell product images.CheckoutWidgetImageJustification(Experimental) — Where an image sits horizontally.CheckoutWidgetReviewsProvider(Experimental) — Where a product reviews widget gets its reviews.CheckoutWidgetsUnavailableReason(Experimental) — Why the store cannot add checkout widgets.CheckoutWidgetType(Experimental) — What a checkout widget does.PostPurchaseAbTestStatus(Experimental) — Where a post-purchase A/B test is in its life.PostPurchaseFlowDiagnosticBlocks(Experimental) — What a post-purchase flow diagnostic stops.PostPurchaseFlowPublishStatus(Experimental) — WhatpostPurchaseFlowPublishdid.PostPurchaseFlowRiskCode(Experimental) — A consequence of publishing a post-purchase flow.PostPurchaseFlowStepType(Experimental) — What a step of the post-purchase flow does.PostPurchaseMetafieldMatch(Experimental) — How a metafield’s value is matched.PostPurchaseMetafieldResource(Experimental) — What a metafield is on.PostPurchaseSegmentConjunction(Experimental) — How a post-purchase segment joins its parts.PostPurchaseSegmentItemOperator(Experimental) — How a segment compares one item of the order with a list.PostPurchaseSegmentListOperator(Experimental) — How a segment compares several values with a list.PostPurchaseSegmentNumberOperator(Experimental) — How a post-purchase segment compares a number.ShippingAiStatus(Experimental) — Whether Shipping AI is setting this experience’s shipping prices for shoppers.ShippingCarrier— A carrier a dynamic shipping method can quote or exclude.ShippingMethodConditionType— What a rate condition is measured against.ShippingMethodPriceConstraintKind— How a shipping method’s price bounds are expressed.ShippingMethodRateSelection— Which eligible live carrier rate is shown to the shopper.ShippingMethodRounding— How a marked-up dynamic price is rounded before it is shown.ShippingMethodServiceLevel— Delivery window used to pick a dynamic carrier service.ShippingMethodType— How a shipping method’s price is produced.StorefrontInsertPosition(Experimental) — Where a widget goes relative to the element a selector finds.UpsellPageDiscountType(Experimental) — How an offered product’s discount is expressed.UpsellPageProductSource(Experimental) — How an upsell page picks a product to offer.UpsellPageTextSize(Experimental) — A text size on an upsell page.UpsellPageTimerColor(Experimental) — The color of an upsell page’s countdown timer.UpsellPageTimerStatus(Experimental) — The banner style of an upsell page’s countdown timer.WritableShippingMethodType— How a shipping method written through the API is priced.