Find out the shipping cost

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

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:

{
    "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

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!

Thank you! I’ll reach out for them.