This is a repost from here, I found the correct community afterwards, my mistake!
So, I'm trying to process a line item refund with a specified amount of shipping to also refund.
The query works in so much as it removes the line item and refunds it, but the amount specified for shipping is not refunded (see the query variable below).
In the order timeline the refund note **does** **show** the shipping amount I specified, for example "Shipping ($3.13 of $35.80)", but the shipping total is not deducted in the order summary, nor is the amount added to the total refund received.
In the example below, I am trying to refund a line item whose total is $10, and $1 of shipping. But the amount refunded is only $10.
The documentation on this is minimal and vague, I hope someone can help illuminate this for me, thank you!