I don’t see the option to use a key or ID to distinguish from the description for the shipping method selected by the customer. For example
{
"rates": [
{
"cost": "3.99",
"description": "Flat Rate (Estimated delivery: Jul 5– 7) ",
"slug": "STANDARD",
"guaranteedDaysToDelivery": 5
},
{
"cost": "4.15",
"description": "Standard rate with CO2 offsetting (Estimated delivery: Jul 5– 7) ",
"slug": "STANDARD_CARBON_OFFSET",
"guaranteedDaysToDelivery": 5
}
]
}