Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Order API - Multiple Refund Order Adjustments of Type 'refund_discrepancy'

Order API - Multiple Refund Order Adjustments of Type 'refund_discrepancy'

zwear
Visitor
1 0 2

Hello,

 

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.

 

For example:

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:

 

Let me know if there is further detail required.

 

Thanks!

 

Reply 1 (1)

ftalfer
Shopify Partner
3 0 1

Hello,
I got the exact same situation / problem.
Saw this with multiple stores or gateways.