Shipping Rate Webhook add support for slug or key

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
		}
	]
}

NVM, I found the solution is to return userDefinedId in the response, However will be good to see it on the documentation

1 Like

@gerardorenovales I’ll submit your feedback to your team and have that changed.