Discount Code lookup endpoint REST API return 404 for discounts with new Buy X Get Y options

Solved
Highlighted
New Member
1 0 0

Discount Code lookup endpoint REST API return 404 for discounts with new Buy X Get Y option with minimum purchase amount https://andrii-sh10.myshopify.com/admin/api/2019-10/discount_codes/lookup.json?code=SpendXBuyY
My discount code SpendXBuyY - "Spend £20.00, Get 1 item free"
Other discounts works fine.

0 Likes

Success.

Shopify Staff
Shopify Staff
139 22 28

Hi @AndriiMeretskyi ,

 

The Buy X Get Y discount type with the set minimum purchase amount feature is only accessible via the GraphQL Admin API that is versioned for release 2020-01. Hope that helps.

 

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

1 Like