Refunds via API

Hi,

I’m creating refunds via API specifying the item which results in Shopify adjusting the the order tax total and I’m confused with how its displayed. See example below.

Taxes were first $7.99 and a total paid was $110.98. After refunding one item the tax was reduced by $3.10 (as I expected) to $4.89. It now shows the order total as $67.88 which is correct. However, the Net Payment shows $70.98.

Why is that if the total amount refunded was 40 (item total) + 3.10 (item tax)?

Thanks!!