Limits and budgets: Data limit, instructions, and output
Updated · SMART Functions Creator (E-TRADE PARTNER)
Shopify enforces three budgets on every Function: a 10 KB configuration limit (shown in the editor as Data limit), roughly 11 million WebAssembly instructions per run for carts up to 200 lines, and roughly 20 KB of output per run. The app shows the first one live while you edit; the other two matter for very complex rules and very large carts.
5.0 · SMART Functions Creator builds this as a Shopify Function, free on live stores, no code.
Install freeData limit (10 KB)
A rule's complete serialized configuration, every condition, action, and extra input variable, must stay under 10,000 bytes, because Shopify does not pass a larger metafield to the function. The meter depends only on how complex the rule is; it does not grow as customers trigger it. Long product or postcode lists are the usual cause. Use collections or tags instead of product lists, or split into two rules, each with its own 10 KB.
Instruction budget
About 11 million instructions per run for carts up to 200 line items, scaling with larger carts. Large postcode lists, many collection checks, and line item property comparisons can exhaust it even when the configuration is under 10 KB. Combining values into one condition does not necessarily reduce the work.
Output limit
About 20 KB of output per run for carts up to 200 lines. Emitting many separate product discount candidates on a large cart can exceed it and make the run fail. Splitting high-output rules into separate discount functions gives each its own output budget.
Counts
- 25 active automatic discounts per store, 25 active customizations per API per store.
- One cart transform per app per store.
- Cart total and subtotal conditions see the original cart before other discounts.
- Thresholds are entered in the store currency and compared after Shopify's presentment conversion.