---
title: "Update Condition of the Shipping Rule"
method: PATCH
path: "/2024-11/conditions/{condition_id}"
tags: ["Shipping Rule's Conditions"]
---

# Update Condition of the Shipping Rule

`PATCH /2024-11/conditions/{condition_id}`

Update shipping rule condition.

Required authorization scope: `enterprise.shipping_rule:write`

## Path parameters

- `condition_id` string, required

## Request body

- union
  - ConditionMatchCountryCreate — Condition that matches the destination country of the orders
    - `type` 'match_country', required
    - `options` object, required
      - `country_ids` CountryID[], required
  - ConditionMatchAllCreate — Condition that matches all orders
    - `type` 'match_all', required
  - ConditionMatchCategoryCreate — Condition that matches orders containing specific categories
    - `type` 'match_category', required
    - `options` object, required
      - `category_ids` string[], required — List of category IDs based on Category API
  - ConditionMatchStateCreate — Condition that matches the destination state of the orders
    - `type` 'match_state', required
    - `options` object, required
      - `states` string[], required — List of country ID + state abbr based on State API
  - ConditionMatchZipcodeCreate — Condition that matches the destination zipcode of the orders
    - `type` 'match_zipcode', required
    - `options` object, required
      - `operator` 'is_any_of' | 'is_none_of' | 'starts_with', required
      - `zipcodes` string[], required — List of zipcodes
  - ConditionMatchSkuCreate — Condition that matches items SKU
    - `type` 'match_sku', required
    - `options` object, required
      - `operator` 'contains' | 'does_not_contain' | 'is_exactly', required — Operator for comparing items SKU
      - `shipment_items_sku` string, required
  - ConditionMatchPlatformNameCreate — Condition that matches platform
    - `type` 'match_platform_name', required
    - `options` object, required
      - `platform_names` string[], required — List of platform name base on Shipping Rule Platform API.
  - ConditionMatchStoreCreate — Condition that matches store
    - `type` 'match_store', required
    - `options` object, required
      - `store_ids` string[], required — List of store IDs base on Store API.
  - ConditionMatchBuyerSelectedCourierNameCreate — Condition that matches input courier name. This text is compared to the shipping solution options offered to buyers by your e-commerce store. This condition will not apply if you have setup our Checkout plugin in your store.
    - `type` 'match_buyer_selected_courier_name', required
    - `options` object, required
      - `operator` 'contains' | 'does_not_contain' | 'is_exactly', required — operator for filtering couriers
      - `buyer_selected_courier_name` string, required — The courier name is determined and set in your e-commerce store before syncing the order to EasyShip.
  - ConditionMatchItemsCountCreate — Condition that matches order items count
    - `type` 'match_items_count', required
    - `options` object, required
      - `operator` 'greater_than' | 'greater_than_or_equal_to' | 'less_than' | 'less_than_or_equal_to' | 'equal_to', required — Operator for comparing items count
      - `shipment_items_count` integer, required — Items count
  - ConditionMatchSellingPriceCreate — Condition that matches order's selling price
    - `type` 'match_selling_price', required
    - `options` object, required
      - `operator` 'greater_than' | 'greater_than_or_equal_to' | 'less_than' | 'less_than_or_equal_to' | 'equal_to', required — Operator for comparing order's selling price
      - `value` number, required — Selling price
      - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SKK' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'BTC' | 'JEP' | 'EEK' | 'GHC' | 'MTL' | 'TMM' | 'YEN' | 'ZWD' | 'ZWL' | 'ZWN' | 'ZWR', required — ISO-4217 three-letter alphabetic currency code (e.g. USD, EUR, GBP)
  - ConditionMatchWeightCreate — Condition that matches order weight
    - `type` 'match_weight', required
    - `options` object, required
      - `operator` 'greater_than' | 'greater_than_or_equal_to' | 'less_than' | 'less_than_or_equal_to' | 'equal_to', required — Operator for comparing order weight
      - `total_actual_weight` number, required — LB or KG based on country setting.
  - ConditionIncludeOrderTagNameCreate — Condition that matches order tags
    - `type` 'include_order_tag_name', required
    - `options` object, required
      - `order_tag_list` string[], required — Tag names based on Tag API

## Response `200`

condition successfully updated

