How do I find processing fee information in Shopify API order results with Python requests package?

1 0 0



I am struggling with the following issue, and would love any input folks have:


  1. I am successfully using the Shopify API to pull data for all orders that have ever been placed through my store.
  2. I am using the Python "requests" library to access the API.
  3. I am using this data to do financial reporting, and I need information for each order on the processing fees associated with each order or item in the order. I cannot locate that information in any of the fields that are showing up with the API results.
  4. Below is a list of all of the fields that are coming through the API results. I have gone through each item and nested item and cannot find fee information anywhere.
  5. Does anyone know where I can find the card processing fee associated with each order/item?
  6. Or, is there something specifically I need to add to my API call to return that fee information?




Fields returned by the API call:



Reply 1 (1)

Shopify Staff
254 20 65

If you're using Shopify Payments, you can get this info from the OrderTransaction object in GraphQL, what you're looking for is TransactionFee.


You're not going to be able to get a granular breakdown of the fees in REST, but you can look at the gross fees with the Payouts resource.

Shayne | Developer Advocate @ 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 or the Shopify Web Design and Development Blog