Inconsistency in Transaction Receipt Response

25 1 5

I am going through 'Transaction properties' with this page
I am viewing the node 'receipt' in the Transaction according to shopify :A transaction receipt attached to the transaction by the gateway.
The value of this field depends on which gateway the shop is using.

In the transaction when "gateway" = "shopify_payments" We got the fee under the Reciept => balance_transaction => fee
When "gateway" = "paypal" We got the Fee under receipt => PaymentInfo => FeeAmount
Is there any generic node under the transaction through which we can pull the fee.

Shopify Staff
Shopify Staff
750 87 165

Hey @Webgility1,


There is no standardized syntax for data in the receipt field, this field is populated by the gateway and it differs for each gateway. Some gateways don't include the fee data here at all. In this case the best option is to parse out this data based on the particular syntax used by each gateway.

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