Calculate captured shipping cost

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?

Did you check the Order object?

That is the total shipping cost, not the captured shipping cost