question

bianconet avatar image
bianconet asked bianconet commented

How to get refunded line items from payments API ?

We are trying to access the tax rates for the line items which are refunded. How can we access that using rest API?

Refund
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bryanvargas avatar image
bryanvargas answered

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

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

albertomedina avatar image
albertomedina answered bianconet commented

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.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bianconet avatar image bianconet commented ·
Can you please let me know how the request url might look like?

Really appreciate it.


0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community