Shopify Changes Default of appliesOnSubscription to True for Discount Inputs
Check that your discount creation code explicitly sets appliesOnSubscription if you rely on a specific value.
Check that your discount creation code explicitly sets appliesOnSubscription if you rely on a specific value.
Summary
Shopify’s GraphQL Admin API now defaults the appliesOnSubscription flag to true for both DiscountCodeAppInput and DiscountAutomaticAppInput. Previously, the flag defaulted to false, meaning app‑generated discounts did not apply to subscription purchases unless explicitly set. The change applies to all active API versions and does not alter the behavior of existing discount logic. If an app explicitly sets appliesOnSubscription, its behavior remains unchanged.
The appliesOnOneTimePurchase field continues to default to true and is unaffected by this update. Because the default now matches the intended behavior for subscription discounts, developers can safely omit the flag when creating or updating discounts. No code changes are required, but reviewing discount creation logic for explicit flag usage is advisable.
Key changes
- appliesOnSubscription default changed from false to true in DiscountCodeAppInput and DiscountAutomaticAppInput
- No action required; existing discount logic unchanged if flag is explicitly set
- Change applies to all active API versions
- appliesOnOneTimePurchase remains true and unchanged
- Default now matches intended subscription discount behavior