Refund_discrepancy kind of order_adjustment is getting created with same refund amount

A refund is created with $29.55, which is a refund against the line item in the order.
But we see an Order_adjustment with the same amount is getting created of kind refund_discrepancy.
The “AfterPay” gateway is used.

Because we are refunding the full line_item amount we should be seeing any refund order_adjustment, I am not sure how this refund_discrepancy is showing up in refund JSON.

I have attached the complete order JSON for reference.
Please help me understand how this order_ajustment of kind refund_discrepancy in the refund got created.

any update on this issue? We are experiencing the same issue

no. Are you using any third party refund integrations such as Loop or
returnly?

no just vanilla shopify

Your json has this inside of it:

GHK-0100 : Not loving the fragrance -- processed by Returnly for RMA #34183527 -- refund value applied to original payment method

I kind of suspect your shop is connected to Returnly