- ShippingRuleConditionSingle — Shipping Rrule Condition detail
  - `condition` union
    - ConditionMatchCountry — Condition that matches the destination country of the orders
      - `type` 'match_country', required
      - `options` object, required
        - `country_ids` CountryID[], required
      - `id` string, uuid
    - ConditionMatchAll — Condition that matches all orders
      - `type` 'match_all', required
      - `id` string, uuid
    - ConditionMatchCategory — Condition that matches orders containing specific categories
      - `type` 'match_category', required
      - `options` object, required
        - `category_ids` string[], required — List of category IDs based on Category API
      - `id` string, uuid
    - ConditionMatchState — Condition that matches the destination state of the orders
      - `type` 'match_state', required
      - `options` object, required
        - `states` string[], required — List of country ID + state abbr based on State API
      - `id` string, uuid
    - ConditionMatchZipcode — Condition that matches the destination zipcode of the orders
      - `type` 'match_zipcode', required
      - `options` object, required
        - `operator` 'is_any_of' | 'is_none_of' | 'starts_with', required
        - `zipcodes` string[], required — List of zipcodes
      - `id` string, uuid
    - ConditionMatchSku — Condition that matches items SKU
      - `type` 'match_sku', required
      - `options` object, required
        - `operator` 'contains' | 'does_not_contain' | 'is_exactly', required — Operator for comparing items SKU
        - `shipment_items_sku` string, required
      - `id` string, uuid
    - ConditionMatchPlatformName — Condition that matches platform
      - `type` 'match_platform_name', required
      - `options` object, required
        - `platform_names` string[], required — List of platform name base on Shipping Rule Platform API.
      - `id` string, uuid
    - ConditionMatchStore — Condition that matches store
      - `type` 'match_store', required
      - `options` object, required
        - `store_ids` string[], required — List of store IDs base on Store API.
      - `id` string, uuid
    - ConditionMatchBuyerSelectedCourierName — Condition that matches input courier name. This text is compared to the shipping solution options offered to buyers by your e-commerce store. This condition will not apply if you have setup our Checkout plugin in your store.
      - `type` 'match_buyer_selected_courier_name', required
      - `options` object, required
        - `operator` 'contains' | 'does_not_contain' | 'is_exactly', required — operator for filtering couriers
        - `buyer_selected_courier_name` string, required — The courier name is determined and set in your e-commerce store before syncing the order to EasyShip.
      - `id` string, uuid
    - ConditionMatchItemsCount — Condition that matches order items count
      - `type` 'match_items_count', required
      - `options` object, required
        - `operator` 'greater_than' | 'greater_than_or_equal_to' | 'less_than' | 'less_than_or_equal_to' | 'equal_to', required — Operator for comparing items count
        - `shipment_items_count` integer, required — Items count
      - `id` string, uuid
    - ConditionMatchSellingPrice — Condition that matches order's selling price
      - `type` 'match_selling_price', required
      - `options` object, required
        - `operator` 'greater_than' | 'greater_than_or_equal_to' | 'less_than' | 'less_than_or_equal_to' | 'equal_to', required — Operator for comparing order's selling price
        - `value` number, required — Selling price
        - `currency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SKK' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'BTC' | 'JEP' | 'EEK' | 'GHC' | 'MTL' | 'TMM' | 'YEN' | 'ZWD' | 'ZWL' | 'ZWN' | 'ZWR', required — ISO-4217 three-letter alphabetic currency code (e.g. USD, EUR, GBP)
      - `id` string, uuid
    - ConditionMatchWeight — Condition that matches order weight
      - `type` 'match_weight', required
      - `options` object, required
        - `operator` 'greater_than' | 'greater_than_or_equal_to' | 'less_than' | 'less_than_or_equal_to' | 'equal_to', required — Operator for comparing order weight
        - `total_actual_weight` number, required — LB or KG based on country setting.
      - `id` string, uuid
    - ConditionIncludeOrderTagName — Condition that matches order tags
      - `type` 'include_order_tag_name', required
      - `options` object, required
        - `order_tag_list` string[], required — Tag names based on Tag API
      - `id` string, uuid
  - `meta` Meta
    - `request_id` string — An unique ID represent the request.

## Other responses

- `404` — record not found
- `422` — invalid content

---

[API](https://skmtc.net/easyship/apis/easyship-public-api.md) · [All operations](https://skmtc.net/easyship/apis/easyship-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/easyship/easyship-public-api/versions/71d737a5fcbf/schema)
