How do I register multiple discount codes from the API or GraphQL?

How do I register multiple discount codes from the API or GraphQL?

Dxduhip
Shopify Partner
1 0 0

Hi, 

 

We have recently added the ability to set multiple discount codes for a single order. This is a very useful feature as it allows one to set multiple discount codes for a single order.

 

However, I am not sure how to use this feature in the Admin API or GraphQL.

I am trying to register multiple discount codes in appliedDiscount. However, the documentation states the following

 

The discount that will be applied to the draft order. A draft order line item can have one discount. A draft order can also have one order-level discount.

Is it possible to register multiple discount codes from multiple Admin APIs and GraphQL?

 

Thank you in advance for your help

 

Replies 0 (0)