# Shipping options · Management API

> Management API reference for shipping options: PATCH /sites/{id}/shipping-options/{optionId}.

> Markdown version of https://kanorio.com/en/developers/management-api/shipping_options. Append `.md` to any developer docs URL for this format. Index: https://kanorio.com/llms.txt · MCP: https://app.kanorio.com/api/mcp

Base URL: `https://app.kanorio.com/api/v1` · [Errors](https://kanorio.com/en/developers/basics/errors) · [Pagination](https://kanorio.com/en/developers/basics/pagination)

### Update a shipping option

`PATCH /sites/{id}/shipping-options/{optionId}`

- Stability: beta
- Permission: `fulfillment:manage`
- Rate limit: default (120/minute per token)
- MCP tool: `shipping_options_update`

Update one shipping option: whether its shipping profile offers the method (isActive), its prices and its free shipping threshold. Only the fields you send change. Carriers price per package size: specPrices merges by specCode (use the method's specs), amount null removes a size so it is not offered. Custom methods price per order: amount plus additionalItemAmount for each unit after the first. Amounts are minor units of the option's currency. Send expectedUpdatedAt (options[].updatedAt from your last read); if the option changed since, nothing is written and you get CONFLICT with the current updatedAt: read again and retry. The default profile always offers every method that is on; turn a method off for the whole store with delivery_methods.update. Errors: FORBIDDEN, SHIPPING_OPTION_NOT_FOUND, CONFLICT (details.conflict.updatedAt), VALIDATION (details.reason DEFAULT_PROFILE_ALWAYS_OFFERED, SPEC_PRICES_FOR_FLAT_OPTION, FLAT_AMOUNT_FOR_PACKAGE_OPTION, or SPEC_NOT_FOR_CARRIER with details.specCodes).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Website id. Get it from sites.list or from sites.create. |
| `optionId` | path | string | yes | Shipping option id from shipping.get_settings (options[].id). |

**Request body**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `expectedUpdatedAt` | string | yes | options[].updatedAt from your last read. |
| `isActive` | boolean | no | — |
| `amount` | integer | no | FLAT pricing only (custom methods). |
| `additionalItemAmount` | integer | no | FLAT pricing only (custom methods). |
| `freeShippingThreshold` | integer | no | 0 turns free shipping off. |
| `specPrices` | object[] | no | PACKAGE pricing only (carriers). Merged by specCode; sizes you leave out keep their price. |
| `specPrices[].specCode` | string | yes | — |
| `specPrices[].amount` | integer \| null | yes | Price per package; null stops offering this size. |

**Response** (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | — |
| `methodId` | string | yes | — |
| `profileId` | string | yes | — |
| `zoneId` | string | yes | — |
| `marketId` | string | yes | — |
| `isActive` | boolean | yes | Whether products in this shipping profile can use this method. Always true in the default profile. |
| `currency` | string | yes | Currency of every amount on this option (the market currency). |
| `amount` | integer | yes | FLAT pricing: price per order, minor units. |
| `additionalItemAmount` | integer | yes | FLAT pricing: added for each unit after the first, minor units. |
| `freeShippingThreshold` | integer | yes | Free shipping when the discounted merchandise subtotal reaches this amount; 0 = no free shipping. |
| `specPrices` | object[] | yes | PACKAGE pricing: price per package size. A size without a price is not offered. |
| `specPrices[].specCode` | string | yes | — |
| `specPrices[].amount` | integer | yes | Price per package, minor units. |
| `specPrices[].activated` | boolean | yes | false while the carrier is not set up for this temperature; buyers do not see it yet. |
| `updatedAt` | string | yes | Send it back as expectedUpdatedAt in shipping_options.update. |

**Errors**

| Code | Status | When |
| --- | --- | --- |
| `FORBIDDEN` | 403 | — |
| `SHIPPING_OPTION_NOT_FOUND` | 404 | — |
| `CONFLICT` | 409 | details.conflict.updatedAt |
| `VALIDATION` | 400 | details.reason DEFAULT_PROFILE_ALWAYS_OFFERED, SPEC_PRICES_FOR_FLAT_OPTION, FLAT_AMOUNT_FOR_PACKAGE_OPTION, or SPEC_NOT_FOR_CARRIER with details.specCodes |

```bash
curl -X PATCH "https://app.kanorio.com/api/v1/sites/{id}/shipping-options/{optionId}" \
  -H "Authorization: Bearer $KANORIO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"expectedUpdatedAt":"2026-10-06T08:00:00.000Z","freeShippingThreshold":150000,"specPrices":[{"specCode":"payuni_unimart_ambient","amount":7000}]}'
```

```json
{
  "id": "so_example01",
  "methodId": "dm_example01",
  "profileId": "shpprof_default",
  "zoneId": "zone_example01",
  "marketId": "mkt_example01",
  "isActive": true,
  "currency": "twd",
  "amount": 0,
  "additionalItemAmount": 0,
  "freeShippingThreshold": 150000,
  "specPrices": [
    {
      "specCode": "payuni_unimart_ambient",
      "amount": 7000,
      "activated": true
    }
  ],
  "updatedAt": "2026-11-19T08:30:00.000Z"
}
```
