# Refunds with missing tender\_id

**URL:** <https://developer.squareup.com/forums/t/refunds-with-missing-tender-id/20124>\
**Category:** Questions\
**Tags:** orders-api\
**Created:** [December 16, 2024, 7:56pm UTC](https://developer.squareup.com/forums/t/refunds-with-missing-tender-id/20124 "2024-12-16T19:56:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maciej](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Maciej](https://developer.squareup.com/forums/u/Maciej)\
**Post date:** [December 16, 2024, 7:56pm UTC](https://developer.squareup.com/forums/t/refunds-with-missing-tender-id/20124/1 "2024-12-16T19:56:14Z")

</div>

Hello,  
We are making accounting integrations. We have found multiple customers in the last month that have missing `tender_id`. There is one example refund:

```auto
{
  "id": "VZuFO5n4aJVB2Eeu2sJp1tcIBy97pXc5O4eZINh6nyE",
  "location_id": "L5A9S0EGQVKRX",
  "transaction_id": "rEXun3SkeJFNJ4a8z3gcX43fpwUZY",
  "created_at": "2024-12-16T02:46:37Z",
  "reason": "Returned goods",
  "amount_money": {
    "amount": 1000,
    "currency": "AUD"
  },
  "status": "APPROVED"
}

```

According to the documentation of the Orders → Refunds, the tender\_id is a mandatory parameter. Your assistance on explaining why such orders appear would be appreciated.

Thank you.

---

<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:** [December 16, 2024, 7:56pm UTC](https://developer.squareup.com/forums/t/refunds-with-missing-tender-id/20124/2 "2024-12-16T19:56:32Z")

</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:

> **[Payments API Integration](https://developer.squareup.com/docs/pos-api/payments-integration)**
>
> Learn how to get payment details from a Point of Sale API transaction ID.

> **[Pay or Refund Invoices](https://developer.squareup.com/docs/invoices-api/pay-refund-invoices)**
>
> Learn how Square handles invoice payments and how to retrieve and refund an invoice payment.

> **Additional Documentation**
>
> [Retrieve Refunds](https://developer.squareup.com/docs/refunds-api/retrieve-refunds)  
> [Refund Payments](https://developer.squareup.com/docs/payments-api/refund-payments)  
> [Refunds and Exchanges](https://developer.squareup.com/docs/orders-api/order-returns-exchanges)

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:** ![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:** [December 16, 2024, 8:04pm UTC](https://developer.squareup.com/forums/t/refunds-with-missing-tender-id/20124/3 "2024-12-16T20:04:50Z")

</div>

This looks like something from the Transactions API for `tender_ids`. Are you not using the [Refunds API](https://developer.squareup.com/docs/refunds-api/overview)? 🙂

---

<div class="post-metadata">

**Author:** ![Maciej](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Maciej](https://developer.squareup.com/forums/u/Maciej)\
**Post date:** [December 16, 2024, 8:37pm UTC](https://developer.squareup.com/forums/t/refunds-with-missing-tender-id/20124/4 "2024-12-16T20:37:50Z")

</div>

Hey, thanks for the response. Actually, we are using the Search Orders API. A related order is `rEXun3SkeJFNJ4a8z3gcX43fpwUZY`, but there is also no `source_order_id` that we could use to identify a related Refund Payments.  
It seems that these orders don’t have payments or source orders. Even the returned line item is a “Custom Amount”.

---

<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:** [December 16, 2024, 8:53pm UTC](https://developer.squareup.com/forums/t/refunds-with-missing-tender-id/20124/5 "2024-12-16T20:53:59Z")

</div>

Okay, this is an [unlinked refund](https://developer.squareup.com/docs/refunds-api/unlinked-refunds) which is why you don’t see the original `source_order_id`. 🙂

---

<div class="post-metadata">

**Author:** ![Maciej](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Maciej](https://developer.squareup.com/forums/u/Maciej)\
**Post date:** [December 16, 2024, 10:01pm UTC](https://developer.squareup.com/forums/t/refunds-with-missing-tender-id/20124/6 "2024-12-16T22:01:42Z")

</div>

Thanks @Bryan-Square . That was amazing, really appreciated.
