> ## Documentation Index
> Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Shipping Zone

> Update a shipping zone

## Path Parameters

<ParamField path="zone_id" type="string" required>
  The shipping zone ID (UUID).
</ParamField>

## Body Parameters

Provided fields are applied directly to the zone. Unlike create, update does
not alias `name`/`countries`; send the zone's own field names.

<ParamField body="shippingName" type="string">
  Zone name.
</ParamField>

<ParamField body="zone" type="array">
  ISO 3166-1 alpha-2 country codes for this zone.
</ParamField>

<ParamField body="description" type="string">
  Zone description.
</ParamField>

<ParamField body="price" type="number">
  Flat shipping price for this zone.
</ParamField>

<ParamField body="type" type="string">
  Rate model: `Simple`, `Weight`, or `Price`.
</ParamField>

<ParamField body="digitalProd" type="boolean">
  Whether the zone applies to digital products.
</ParamField>

<ParamField body="minWeight" type="number">
  Minimum order weight (used when `type` is `Weight`).
</ParamField>

<ParamField body="maxWeight" type="number">
  Maximum order weight (used when `type` is `Weight`).
</ParamField>

<ParamField body="minPrice" type="number">
  Minimum order subtotal (used when `type` is `Price`).
</ParamField>

<ParamField body="maxPrice" type="number">
  Maximum order subtotal (used when `type` is `Price`).
</ParamField>

## Response

Returns the standard response envelope with the updated zone under
`data.shipping_zone`.

<ResponseExample>
  ```json theme={null}
  {
    "status": 200,
    "state": "success",
    "message": null,
    "data": {
      "shipping_zone": {
        "shippingZoneId": "9c2e1f4a-8b33-4d71-a0e6-1f2c3d4e5b6a",
        "shippingName": "United States",
        "zone": ["US"],
        "description": "Ground shipping",
        "price": "4.99",
        "type": "Simple",
        "digitalProd": true,
        "minWeight": null,
        "maxWeight": null,
        "minPrice": null,
        "maxPrice": null,
        "storeId": "2a7c9e10-1f3b-4d62-8a51-9b0c7e4f2d8a",
        "createdAt": "2024-01-01T00:00:00Z",
        "updatedAt": "2024-01-25T10:00:00Z"
      }
    },
    "count": null,
    "pagination": null
  }
  ```
</ResponseExample>

## Error Response

```json theme={null}
{
  "status": 404,
  "state": "error",
  "message": "Shipping zone not found",
  "data": null
}
```
