cURL
curl --request PUT \ --url https://api.withflex.com/v1/shipping_rates/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "shipping_rate": { "metadata": {}, "active": true } }'
{ "shipping_rate": { "shipping_rate_id": "<string>", "active": true, "display_name": "<string>", "amount": 123, "metadata": {}, "created_at": "<string>" } }
Updates the specified shipping rate by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Use a Bearer token to access this API.
The response is of type object.
object