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