Skip to content

Update a Shipping Rate

Endpoint: https://api.youcan.shop/shipping-zones/{id}/rates

Method: PUT

Required Scopes

  • edit-shipping-zones

Parameters

ShippingRate

Param NameParam TypeDescriptionRequired
ratesarrayshipping zone ratesno
rates.*.minfloatshipping rate minyes
rates.*.maxfloat,nullshipping rate maxno
rates.*.pricefloatshipping rate priceyes

Response

[200] OK

json
{
    "message": "Shipping rate updated successfully",
    "http_code": 200,
    "code": "UPDATED",
    "type": "success",
    "data": null
}

[404] Not Found

json
{
    "status": 404,
    "code": 404,
    "detail": "Shipping zone not found",
    "meta": []
}