Admin GraphQL API2025-01
BXGY discount support for subscriptions
As of 2025-01, Buy X Get Y (BXGY) discounts support subscriptions, only in cases where X is a subscription and Y is a one-time purchase item at a discounted price or a free item.
You can use the discountAutomaticBxgyCreate or discountCodeBxgyCreate mutations to create a new BXGY discount, or the discountAutomaticBxgyUpdate or discountCodeBxgyUpdate mutations to update an existing BXGY discount. Use the isOneTimePurchase and isSubscription fields on DiscountCustomerBuysInput to specify which items can be discounted.
Learn more building discounts with GraphQL Admin API.
Was this section helpful?