# Find out the shipping cost

**URL:** <https://community.shiphero.com/t/find-out-the-shipping-cost/3180>\
**Category:** GraphQL API\
**Created:** [January 19, 2025, 10:20am UTC](https://community.shiphero.com/t/find-out-the-shipping-cost/3180 "2025-01-19T10:20:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RunRoyRun](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@RunRoyRun](https://community.shiphero.com/u/RunRoyRun)\
**Post date:** [January 19, 2025, 10:20am UTC](https://community.shiphero.com/t/find-out-the-shipping-cost/3180/1 "2025-01-19T10:20:38Z")

</div>

Hi, I’m trying to figure out what is the cost of the shipping in an order.  
I’m sending this query:

```auto
query Order {
    order(id: "T3JkZXI6NTYwMzA0MDk4") {
        data {
            id
            legacy_id
            order_number
            insurance
            insurance_amount
            currency
            allow_split
            tax_id
            tax_type
            shipping_lines {
                title
                carrier
                method
                price
            }
            shipments {
                id
                shipping_labels {
                    id
                    carrier
                    shipping_name
                    shipping_method
                    cost
                }
            }
        }
    }
}

```

and receive this response:

```auto
{
    "data": {
        "order": {
            "data": {
                "id": "T3JkZXI6NTYwMzA0MDk4",
                "legacy_id": 560304098,
                "order_number": "#42484",
                "insurance": false,
                "insurance_amount": "0.00",
                "currency": "USD",
                "allow_split": true,
                "tax_id": null,
                "tax_type": null,
                "shipping_lines": {
                    "title": "Standard 3-5 days",
                    "carrier": "shippo__usps",
                    "method": "usps_ground_advantage",
                    "price": "3.60"
                },
                "shipments": [
                    {
                        "id": "U2hpcG1lbnQ6NTQyMTM3MjI4",
                        "shipping_labels": [
                            {
                                "id": "U2hpcHBpbmdMYWJlbDo0MTcwNjg2MTI=",
                                "carrier": "shippo__usps",
                                "shipping_name": "Standard 3-5 days",
                                "shipping_method": "usps_ground_advantage",
                                "cost": null
                            }
                        ]
                    }
                ]
            }
        }
    },
    "extensions": {
        "throttling": {
            "estimated_complexity": 2,
            "cost": 2,
            "cost_detail": {
                "order": {
                    "items_count": 1,
                    "cost": 1,
                    "total_cost": 2,
                    "fields": {}
                }
            },
            "user_quota": {
                "credits_remaining": 2000,
                "max_available": 2002,
                "increment_rate": 30
            }
        }
    }
}

```

In the response I have the entry data.order.data.shipping\_lines.price which is “3.60” and  
the cost entry (data.order.data.shipments.shipping\_labels.cost which is null.

I couldn’t find in the docs what both of these values means and what is the actual shipping cost  
If anyone can explain these I’ll be grateful

Thanks,  
Roy

---

<div class="post-metadata">

**Author:** ![tomasfd](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tomasfd](https://community.shiphero.com/u/tomasfd)\
**Post date:** [January 20, 2025, 3:47pm UTC](https://community.shiphero.com/t/find-out-the-shipping-cost/3180/2 "2025-01-20T15:47:23Z")

</div>

Hello @RunRoyRun, Welcome to our Dev Community!

I checked your account, and I noticed that you cannot see those values (cost for the label) in the UI either. Please contact your 3PL to sort that out.

The price in the `shipping_lines` array comes from the storefront, and it is what was, in theory, charged to the end customer.

Have a great day!

---

<div class="post-metadata">

**Author:** ![RunRoyRun](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@RunRoyRun](https://community.shiphero.com/u/RunRoyRun)\
**Post date:** [January 22, 2025, 6:48am UTC](https://community.shiphero.com/t/find-out-the-shipping-cost/3180/3 "2025-01-22T06:48:02Z")

</div>

Thank you! I’ll reach out for them.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/shiphero/original/2X/8/83f2a5ec5d7908b156cb6999baa4c753fadfa85d.svg) [@system](https://community.shiphero.com/u/system)\
**Post date:** [April 22, 2025, 6:48am UTC](https://community.shiphero.com/t/find-out-the-shipping-cost/3180/4 "2025-04-22T06:48:22Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
