Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shopify API: Create a Promotion?

Tags:

shopify

Using the Shopify API, is there a way to creation promotions for your store? If not, is there a way to programmatically create promotions in Shopify? (short of using CURL posts to the admin)

That is, I can create a promotion by hand using the admin and navigating to the Promotions and clicking the Add a discount code link. I'd like to be able to do the same thing programmatically, or to know for certain this isn't possible. I don't see any obvious method on the api list, but it seems like something should be an API method.

like image 415
Alan Storm Avatar asked Nov 06 '12 01:11

Alan Storm


1 Answers

Unfortunately they don't allow it... I resorted to creating an interface to do so, though:

https://github.com/MartinAmps/Shopify-Private-APIs

Hope it helps

Edit

I also created a blog post about it.

like image 58
Martin Avatar answered Oct 19 '22 18:10

Martin