Skip to Content
Docs
Shipping rates

Update a shipping rate

PATCH/shipping_rates/{shipping_rate_id}

Applies to sessions created from then on. Orders keep the rate and amount they were sold with.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Path parameters

shipping_rate_idstringRequired

The shipping rate's ID (shr_).

Parameters

display_namestring
amountinteger
countriesarray of strings
free_over_amountinteger or null
delivery_estimateobject
Show 2 child parametersHide child parameters
minimumobject
Show 2 child parametersHide child parameters
unitstring

One of business_day, day or week.

valueinteger
maximumobject
Show 2 child parametersHide child parameters
unitstring

One of business_day, day or week.

valueinteger
activeboolean
metadataobject

Your key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.

Returns

The updated shipping rate.

idstring
resourcestring
display_namestring
amountinteger
currencystring

Three-letter ISO currency code, in lowercase.

countriesarray of strings
free_over_amountinteger or null
delivery_estimateobject
Show 2 child attributesHide child attributes
minimumobject
Show 2 child attributesHide child attributes
unitstring

One of business_day, day or week.

valueinteger
maximumobject
Show 2 child attributesHide child attributes
unitstring

One of business_day, day or week.

valueinteger
Show 6 more attributesShow fewer attributes
tax_behaviorstring

exclusive adds tax to the amount, and inclusive includes it.

One of exclusive or inclusive.

tax_codestring or null
activeboolean
metadataobject

Your key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.

createdstring
test_modeboolean

Errors

400
The request is invalid.
401
The API key is missing or wrong.
403
The key's permissions don't allow this route.
404
No such object in this workspace and environment.
Was this page helpful?