Discussing APIs and development related to customers, discounts, and order management.
Hello!
I am struggling with the following issue, and would love any input folks have:
Thanks!
Fields returned by the API call:
['id',
'admin_graphql_api_id',
'app_id',
'browser_ip',
'buyer_accepts_marketing',
'cancel_reason',
'cancelled_at',
'cart_token',
'checkout_id',
'checkout_token',
'closed_at',
'confirmed',
'contact_email',
'created_at',
'currency',
'current_subtotal_price',
'current_subtotal_price_set',
'current_total_discounts',
'current_total_discounts_set',
'current_total_duties_set',
'current_total_price',
'current_total_price_set',
'current_total_tax',
'current_total_tax_set',
'customer_locale',
'device_id',
'discount_codes',
'email',
'estimated_taxes',
'financial_status',
'fulfillment_status',
'gateway',
'landing_site',
'landing_site_ref',
'location_id',
'merchant_of_record_app_id',
'name',
'note',
'note_attributes',
'number',
'order_number',
'order_status_url',
'original_total_duties_set',
'payment_gateway_names',
'phone',
'presentment_currency',
'processed_at',
'processing_method',
'reference',
'referring_site',
'source_identifier',
'source_name',
'source_url',
'subtotal_price',
'subtotal_price_set',
'tags',
'tax_lines',
'taxes_included',
'test',
'token',
'total_discounts',
'total_discounts_set',
'total_line_items_price',
'total_line_items_price_set',
'total_outstanding',
'total_price',
'total_price_set',
'total_shipping_price_set',
'total_tax',
'total_tax_set',
'total_tip_received',
'total_weight',
'updated_at',
'user_id',
'billing_address',
'customer',
'discount_applications',
'fulfillments',
'line_items',
'payment_terms',
'refunds',
'shipping_lines',
'shipping_address',
'client_details',
'payment_details']
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 Shopify.dev or the Shopify Web Design and Development Blog