shopify-functions
shopify functions
What it does
- Functions are pure: They cannot access the network, filesystem, random number generators, or the current date/time.
- Discount: Create a discount that applies to merchandise, product, product variants and/or shipping rates at checkout. Use this for ANY discount related task.
- Delivery Customization: Rename, reorder, and sort the delivery options available to buyers during checkout
- Payment Customization: Rename, reorder, and sort payment methods and set payment terms for buyers during checkout
- Cart Transform: Expand cart line items and update the presentation of cart line items
- Cart and Checkout Validation: Provide your own validation of a cart and checkout
- Fulfillment Constraints: Provide your own logic for how Shopify should fulfill and allocate an order
Requirements & configuration
- cart.lines.discounts.generate.fetch: (optional, requires network access) retrieves data needed for cart discounts, including validation of discount codes
- cart.delivery-options.discounts.generate.fetch: (optional, requires network access) retrieves data needed for delivery discounts, including validation of discount codes
- 1. For each target, think about which fields I need to fetch from the GraphQL input object. You can:
- Float does not need to be wrapped in double quotes.
- UnsignedInt64 needs to be wrapped in double quotes.
Configuration: BASE64_OF_USER_PROMPTYOUR_SESSION_IDYOUR_TOOL_USE_IDOPT_OUT_INSTRUMENTATION
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
shopify-functions FAQ
What does the shopify-functions skill do?
Shopify Functions allow developers to customize the backend logic that powers parts of Shopify. Available APIs: Discount, Cart and Checkout Validation, Cart Transform, Pickup Point Delivery Option Generator, Delivery Customization, Fulfillment Constraints, Local Pickup Delivery Option Generator, Order Routing Location Rule, Payment Customization Functions are pure: They cannot access the network, filesystem, random number generators, or the current date/time. Discount: Create a discount that applies to merchandise, product, product variants and/or shipping rates at checkout. Use this for ANY discount related task.
What does shopify-functions require?
cart.lines.discounts.generate.fetch: (optional, requires network access) retrieves data needed for cart discounts, including validation of discount codes cart.delivery-options.discounts.generate.fetch: (optional, requires network access) retrieves data needed for delivery discounts, including validation of discount codes 1. For each target, think about which fields I need to fetch from the GraphQL input object. You can: Float does not need to be wrapped in double quotes. UnsignedInt64 needs to be wrapped in double quotes. Configuration keys: BASE64_OF_USER_PROMPT, YOUR_SESSION_ID, YOUR_TOOL_USE_ID, OPT_OUT_INSTRUMENTATION.
How do I install shopify-functions?
Run: npx -y skills add https://github.com/shopify/shopify-ai-toolkit --skill shopify-functions --agent claude-code — the source lives at github.com/shopify/shopify-ai-toolkit.
Maintain shopify-functions?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/shopify-shopify-ai-toolkit-shopify-functions?ref=badge) npx agentictools info skills/shopify-shopify-ai-toolkit-shopify-functions The second line is the CLI lookup for this page — handy in READMEs and docs.