# Error: Order uses pricing rules and cannot be claimed

**URL:** <https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236>\
**Category:** Questions\
**Tags:** invoices-api\
**Created:** [April 4, 2021, 3:18pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236 "2021-04-04T15:18:16Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErikB](https://avatars.discourse-cdn.com/v4/letter/e/e8c25b/32.png) [@ErikB](https://developer.squareup.com/forums/u/ErikB)\
**Post date:** [April 4, 2021, 3:18pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/1 "2021-04-04T15:18:16Z")

</div>

I created an order using the Orders API successfully. When creating the draft invoice I get the error message: "Error: -2147220991, Square error! Order uses pricing rules and cannot be claimed.  
A search on this forum or the internet did not yield any result.

In the order I use “pricing options - auto\_apply\_taxes”. If I leave that out, the error goes away.  
But I want to leave that in - it’s an easy way to have applicable taxes applied.

Does anybody have a solution for this?  
Thanks.

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [April 5, 2021, 3:52pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/2 "2021-04-05T15:52:50Z")

</div>

Hi @ErikB welcome to the forums!

That’s the first I’ve seen of this error. Could you share the `order_id` and `invoice_id` and I’ll take a closer look on our side?

---

<div class="post-metadata">

**Author:** ![ErikB](https://avatars.discourse-cdn.com/v4/letter/e/e8c25b/32.png) [@ErikB](https://developer.squareup.com/forums/u/ErikB)\
**Post date:** [April 5, 2021, 5:40pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/3 "2021-04-05T17:40:42Z")

</div>

Hello Stephen,

Thank you for the quick response.

There is no Invoice ID since creation came back with the error.  
Order ID: c4c3SiRftGECEc2paRkY6sba7PbZY

Over the weekend I implemented an alternative way: create a tax uid and  
add this to the items that have (sales) tax. That works fine, but I  
would prefer the ‘auto\_apply\_taxes’ to work.

There is another issue, and I sent an e-mail about this before. An  
invoice created with “SHARE\_MANUALLY” will still cause an error when the  
customer does not have an e-mail address on record. I don’t think that  
makes a lot of sense since the e-mail address is not needed.

Best Regards,

Erik B

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [April 6, 2021, 5:13pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/4 "2021-04-06T17:13:16Z")

</div>

I checked in with some folks, and it looks like that is correct: you can’t use an order that has any pricing rules (auto taxes/discounts/rewards), on an invoice, unfortunately. We are looking to add that to our “Limitations” section of the dashboard, thanks for sharing.

---

<div class="post-metadata">

**Author:** ![ErikB](https://avatars.discourse-cdn.com/v4/letter/e/e8c25b/32.png) [@ErikB](https://developer.squareup.com/forums/u/ErikB)\
**Post date:** [May 17, 2021, 8:53pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/5 "2021-05-17T20:53:15Z")

</div>

Hello Stephen,

I sent an e-mail about this before. An invoice created with  
“SHARE\_MANUALLY” will still cause an error when the customer does not  
have an e-mail address on record. I don’t think that makes a lot of  
sense since the e-mail address is not needed.

The Order generation and Draft invoice generation go OK, it is the  
Publish Invoice that fails.

Order: “KT0iw5NvELo8Exhw1fkA6HBBaePZY”  
Draft invoice: “inv:0-ChBhIwZo8dLKnfE9KYU8bswHEPME”

Error after publish request:  
“Square error! httpResponseCode = 400, responseValue = {“errors”:  
[{“code”: “BAD\_REQUEST”,“detail”: “Payer email is required”,“field”:  
“invoice.primary\_recipient.customer\_id”,“category”:  
“INVALID\_REQUEST\_ERROR”}]}”

I hope you can take a look into this.  
Thank you.

Best Regards,

Erik Bleys  
Millstone Bakery

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [May 18, 2021, 3:52pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/6 "2021-05-18T15:52:19Z")

</div>

Sorry I forgot to touch on that in the previous response. I did check with the team and this is intended behavior. From the invoices side, it sounds like we need at least some sort of buyer identification for risk purposes.

---

<div class="post-metadata">

**Author:** ![ErikB](https://avatars.discourse-cdn.com/v4/letter/e/e8c25b/32.png) [@ErikB](https://developer.squareup.com/forums/u/ErikB)\
**Post date:** [May 18, 2021, 7:23pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/7 "2021-05-18T19:23:52Z")

</div>

Hello Stephen,

Thank you for your response.

I must say you have such a powerful set of API functions, and yet your  
team sometimes makes these strange feature decisions.

How can an e-mail address be a buyer identification? If I have bad  
intentions I would use [FakeEmailAddress@gmail.com](mailto:FakeEmailAddress@gmail.com) and I’m pretty sure  
the API would accept it. Getting an e-mail address from a customer is  
tedious. Each letter needs to be spelled and spelled back to reduce errors.

Another example is Searching customers. A lot of query options, but no  
search by name. Who comes up with that?  
Imagine searching for a street on Google maps. You can search using the  
date the street was created, when it was last repaired, the Google  
street ID, … Would not work very well, don’t you think.

Best Regards,

Erik Bleys  
Millstone Bakery

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [May 18, 2021, 9:28pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/8 "2021-05-18T21:28:14Z")

</div>

We definitely appreciate your feedback, I’m simply informing you that it is the intended behavior currently. The team is aware of this ask, and we’ll be sure to update this thread should it change.

---

<div class="post-metadata">

**Author:** ![Expert\_Learner](https://avatars.discourse-cdn.com/v4/letter/e/8dc957/32.png) [@Expert\_Learner](https://developer.squareup.com/forums/u/Expert_Learner)\
**Post date:** [April 1, 2022, 5:35pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/9 "2022-04-01T17:35:05Z")

</div>

Why can’t we use the option to apply taxes automatically to an order for later create an Invoice? it’s none sense… do you have plans to allow it`?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [April 1, 2022, 6:26pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/10 "2022-04-01T18:26:52Z")

</div>

👋 At this time it still isn’t available and we’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. 🙂

---

<div class="post-metadata">

**Author:** ![Expert\_Learner](https://avatars.discourse-cdn.com/v4/letter/e/8dc957/32.png) [@Expert\_Learner](https://developer.squareup.com/forums/u/Expert_Learner)\
**Post date:** [April 1, 2022, 7:14pm UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/11 "2022-04-01T19:14:19Z")

</div>

Can you explain what is the purpose for that option? we create the order with api allowing taxes automatically… then what can be done? we go to Orders in the Dashboard and there is nothing, we can’t create Invoices, we are trying to understand what to do with what we have done until we get the taxes added with api item by item. So, what can we do there with those api orders? can those orders be found somehow if they are not in the Orders page in the dashboard? can Invoices be created manually from there in the dashboard manually somehow? what can be done there?

---

<div class="post-metadata">

**Author:** ![mTigar](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mTigar](https://developer.squareup.com/forums/u/mTigar)\
**Post date:** [January 26, 2024, 12:22am UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/12 "2024-01-26T00:22:23Z")

</div>

To whom this may concern:

Without realizing the **Limitation** noted in this thread, today I encountered the exact same issue as _ErikB_ - i.e. When creating a Draft Invoice (that includes your **convenient** “pricing option: .AutoApplyTaxes(true)” - I’m getting the same “Order ‘xxx…999’ uses pricing rules and cannot be claimed” error.

And also like _ErikB_, I prefer to use this feature to apply the taxes to the Order/Invoice!

Please advise!

And if you’re going to tell me this remains a Limitation, PLEASE tell me how to Apply Taxes to both the Order and have said Taxes show up on the Invoice.

Thanks!

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [January 27, 2024, 12:47am UTC](https://developer.squareup.com/forums/t/error-order-uses-pricing-rules-and-cannot-be-claimed/2236/13 "2024-01-27T00:47:28Z")

</div>

Hi @mTigar, yes this remains a limitation. However, you can still apply taxes manually to an order, then create an invoice with it. You can find more information on how to do this with the Orders API at [Apply Taxes and Discounts](https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts).
