Hi,
I am finding my self in need of calculating the captured shipping amount of an order, but I cannot spot any easy way to do this?
As far as I can tell the only solution would be to fetch fulfillment line items, shipping lines and captured transactions and then try to estimate if “more than the fulfilled lines have been captured” (so we allocate captured amounts to line items, before any shipping costs). This is further complicated by exchanges which creates new fulfillments
Is there really no way of knowing how much of shipping cost has been captured?