How to get the date of a shipping refund

I do have a GraphQL query which looks like the following to get the Shipping Refund amount of an Order:

{
  order(id:"gid://shopify/Order/5505750073611") {
    totalRefundedShippingSet {
        shopMoney {
            amount
        }
    }
  }
}

Is there any property in the GraphQL Admin API to get the date when the shipping refund was issued?
For normal refunds, this works seamlessly with the createdAt property. Unfortunately I could not find such a property for shipping refunds.

Thanks a lot in advance!

Hi @KevinSchade ,

At this time, there is no specific field on any of the stable versions of the API to confirm an order’s refunded-shipping date(s).

Both an order’s refunds and transactions will have createdAt DateTime objects, but neither of those specify if they come from a shipping refund in the stable versions of the GraphQL Admin API.

The unstable version does currently has a SHIPPING_REFUND value on the refund’s OrderAdjustment object, which is closer to how these could be identified with the REST Admin API and might be useful for you.

All the best

Hi @ShopifyDevSup ,

When do you think this will become available for the stable version? It is very hard to create a detailed invoice when missing this option.

Kind regards,

Glenn