Shipping Cost Per Line Item

Using the Admin Rest API how can we get the individual shipping costs from an Order with Multiple Line Items.

We have orders with 7+ line items using different rates / fulfilment locations but only ever see 1 shipping line with all of this aggregated. How can we get the individual costs

We’ve seen similar questions with no answers here:

Multiple shipping lines on order confirmation email
https://community.shopify.com/c/payments-shipping-and/multiple-shipping-lines-on-order-confirmation-email/m-p/1053312

Multiple Shipping Lines
https://community.shopify.com/c/fulfillment-and-inventory/multiple-shipping-lines/m-p/2277182

Hopefully this is possible, any help would be greatly appreciated.

Thanks

1 Like

Not with REST but with GraphQL, you could use the order query like this:

query GetOrderShippingCosts($orderId: ID!) {
  order(id: $orderId) {
    shippingLines {
      id
      title
      price {
        shopMoney {
          amount
          currencyCode
        }
      }
    }
  }
}