What does it realistically cost to have an agency build a custom Shopify Function for one discount use case?
No published figure exists. Here is the honest answer
An agency-built Shopify Function, the custom code Shopify runs at checkout, has no published market rate for one discount rule. Shopify's partner listings show only partner-set starting prices or "Contact for pricing" (Shopify Partner Directory, October 2026). So the cost follows the rule: write it down, then compare quotes itemizing its data, discount collisions, configurability, cart size and alerting.
- Published market rate
- None for one discount FunctionShopify's Partner Directory shows only partner-set starting prices, $75 to $3,000 on page one of its custom apps listing, or Contact for pricing.Source: Shopify Partner Directory (Custom apps and integrations)
- Record estimate, new discount Function
- $8,000 to $25,000 one-timeOne production discount Function with settings, test fixtures and deployment, 3 to 6 weeks: the custom discount types decision record's illustrative estimate, not a quote.Source: Deploi Build vs. Buy (Should You Build or Buy Custom Discount Types on Shopify Plus?)
- Record estimate, alerting layer
- $12,000 to $40,000 for two or three FunctionsYear-zero alerting for two or three live Functions, the observability record's illustrative estimate; one Function costs less. Shopify's monitoring guide describes no merchant-facing alert.Sources: Deploi Build vs. Buy (Build or Buy Observability for Checkout Functions on Shopify?); Shopify developer docs (Monitoring and handling errors in production)
- Plan gate
- Shopify Plus for a custom Function appOnly Plus stores can use custom apps that contain Shopify Function APIs, per Shopify. Stores on any plan can use public App Store apps that contain functions.Source: Shopify developer docs (About Shopify Functions)
Deploi’s call
No honest price exists for one discount Function until the rule is written down, so get it written before anything is quoted. The specification is the deliverable that makes every quote comparable, and it is cheap. We would rather sell a two-day specification and lose the build than quote a build against a sentence.
BuildCommission a custom Function when
- An app's approximation of the rule would leak more margin in a year than the build costs. Deploi's custom discount types record puts that build at an illustrative $8,000 to $25,000 (Deploi decision record, October 2026).
- Your store is on Shopify Plus, the only plan whose stores can use custom apps built with Shopify Functions (shopify.dev, October 2026).
- The rule reads data no packaged app's settings expose, such as a metafield table combined with customer and cart conditions.
- Someone owns the alerting. Deploi's record on Function alerting puts an illustrative $12,000 to $40,000 in year zero on two or three live Functions, so alerting for one costs less (Deploi decision record, October 2026).
BuyBuy an app instead when
- A packaged discount app already expresses the rule, such as a volume tier, a buy one, get one (BOGO) offer or a spend threshold.
- Your store is not on Plus, so public App Store apps with functions are the supported route (shopify.dev, October 2026).
- A no-code Function builder expresses the rule exactly as written.
Basis: Should You Build or Buy Custom Discount Types on Shopify Plus?, our Build vs. Buy decision record, scored BUILD.
Is there a market rate for an agency-built discount Function?
No. There is no market rate to report for one custom Shopify Function, the code Shopify runs at checkout to apply your discount rule. In our judgment, any article that gives you one invented it or averaged a handful of anecdotes. Whether an agency or an in-house developer should build it is the staffing decision that comes first; the price question starts once an agency is on your shortlist.
The Shopify Partner Directory is the closest thing to a price list, and it shows why no rate exists. Partners can display a self-set starting price, many write "Contact for pricing" instead, and buyers can filter by price range. On the first page of the directory's custom apps and integrations listing, the starting prices shown run from $75 to $3,000 (Shopify Partner Directory, October 2026). Each figure is a partner's own starting price for its services, so it is not a price for your rule. Shopify's own instruction is to "communicate directly with the partner, set your project terms" (shopify.com/partners, October 2026).
What do Deploi's decision records estimate for one discount Function?
Deploi's Build vs. Buy record on custom discount types puts an illustrative $8,000 to $25,000 on one new production discount Function (October 2026). Its reference scenario is a Shopify Plus store selling $20 million to $100 million a year, with a rule no packaged app expresses. Two other records price the cases around it: porting a rule that already ran as a Shopify Script, and the alerting a live Function needs. Shopify Scripts, the older checkout code, stopped running on 30 June 2026 (Shopify Help Center, October 2026).
| Job | Record estimate (illustrative) | Timeline | Upkeep a year |
|---|---|---|---|
| New discount Function with settings, tests and deployment | $8,000 to $25,000 | 3 to 6 weeks | About 15 to 20% of build cost |
| Port of one to six Scripts rules, audit to tested switch-over | $5,000 to $25,000 | 2 to 6 weeks | About 15 to 20% of build cost |
| Alerting for two or three live Functions | $12,000 to $40,000 | 3 to 7 weeks | $5,000 to $12,000 |
The Scripts-to-Functions record adds that a one-rule store overpays at $10,000 (illustrative), so one ported rule sits at the bottom of its band.
Which parts of the discount rule move the price most?
Three facts about the rule set most of the price: the data it reads, its collisions with other discounts, and whether its numbers are hardcoded or configurable.
The data it reads. The rule runs as a Shopify Function, custom code that Shopify executes at checkout. A rule that reads customer tags, product tags, a metafield (custom data) table, the market and the delivery method has five inputs, any of which can be missing. Shopify caps the query that fetches the rule's data at 3,000 bytes excluding comments (shopify.dev, October 2026), so scoping works inside a hard ceiling.
Collisions with other discounts. In our judgment, stacking, precedence and mutual exclusion are where the build time goes. A one-sentence rule often needs four more sentences on how it collides with other discounts. A brief that settles those collisions gets a tighter quote.
Hardcoded or configurable numbers. Tiers baked into the code are cheaper to build and more expensive forever, because every change ships as a new app version (Shopify app versions guide, October 2026). Tiers stored in metafields cost more once and turn each later change into a merchandising edit. Merchants make that edit in a settings screen the agency builds with Shopify's function settings component (Shopify developer docs, October 2026). Deploi's decision record on Function settings judges that hardcoding stops being cheap at about 8 promotion changes a year (October 2026).
Which technical limits and add-ons push the price further?
Two more drivers sit outside the discount rule: the largest cart the Shopify Function must survive, and the alerting that ships with it.
Cart size and language. Shopify gives each Function run 11 million instructions, 128 kB of input and 20 kB of output for carts up to 200 line items, and scales those limits proportionally above 200 (shopify.dev, October 2026). Shopify recommends Rust for large carts, because JavaScript runs into instruction limits sooner (Shopify developer docs, October 2026). A rule that must survive a 200-line wholesale cart is a different engineering problem from one that runs on a three-line direct-to-consumer cart.
Alerting. A Function with no alerting is cheaper and is not finished. Shopify keeps each run's logs in the Dev Dashboard (its developer console) and truncates them after 1 kB (Shopify monitoring guide, October 2026). The same guide describes no merchant-facing alert, so somebody has to build one and price it. Ask every quote whether it includes alerting; in our experience, most do not. Deploi's Build vs. Buy record on Function observability scores this layer CUSTOMIZE: keep Shopify's run logs and build the alert. Its illustrative $12,000 to $40,000 in year zero covers two or three live Functions, so alerting for one discount Function costs less (October 2026).
What should an agency quote for one discount Function itemize?
Deploi's checklist: an agency quote for one discount Function, the custom code that applies your discount at checkout, should itemize seven lines, so you can see where each agency put the work and the risk:
- Discovery and a written rule specification, signed off before the build.
- The Function itself, with the language named and the reason for it.
- The configuration surface: hardcoded numbers, or settings your team edits in the Shopify admin.
- Acceptance testing against named cart scenarios, including collisions with other discounts.
- A staged rollout plan.
- Logging, alerting and a runbook (the written steps for when the rule fails), or an explicit note that they are excluded.
- Who owns changes after launch, and at what rate.
A quote that is one line and one number is not cheaper. It is the same work with the risk moved onto you.
When should you not commission a custom discount Function?
Deploi’s point of view
Our own position, from building on Shopify. Kept apart from the sourced facts above.
- What we’ve seen
- Briefs almost never say whether the rule's numbers should be hardcoded or configurable. Teams find out the first time merchandising asks for a tier change and the answer is "that is a deploy."
- Where we disagree
- The category publishes price ranges for "a Shopify Function" as though that were a unit of work. It is not. A Function is a container for a rule, and the rule is the thing with a price. A published range for the container is a number that cannot be wrong because it never said anything.
- How we scope it
- We ask first whether the rule's numbers are hardcoded or configurable, because in our judgment that one choice moves both the quote and the three-year cost more than any other.
- What this page adds
- The parent answer decides who builds a custom Function. This page prices the agency route: why no market rate exists even though Shopify's directory shows partner starting prices, what Deploi's records estimate for a new discount Function and for a Scripts port, the five drivers that move a quote, and the seven lines a comparable quote itemizes.
Decision records behind this answer
When this answer changes
- Shopify changes which plans can use custom apps that contain Shopify Function APIs, Plus only as of October 2026.
- Shopify changes the Function limits that shape scope: 11 million instructions for carts up to 200 line items, or the 3,000 byte input query.
- Shopify ships a merchant-facing alert for failing Functions, which would shrink the alerting line in every quote.
- The Shopify Partner Directory starts publishing per-project prices or rate cards for custom apps and integrations.
- Deploi re-scores its custom discount types, Scripts-to-Functions or observability record, or their illustrative estimates move.
Related questions
This follows from Who actually builds custom Shopify Functions? Do we need an in-house developer or can an agency do it?
- How do we write a clear brief for an agency to scope a custom Shopify Function, if we don't know the technical terms ourselves?
A clear Shopify Function brief answers 4 questions in plain words: what the rule reads and decides, how it meets other discounts, what happens when it fails, and who edits it.
- Is it possible to buy a pre-built Function for a common use case (like tiered volume discounts) from the Shopify App Store instead of commissioning a custom build?
Yes: Shopify's App Store curates 34 discount apps built on Shopify Functions, the code Shopify runs at checkout.
- Once we factor in ongoing maintenance (not just the initial build), does a custom Shopify Function ever actually beat a third-party discount app's subscription cost over 2-3 years?
A custom Shopify Function, code Shopify runs at checkout, does not beat a discount app's three-year cost on one common rule.
Sources
Every figure on this page traces to one of these. Official and vendor pages are checked on the date shown; Deploi records are our own published decisions.
- Shopify Partner Directory, Hire Shopify Experts, Developers, Designers & Freelancers
- Shopify Partner Directory, Custom apps and integrations
- Shopify developer docs, About Shopify Functions
- Shopify developer docs, Function APIs limitations
- Shopify developer docs, Language considerations
- Shopify developer docs, Monitoring and handling errors in production
- Shopify developer docs, Function settings
- Shopify developer docs, About app versions
- Shopify Help Center, Shopify Scripts and the Script Editor app
- Shopify App Store, Discount Apps built on Shopify Functions
- Logbase, Dealeasy Volume Discounts App on the Shopify App Store
- Deploi Build vs. Buy, Should You Build or Buy Custom Discount Types on Shopify Plus?
- Deploi Build vs. Buy, Should You Build or Buy Your Shopify Scripts-to-Functions Migration?
- Deploi Build vs. Buy, Build or Buy Observability for Checkout Functions on Shopify?
- Deploi Build vs. Buy, Merchant-Editable Function Settings or Hardcode and Redeploy?