How can I understand refund reconciliation in REST API?

I’m using the REST API to reconcile orders and payouts from Shopify payments. I have orders which was refunded but I can’t seem to reconcile the refund transactions, here example the details.

  • order_amount: €265
  • fee: €3
  • payout_amount = order_amount - fee = €265 - €3 =€262
  • return_amount: €261
  • refund_discrepancy: €4

In my mind the return amount should either be:

  1. the original amount: €265
  2. or the original amount - fee = €262

So i have 2 questions:

  1. But why was only €261 returned
  2. What does refund_discrepancy mean. This can be found in refunds.order_adjustments.kind in the orders resource in the REST Api.
  3. I also noted that this was a partial refund even though all line items where returned, why does a return on all line items constitute a partial_refund?
1 Like