I took a closer look at both object’s documentation: Order doesn’t have a field or connection to return payout data, and similarly ShopifyPaymentsPayout mirrors this for order data. After much digging and testing, since there is no connection on either to the other, multiple queries would be needed if data from both objects is required. - Cheers.
Thanks for getting back to me. I thought that might be the case. Do you know if there is any plans to have a connection between the two models? Would be helpful to know what the order details are for each payout.
Also were you actually able to retrieve orders via the graphql endpoint? According to this issue, there is a bug with scopes preventing orders being returned. I ran into this issue which appears to have been lurking for almost 2 years.