Skip to main content
PUT
/
v1
/
shipping_rates
/
{id}
Update Shipping Rate
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": false
  }
}
'
{
  "shipping_rate": {
    "shipping_rate_id": "obj_01EXAMPLE00000000000000000",
    "active": false,
    "display_name": "Example",
    "amount": 0,
    "metadata": {},
    "created_at": "2024-01-01T00:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Path Parameters

id
string
required
Example:

"obj_01EXAMPLE00000000000000000"

Body

application/json
shipping_rate
object
required
Example:
{ "metadata": {}, "active": false }

Response

Success

shipping_rate
object
required
Example:
{
  "shipping_rate_id": "obj_01EXAMPLE00000000000000000",
  "active": false,
  "display_name": "Example",
  "amount": 0,
  "metadata": {},
  "created_at": "2024-01-01T00:00:00Z"
}