Shipping Amount Paid by Fulfillment Location

The problem we are facing is as follows:

  • we have a single order from multiple fulfillment locations
  • product A shipping from fulfillment location A, and product B shipping from fulfillment location B (on the same order)
  • Our idea is to split these into separate orders in our app (one for each fulfillment location) and we found that we can query the order object into its fulfillment orders (based on location) and then get the line items for the location. This is good. BUT…
  • The problem is that we cannot find a way to calculate the shipping amount paid by each location. We try and report the shipping costs on a per fulfillment location basis and are looking for a way to query this information from the API.

Summary: For an order with multiple fulfillment locations Shopify charges shipping for each location, but we cannot figure out how to query for which location was assigned which shipping line.

Thanks for the help.