We are integrating shopify orders / refunds into our ERP system and have encountered a sporadic issue where a refund has multiple order adjustments of type 'refund_discrepancy'. One will have a negative value and the other a positive value for the same amount. I am trying to understand why this happens so we can account for this in our integration logic.
Refund an order for 50
That refund's order_adjustments array has two entries, both with type 'refund_discrepancy':
One for positive 50
One for negative 50
Anybody have any ideas why this would happen? Is this expected functionality within Shopify?
Was able to find other posts with similar issue, but not any answers on those posts: