Associating payouts with order id's

rgrace-sioux
New Member
2 0 0

Hello,

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.

 

Thanks,

Ryan

0 Likes
_JB
Shopify Staff
Shopify Staff
817 96 177

Hey @rgrace-sioux,

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.

JB | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
rgrace-sioux
New Member
2 0 0

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. 

 

Thanks,

Ryan

0 Likes