[GraphQL] Price Rule API Issue with Buy X Get Y and minimum purchase amount setting

CodartApp
New Member
7 0 0

Hello everyone.

I have been trying to fetch price rules with the GraphQL API and am having an issue.

Say I'm having this in my GraphQL call:

{
   priceRules(first: 10) {
      edges {
          cursor
          node {
               id
               title
               summary
               startsAt
               endsAt
              discountCodesCount
         }
      }
       pageInfo {
            hasPreviousPage
            hasNextPage
       }
    }
}

 

There seems to be no problem with this call, all price rules are fetched correctly, except for the price rules for any Buy X Get Y discounts having the minimum purchase amount setting!

I have searched everywhere in the forum and people said the GraphQL works, but actually it doesn't.

 

Anyone else having the same issue? 😞

Reply 1 (1)
csam
Shopify Staff
Shopify Staff
267 40 43

Hi @CodartApp 

Thanks for letting us know about this - I'm seeing the same behaviour in my testing. I'm going to do some more investigation here and I'll let you know what I find.

 

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog