# Refund failed with msg 'The sale order tender had insufficient remaining funds to be refunded'

**URL:** <https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550>\
**Category:** Questions\
**Tags:** payments-api\
**Created:** [April 13, 2024, 9:37am UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550 "2024-04-13T09:37:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [April 13, 2024, 9:37am UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/1 "2024-04-13T09:37:13Z")

</div>

Dear Team,

In production env, we made a card payment of total $74.56 (amount $30.56 and tips $44), the card payment is completed and success, later when we tried refunding tips $39.56 via refund API, we got error code BAD\_REQUEST with msg ‘The sale order tender had insufficient remaining funds to be refunded’, however we have checked our bank account balance and it’s sufficient for the refund, could you please help to check why this error occurred?

below is the info about the payment and refunds we’ve tried:

- application id: sq0idp-X5g7B-QAtnOvyEFik1fuSg
- payment id: r9ilrYmJoEcMBJPYavJlugggUpQZY
- refund id: (we tried refunding a few times with slightly different amounts, all of them got the same error)
  - r9ilrYmJoEcMBJPYavJlugggUpQZY\_6kqqNpDiADcg7zhqOmyOkXnUkDcXIEI9x4jnfrX6YuP
  - r9ilrYmJoEcMBJPYavJlugggUpQZY\_XXF0AYO6uZOKM0toLBVnVfJXoFlgYHWtP7ylwt51UYX
  - r9ilrYmJoEcMBJPYavJlugggUpQZY\_N5P25C3pOpJ8FyuvpzDnXXmJmE5swyyEIISnIQG901D
  - r9ilrYmJoEcMBJPYavJlugggUpQZY\_kF2w1IFf4aqfXHNOITCIu9Pkwxsedq2tZIBYZEj2QRB
  - r9ilrYmJoEcMBJPYavJlugggUpQZY\_rJ6n8qWgBUmKKM6EGOuPhn1OZwSXFcO2S89nPZfu7AO

Thanks & Best Regards,  
Alfred Luan

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [April 13, 2024, 9:37am UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/2 "2024-04-13T09:37:38Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Refund a Payment with an Application Fee](https://developer.squareup.com/docs/payments-api/collect-fees/payment-with-app-fee-refund)**
>
> Learn about refunding payments that include application fees using the Refunds API.

> **[Refund Payments](https://developer.squareup.com/docs/payments-api/refund-payments)**
>
> Learn how to process refunds with the Square Refunds API.

> **Additional Documentation**
>
> [Troubleshoot the Payments API](https://developer.squareup.com/docs/payments-api/error-codes)  
> [Refunds API Overview](https://developer.squareup.com/docs/refunds-api/overview)  
> [Retrieve Refunds](https://developer.squareup.com/docs/refunds-api/retrieve-refunds)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [April 15, 2024, 7:26am UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/3 "2024-04-15T07:26:38Z")

</div>

Dear Team, @Bryan-Square

It will be highly appreciated if you can help to look into it as soon as possible, we notice all locations with different bank accounts are in this situation now.

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [April 21, 2024, 6:08pm UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/4 "2024-04-21T18:08:06Z")

</div>

Dear Team,

Any update please?  
Since one week has passed and there is still no news, it would be helpful if you could share anything.

Thanks.

---

<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 22, 2024, 4:27pm UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/5 "2024-04-22T16:27:57Z")

</div>

The team is working on a broader fix for the issue but this payment is now refundable. 🙂

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [April 24, 2024, 7:02am UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/6 "2024-04-24T07:02:49Z")

</div>

hi Bryan,

Thanks for update.

We have successfully refunded the payment (idr9ilrYmJoEcMBJPYavJlugggUpQZY) mentioned in my post.

However there are still another two payments (id 3DgEXGIUoHYJ4id2mzWFz35UwZTZY and DBaNwY1bj8gWBy8yblbaSxOcwhRZY) are still experiencing the same issue, could you please let us know when it can be fully fixed, so that we can refund the two.

---

<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 24, 2024, 4:35pm UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/7 "2024-04-24T16:35:47Z")

</div>

The team is taking a look. 🙂

---

<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 27, 2024, 12:08am UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/8 "2024-04-27T00:08:30Z")

</div>

These payments have been fixed now by the team and can be refunded now. 🙂

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [May 3, 2024, 8:19am UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/9 "2024-05-03T08:19:01Z")

</div>

@Bryan-Square

The issue happens again on square production env, on the same application but different location this time, could you please help to check?

application id: sq0idp-X5g7B-QAtnOvyEFik1fuSg  
location id: L6V9HTMB5VZMQ  
payment id: XLCLTFyROUgIxVrr4W2DByORuVJZY  
refund id (for the same payment):

- XLCLTFyROUgIxVrr4W2DByORuVJZY\_ad1AMbRhCepHdD6AYx8q0qzUg4uzsjxJHKx8j6S7MAS
- XLCLTFyROUgIxVrr4W2DByORuVJZY\_YPynJvr7Q6YYJO1jYvRQAZkN13585oH3HcPnTRag9oV
- XLCLTFyROUgIxVrr4W2DByORuVJZY\_WfkBwQ7FEP5quY9eVsnVqXgpHebUs5eHQ3lZVBR21QX
- XLCLTFyROUgIxVrr4W2DByORuVJZY\_5G28vsWR9A4nmA3rlbQMSeRXxO0bZQWlOlwXNDbvyzU

---

<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:** [May 3, 2024, 6:01pm UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/10 "2024-05-03T18:01:10Z")

</div>

The team is looking into the issue. 🙂

---

<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:** [May 3, 2024, 10:53pm UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/11 "2024-05-03T22:53:43Z")

</div>

The team has fixed the payment. You’ll be able to refund the payment now. 🙂

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [May 4, 2024, 8:10am UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/12 "2024-05-04T08:10:08Z")

</div>

Thanks so much for the prompt help

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [May 11, 2024, 7:52am UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/13 "2024-05-11T07:52:04Z")

</div>

@Bryan-Square

The issue happens again on square production env, may i have your help please?  
Thanks.

application id: sq0idp-X5g7B-QAtnOvyEFik1fuSg  
location id: L6V9HTMB5VZMQ  
payment id: 5C9BUJ37gg1neWEMOAHd976FnKZZY  
refund id: 5C9BUJ37gg1neWEMOAHd976FnKZZY\_ogG0wY49AW6bYlqpTmou2Otqm1fWjcsuKn0E3lMA8VR

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [May 14, 2024, 9:09am UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/14 "2024-05-14T09:09:18Z")

</div>

Dear Team,

Any update please?  
As this issue is still happening twice, I guess the root cause is not fully resolved, so I removed the solution mark on this topic.

If the root cause is resolved, please let me know, we need to keep an eye on each refund initiated in prod env before it’s full resolved, thanks for your kindly understanding.

---

<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:** [May 16, 2024, 11:07pm UTC](https://developer.squareup.com/forums/t/refund-failed-with-msg-the-sale-order-tender-had-insufficient-remaining-funds-to-be-refunded/14550/15 "2024-05-16T23:07:50Z")

</div>

This payment is able to be refunded now and a fix for the overall issue has gone out. 🙂
