Skip to main content
PATCH
/
v1
/
shipping_rates
/
{id}
Update
curl --request PATCH \
  --url https://{defaultHost}/v1/shipping_rates/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "shipping_rate": {
    "calculatable": {
      "amount": 950
    }
  }
}
'
{
  "id": "07da73cc-7c78-452e-83a2-137ca220d21d",
  "object": "shipping_rate",
  "calculatable_type": "flat",
  "calculatable": {
    "currency": "usd",
    "amount": 950
  },
  "shipping_method": "2f74a959-50e2-4a38-9630-164c997eea45",
  "shipping_zone": "60e81d64-5c02-4b76-a593-9de6d984b64f",
  "created_at": 1780925634,
  "updated_at": 1780925634
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
shipping_rate
object

Response

200 - application/json

Success

id
string | null

The UUID of the specific object.

object
string

A string describing the object type returned.

calculatable_type
enum<string>

The kind of the nested calculatable.

Available options:
amount,
flat,
weight,
live
calculatable
object
metadata
object

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

created_at
integer | null

Time at which the object was created. Measured in seconds since the Unix epoch.

updated_at
integer | null

Time at which the object was last updated. Measured in seconds since the Unix epoch.

shipping_zone

Expandable – The associated shipping zone ID.

shipping_method

Expandable – The associated shipping method ID.