We are trying to access the tax rates for the line items which are refunded. How can we access that using rest API?
You can run the GET a Refund endpoint and expand on the taxRates:
/v3/merchants/{mId}/refunds/{refundId}?expand=taxRates
If you want to see the individual line items you can also expand on the lineItems
You can use the refunds field on an order query to get the refunded line items applied on the orde. The closest you would get is the refund_line_items array present within the refund API call.
5 People are following this question.