To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more

Discount Code Lookup API not working for Buy X Get Y

Enea
Shopify Partner
19 0 2

Hi,

 

I am trying to use this API endpoint: https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#lookup-2020-01

 

It does not work when trying to look up a code that is a "Buy X get Y" when the customer spend is set to "Minimum purchase amount" it does oddly work when the customer spend is set to "Minimum quantity of items"

Reply 1 (1)
Enea
Shopify Partner
19 0 2

I am also trying to use GraphQL to do it but I am getting this error:

 

Field 'codeDiscountNodeByCode' doesn't exist on type 'QueryRoot'

 

With this query:

 

{
	codeDiscountNodeByCode(code: "SOME_CODE") {
    edges {
				node {
          id
        }
    }
  }
}