GraphQL: Can't find OrderAdjustment on RefundShippingLine, but changelog says it should be there

I’ve been getting deprecation warnings about using OrderAdjustment.kind to calculate shipping refunds with my Shopify app. Investigating the warnings led me to these two changelog entries:

Exposing the order adjustments connection on a Refund

Refunding orders with multiple shipping lines returns accurate data

These entries state that the Refund.refundShippingLines connection should, as of 2024-07, have an OrderAdjustment attached, which will contain the amount of the shipping line that was refunded.

However, as of the 2024-10 docs, there is no OrderAdjustment listed on the RefundShippingLine object.

The same is true when I try it in the Shopify GraphiQL App–no OrderAdjustment available, even on the unstable release.

And, of course, OrderAdjustment.kind is being deprecated and refunds are no longer being included in the Refund.orderAdjustments connection, so it looks like there’s no clear path forward as far as calculating shipping refunds goes.

Am I just looking in completely the wrong place for this somehow? It would be amazing if the refundShippingLines actually included refunded shipping costs, since it makes so much sense for that to be the case, but I can’t seem to find them anywhere.

1 Like