Re: Create Cumulative Discount Codes via API

Create Cumulative Discount Codes via API

LuigiDiMaio
Shopify Partner
2 0 0

Hello everyone.
I have my own CRM, created by me and used for my company, through which I create discount codes for my customers that are entered on Shopify via API.

This is a very convenient system for me and that I have been using for years even when my site was developed on WooCommerce.

Returning to Shopify, I can upload discount codes without any problems but I cannot create them so that they are cumulative.
I have to create the discount code from my CRM every time and then remember to go to Shopify and manually modify it to make it cumulative with other discount codes on the site.

Is it possible that there is no parameter through which I can create these coupons via API with the "Cumulative" property already set to true?

Thanks.

Replies 3 (3)

topshop
Shopify Partner
149 14 17

@LuigiDiMaio , can you please clarify what you mean by "cumulative"? Do want to add newly generated coupon codes from your CRM to an already existing discount in Shopify instead of creating a new discount for each code?

Founder, Discount Bot: Sitewide Sales
- Exclude hand-pick products/collections or on-sale items from discounts: Read the guide
- Increase AOV using multi-tier volume discounts
- Bulk coupon codes - for discount promotion
LuigiDiMaio
Shopify Partner
2 0 0

No, I'm fine with creating a new discount for each code, but I would like the discount codes created to be usable at the same time.

Manually, from the Shopify panel I can set the option "Combinations".
I would like the new discount codes created from my CRM to have this option already when they are created, instead of having to set it manually from Shopify every time. 

topshop
Shopify Partner
149 14 17

If you're able to create discounts in Shopify using the API, you should also be able to set the combinesWith property as part of the payload? Here's a screenshot of the Admin API with the field (assuming you're using the Admin API):

 

topshop_0-1723125894299.png

 

 

Founder, Discount Bot: Sitewide Sales
- Exclude hand-pick products/collections or on-sale items from discounts: Read the guide
- Increase AOV using multi-tier volume discounts
- Bulk coupon codes - for discount promotion