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": {
    "amount": 950
  }
}
'
{
  "id": "da1546dd-ec56-4c82-bc44-4e1379e741ee",
  "object": "shipping_rate",
  "amount": 950,
  "currency": "usd",
  "max_amount": null,
  "min_amount": 0,
  "max_weight": null,
  "min_weight": 0,
  "rate_type": "flat",
  "weight_unit": "lb",
  "shipping_method": "57d85d6b-9192-4527-baf4-ff125601e823",
  "shipping_zone": "0a5c587d-e094-4e4c-a67c-1f0dc10772f6",
  "created_at": 1767909773,
  "updated_at": 1767909773
}

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.

amount
integer

The amount in cents to be charged, represented as a whole integer. For example 9900 is equivalent to $99.

rate_type
string

The calculation strategy for this shipping rate – one of amount, flat, or weight. If amount, this shipping rate will be applicable to checkouts that have a subtotal_amount within the min/max amount range. If flat, this rate will be applicable to all line items. If weight, this rate will be applicable to line items that have a combined weight within the min/max weight range.

min_amount
integer

The minimum subtotal_amount of a checkout for this rate to apply.

max_amount
integer | null

The maximum subtotal_amount of a checkout for this rate to apply.

min_weight
number

The minimum combined weight of a line item for this rate to apply.

max_weight
number | null

The maximum combined weight of a line item for this rate to apply.

weight_unit
string

The weight unit for this shipping rate – one of lb, oz, kg, g.

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.

currency
string

Three-letter ISO currency code, in lowercase. This value will match the Account currency.

shipping_zone

Expandable – The associated shipping zone ID.

shipping_method

Expandable – The associated shipping method ID.