On the admin dashboard, you can see payout information on each order in the timeline. I'm trying to figure out a way to retrieve that data via the API but I cannot find a way to do so.
I'm able to grab all payouts but they don't have order id's associated with them. I've also tried using the "Transactions" endpoint for orders but the payout does not show on there either.
Any help would be appreciated.
You can use the Shopify Payments transaction endpoint. This endpoint lets you specify a payout_id, and will return all transactions associated with that payout along with the order_id the transaction belongs to.
Hi @_JB ,
Is there a way I can filter these transactions by order id? Currently, I would have to retrieve every payout transaction and check if the "source_order_id" field matches what I'm looking for which seems inefficient.