Adding in types for purchaseType and recurringCycleLimit fields#4275
Adding in types for purchaseType and recurringCycleLimit fields#4275owenhuang88 wants to merge 1 commit into2026-04-rcfrom
Conversation
🚨🚨🚨 Docs migration in progress 🚨🚨🚨We are actively migrating UI extension reference docs to MDX in the
During this migration, please be aware of the following:
Doc comments in Examples that previously lived in this repo are being moved to the What should I do?
Thanks for your patience while we complete the migration! 🙏 |
This stack of pull requests is managed by Graphite. Learn more about stacking. |

Add purchaseType and recurringCycleLimit to DiscountsApi
Background
Follow-up to the admin-web changes in https://github.com/shop/world/pull/411309 and https://github.com/shop/world/pull/411407, which add support for purchase type and recurring cycle limit fields in the discounts plugin.
This PR adds the corresponding types to
@shopify/ui-extensionsso that discount function settings extensions have access to these new fields in their type contract.Part of this release plan: https://docs.google.com/document/d/1cchvYA3UEDO2o651f_FgsdRqkBSRJLBO3Ac-EAMGCb8/edit?tab=t.0#heading=h.3twiyx2rdsvm
Changes
PurchaseTypetype ('one_time_purchase' | 'subscription' | 'both')purchaseType/updatePurchaseTypesignals toDiscountsApirecurringCycleLimit/updateRecurringCycleLimitsignals toDiscountsApidiscountsdefinition to the doc schema (pre-existing gap)References