Shopify Functions

Shopify Functions let developers add custom backend logic within Shopify. Supported APIs cover discounts, payment and delivery options, cart transformations and checkout validation. Each API has a defined job; Functions are not a general-purpose replacement for every integration.

The app supplies the Function and its configuration, while Shopify runs the logic against supported inputs. Check API availability, the store’s plan and app distribution before choosing a solution. Some APIs have restricted fetch capabilities, so external dependencies and failure handling still need review. See the current Function APIs.

Common uses include tiered discounts based on cart value or eligible customers, hiding payment methods for certain products, controlling delivery options by destination and bundle pricing. Delivery Customization can hide, rename or reorder options; it does not calculate arbitrary carrier rates. Functions work alongside Checkout Extensibility: backend rules and visual UI extensions solve different parts of the checkout.

For Shopify Plus merchants, a supported Function can move suitable checkout rules into Shopify. Map the requirement to the right API and test the result before removing an existing integration.

Start with the rule the business needs, then check the supported inputs, operations and limits.

Frequently asked questions

What are Shopify Functions?

Shopify Functions run custom commerce logic within Shopify through apps. Supported APIs cover tasks such as discounts, payment and delivery options, cart transformations and checkout validation. Availability depends on the API, plan and app distribution.

What is the difference between Shopify Functions and Shopify Scripts?

Scripts were Ruby-based customisations edited through Script Editor. Scripts and that app retired on June 30, 2026. Functions use WebAssembly and are delivered through apps. Check the appropriate Function API rather than assuming every old Script has a direct replacement.

What can Shopify Functions do?

Functions can implement supported discount rules, payment-method customisations, delivery-option changes, bundle-related cart transformations and validation. Delivery Customization hides, renames or reorders options rather than calculating arbitrary carrier rates. Scope required data and integrations separately.

Related terms: Shopify Scripts, Checkout Extensibility, Checkout UI Extensions. For hands-on help, see Flux's Shopify Plus developers.

Shopify Plus development and AI search

We build Shopify Plus stores that customers and AI shopping agents can find, compare and buy from. 210+ stores since 2012.

Chosen by Shopify Plus brands worldwide.