Skip to content

Update shipping rate

PATCH/admin/v1/stores/{store_id}/shipping/zones/{zone_id}/rates/{rate_id}
  • settings:write

Change a shipping rate.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • zone_idstringrequired

    The shipping zone's ID, like shz_01k8qs5s….

  • rate_idstringrequired

    The shipping rate's ID, like shr_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • namestring · or null
  • kindenum · or null

    How a rate's charge is determined.

    • flat
    • weight
    • price
    • carrier
  • amountobject · or null

    An exact amount of money in the currency's minor unit (halalas, cents, fils…).

  • tiersarray of objects · or null
  • carrierobject · or null

    How a carrier rate is priced: the carrier account's live price for the parcel, with a markup (negative: a discount).

  • free_overobject · or null

    An exact amount of money in the currency's minor unit (halalas, cents, fils…).

  • min_delivery_daysinteger · or null
  • max_delivery_daysinteger · or null

Returns

200 Updated rate.

Errors

  • 404not_foundNo such rate in this zone.
  • 422validation_failedValidation failed.