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
AuthorizationstringRequiredHTTP Basic auth: your API key as the password, with an empty username. See Authentication.
Path parameters
shipping_rate_idstringRequiredThe shipping rate's ID (shr_).
Parameters
display_namestringamountintegercountriesarray of stringsfree_over_amountinteger or nulldelivery_estimateobjectShow 2 child parametersHide child parameters
minimumobjectShow 2 child parametersHide child parameters
unitstringvalueintegermaximumobjectShow 2 child parametersHide child parameters
unitstringvalueintegeractivebooleanmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
Returns
The updated shipping rate.
idstringresourcestringdisplay_namestringamountintegercurrencystringThree-letter ISO currency code, in lowercase.
countriesarray of stringsfree_over_amountinteger or nulldelivery_estimateobjectShow 2 child attributesHide child attributes
minimumobjectShow 2 child attributesHide child attributes
unitstringvalueintegermaximumobjectShow 2 child attributesHide child attributes
unitstringvalueintegerShow 6 more attributesShow fewer attributes
tax_behaviorstringexclusive adds tax to the amount, and inclusive includes it.
tax_codestring or nullactivebooleanmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
createdstringtest_modebooleanErrors
400The request is invalid.
401The API key is missing or wrong.
403The key's permissions don't allow this route.
404No such object in this workspace and environment.
Was this page helpful?