I am looking to use the Shopify API to find the shipping rate given an order. If I look up shipping_zones using the API, every shipping rate entry has a corresponding shipping rate ID.
For example, 608328188194, 608328220962, 608328253730, 608328155426, etc. in this API response
"weight_based_shipping_rates": [
{
"id": 608328188194,
"name": "Economy",
"price": "4.90",
"shipping_zone_id": 438236938530,
"weight_low": null,
"weight_high": 5
},
{
"id": 608328220962,
"name": "Economy",
"price": "19.90",
"shipping_zone_id": 438236938530,
"weight_low": 5,
"weight_high": 70
},
{
"id": 608328253730,
"name": "Standard",
"price": "6.90",
"shipping_zone_id": 438236938530,
"weight_low": null,
"weight_high": 1
},
{
"id": 608328286498,
"name": "Standard",
"price": "9.90",
"shipping_zone_id": 438236938530,
"weight_low": 1,
"weight_high": 5
}
],
"price_based_shipping_rates": [
{
"id": 608328155426,
"name": "Economy",
"price": "0.00",
"shipping_zone_id": 438236938530,
"min_order_subtotal": "50",
"max_order_subtotal": null
},
{
"id": 657628266786,
"name": "SUPER FAST",
"price": "0.00",
"shipping_zone_id": 438236938530,
"min_order_subtotal": null,
"max_order_subtotal": null
},
{
"id": 715495604514,
"name": "3-4 Business Days (order by 1:30PM EST)",
"price": "10.00",
"shipping_zone_id": 438236938530,
"min_order_subtotal": null,
"max_order_subtotal": null
}
],
As far as I can tell, this ID is not set under the order.shipping_lines response. Only the name is set (as shipping_lines.title). Is there any way via the API to work backwards to see the ID of which shipping rate was applied to an order?