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.

Re: Apply Discount Code in Draft Order using Draft Order API

Apply Discount Code in Draft Order using Draft Order API

tcmleung
Shopify Partner
16 2 10

Just wanted to know if it is possible to apply discount code in Draft Order using Draft Order API.

 

Replies 6 (6)

AndyHung
Shopify Partner
63 0 16

Hi @tcmleung , do you have any solution for this?

 

tcmleung
Shopify Partner
16 2 10

No.

We need to use Storefront API to create order if we want to apply discount code.

 

AndyHung
Shopify Partner
63 0 16

Hi @tcmleung , and you don't use Draft order? I use Draft order to add some custom line items, and  now I want it works with discount code. Can you quick guide me, please?

rafaelmarques
Tourist
10 0 3

@tcmleung  @AndyHung were you able to figure that out? I have the same situation here. I have a draft Order and I need to apply the discount code to it but I can't find the endpoint for that.

AndyHung
Shopify Partner
63 0 16

@rafaelmarques I still wait response, but it seems no solution

ffgamba7
Tourist
4 0 2

Also looking for a solution here. Want my sales team to be able to take orders over the phone and build them using draft orders. Need them to be able to apply the clients discount code for tracking and ensuring there aren't issues with the discount.