Error When Creating Draft Orders: Payment Method Issue

Hello everyone,

We are reporting an issue on behalf of a customer who is encountering a problem when attempting to create draft orders in their Shopify store. Until recently, everything was functioning smoothly, but now they are receiving the following error message:

“The chosen payment method does not support discounts that cannot apply equally across all units of a line item. To complete this draft order, remove the discounts or send it to the buyer as an invoice.”

This error is preventing them from saving draft orders, and they are unsure why it has suddenly occurred. Has anyone else faced this issue? Any insights or solutions would be greatly appreciated!

Thank you!

3 Likes

Hey there,

the customer Seun is referring to is me.
I wanted to provide you with further clarification.

The issue arose due to an automatic “Buy X Get Y” discount in draft orders.

In this particular case the discount that caused the problem has the following logic: " * if Customer is Frederic XXY, OR Frederic XXZ, OR Frederic XYX, OR Frederic XYY, OR Frederic XYZ, AND For each set of 3 × Product has tag “frederic”, apply discount: Get Product has tag “frederic” at 100% off" - so basically a 2+1 discount.

The discount split product lines eligible for the 100% off with qty > 1 into sub-lines which caused the error. (see screenshot enclosed)

We did not have any problems with that prior to this incident.

I really hope someone can help us here!
Thanks in advance. :slight_smile:

Hey @seun and @falo, thanks for sharing this.

Was this previously working for you in draft orders? The reason I ask is our docs do mention that buy x get Y discounts aren’t supported on draft orders.

Hey, Are you still experiencing this issue, or can I mark this as solved?

Hey @KyleG-Shopify,

thanks for getting back to me. The issue persists so far.
We did not have any troubles creating draft orders with split item lines so far.

I don’t know what changed, but yeah.

Sorry for my late reply btw.

Best,
Fabian

Thanks for letting me know it was working previously. I’ll see what I can find for you here.

Hey Fabian. I was able to get some clarity on this one.

The issue you are running in to is that limitation around Buy X Get Y discounts in draft orders. The specific issue occurs when trying to mark draft orders as paid through the admin or API.

One workaround you can try: you can send the draft order as an invoice to your customer (which will allow them to complete the purchase through checkout)

Alternatively, if you just need to mark it as paid without sending the invoice, you could use the orderCreate mutation.

I’ve also flagged with the team that our current documentation could be clearer about what exactly is and isn’t supported with these discount types in draft orders.