Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Discount API

Discount API

vaibhavrathod
Shopify Partner
16 1 9

Can you please let us know in API how and which API we use for "Purchase type" in the discounts section?

 

Please review the below screenshot.

 

image.png

Replies 2 (2)

KB77
Shopify Staff
59 6 11

Hi @vaibhavrathod it appears the guide here https://shopify.dev/apps/subscriptions/discounts, covers selecting or setting discounts on subscriptions. Hope this helps!

KB77 | 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

vaibhavrathod
Shopify Partner
16 1 9

Hey @KB77,

 

Actually, we are using REST discount API for creating discounts automatically, is there any way we can manage that API to discount code type?

Thank you in advance!