[PriceRule] How to create Buy X, Get y and setting the minimum purchase amount via GQL?

supportmay
Shopify Partner
1 0 0

Hello,

I'm trying to create a PriceRule via GQL. I found the relevant documentation at: https://shopify.dev/docs/api/admin-graphql/2024-04/mutations/priceRuleCreate.

 

But I didn't find a description in the documentation of creating Buy X, Get Y and setting the minimum purchase amount.

 

I found the description of creating Buy X, Get Y and setting the minimum purchase quantity, prerequisiteToEntitlementQuantityRatio and it works fine.

 

I tried to use prerequisiteToEntitlementAmountRatio, but it prompted me that Field is not defined on PriceRuleInput.

Replies 0 (0)