Buy X get Y discount with enabled Minimum purchase amount option not return in request

Solved
New Member
4 0 0

I'm using discount API https://help.shopify.com/en/api/reference/discounts/discountcode#show-2020-01 and try to get the location of discount code "Buy X get Y" with Minimum purchase amount enabled option with a request like GET /admin/api/2020-01/discount_codes/lookup.json?code=SUMMERSALE10OFF. And in response, I get that there is no such code. But if I change this option to Minimum quantity of items it returns the correct location of this discount.

0 Likes
Highlighted

Success.

Shopify Staff
Shopify Staff
294 54 40

Hi @alex_gonor 

 

As this is a newer feature, the minimum $ purchase BXGY is only returned on the GraphQL Admin API. 

 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


1 Like