# Cash on delivery

Offer cash on delivery in a market and set its fee and limits by destination.

Use these endpoints to offer cash on delivery in a market. Read requests require `read_markets`; changes require `write_markets`. COD settings switch cash on delivery on for the market and hold what checkout tells shoppers; COD zones hold where it applies, its fee and its order-value limits. Every market has a default zone, Everywhere, for addresses no other zone covers.

## Where cash on delivery applies

`is_enabled` on COD settings switches cash on delivery on for the whole market. Where it is offered, and at what fee and order values, is set on COD zones. Every market has a default zone, created with the market as Everywhere, that covers addresses no other zone covers; it cannot be deleted or stop being the default. Checkout looks for a postcode zone, then a subdivision zone, then a country zone, and finally the default zone. A disabled matching zone blocks COD; checkout does not fall back to a broader zone. An empty `min_order_amounts`, `max_order_amounts` or `waive_fee_over_amounts` is no such rule.

## Product eligibility and unavailable options

Read the cod-rules list response for supported fields, operators, priorities and max_rules. Priority 1 runs first; equal priorities run from oldest to newest. The first rule matching any product wins. A block rule makes COD unavailable. An allow rule still requires COD to be enabled and the destination and order-value checks to pass. When no product rule matches, those checks still apply.

When an order can't use COD (its minimum or maximum order value, a product rule or the destination), unavailable_display decides what checkout does: `hide` leaves COD out of the payment methods; `show_reason` lists it disabled with a reason in the shopper's language. The reason is a storefront message the merchant can reword in Storefront Messages: CHECKOUT_COD_UNAVAILABLE_BELOW_MIN or CHECKOUT_COD_UNAVAILABLE_ABOVE_MAX, which print the missed order value in the shopper's currency, when that is why, and CHECKOUT_COD_UNAVAILABLE otherwise. Send unavailable_display when replacing settings: omission resets it to hide. Switching COD off for the market hides it regardless of this preference.

`unavailable_display` is on COD settings and applies in every zone of the market, whatever makes COD unavailable: the zone is off, the minimum or maximum order value, a blocked postcode or a product rule. Settings saved without it use `hide`.

## Fee waiver message

While COD is available, checkout can show a message about the fee waiver on the COD payment option; the message is on COD settings, the amount on each zone. When the discounted merchandise subtotal reaches the matched zone's `waive_fee_over_amounts` amount for the checkout currency, it says the fee is waived (standard text: "Cash on delivery fee waived."). Below that amount, it says how much more the order needs (standard text: "Add {{.amount}} more to have the cash on delivery fee waived."), where `{{.amount}}` is the waiver amount minus the subtotal, in the checkout currency. Nothing is shown when the matched zone has no waiver amount for the checkout currency, when the fee is 0 anyway (`fee_type` `free` or a zero fee), or when `waiver_notice_enabled` is false.

The standard texts exist in every storefront language. `waiver_notice_waived` and `waiver_notice_remaining` override them per store language, the default language included: checkout shows your text in the shopper's language when it is not empty, else the standard text in the shopper's language. Texts accept up to 200 characters; only `waiver_notice_remaining` may use `{{.amount}}`, and no other placeholder is accepted (`COD_WAIVER_NOTICE_PLACEHOLDER_INVALID`). Empty texts are dropped, and keys must be languages enabled for the store (`STOREFRONT_LANGUAGE_NOT_ENABLED`). Reads add `waiver_notice_defaults`, the standard texts in each enabled store language with `{{.amount}}` left as written, to show as placeholders in an editor. These fields are on COD settings and apply in every zone; the waiver amount is each zone's. Omitting `waiver_notice_enabled` turns the message on.

## How order values and fees are calculated

Minimum, maximum, fee-waiver, and percentage-fee rules use the merchandise subtotal after every merchandise discount. Shipping, tax, duties, checkout fees, and the COD fee are not part of that subtotal. Minimum and maximum values include the boundary itself. The fee is waived when the subtotal reaches or exceeds the waiver amount.

A fixed fee uses the amount saved for the order currency. A percentage fee uses the discounted merchandise subtotal. After the fee is resolved, Tringify applies the selected market tax class and records the fee, tax class, and tax code in the order pricing snapshot.

> Use `GET /markets/{marketId}/cod-zones/limits` for the current zone and field limits. Use the market's currencies and tax classes when building amount and tax-class selectors; do not hardcode either list.

## Endpoints

## Get COD settings

`GET /api/2025-01/markets/{marketId}/cod-settings`

The response says whether cash on delivery is enabled in the market, `unavailable_display` (what checkout does when an order can't use COD), and `waiver_notice_enabled`, `waiver_notice_waived` and `waiver_notice_remaining` (the fee waiver message); keep all of them when editing one. `waiver_notice_defaults` is read-only: Tringify's default fee waiver texts for each language enabled for the store (`remaining` shows the literal `{{.amount}}`), for use as placeholders where you have no text of your own. The fee, order-amount limits and fee waiver amount are the market's COD zones': read them with `GET /markets/{marketId}/cod-zones`.

Scope: `read_markets`

Response:

```json
{
  "success": true,
  "data": {
    "cod_settings": {
      "id": "2c7c8547-cc7b-46b2-b32d-31c9f3f2abf8",
      "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
      "is_enabled": true,
      "unavailable_display": "show_reason",
      "waiver_notice_enabled": true,
      "waiver_notice_waived": {"en": "Free cash on delivery on this order."},
      "waiver_notice_remaining": {"en": "Add {{.amount}} more for free cash on delivery."},
      "waiver_notice_defaults": {
        "waived": {"en": "Cash on delivery fee waived."},
        "remaining": {"en": "Add {{.amount}} more to have the cash on delivery fee waived."}
      },
      "blocked_postcode_count": 0,
      "created_at": "2026-07-01T10:15:00-04:00",
      "updated_at": "2026-07-08T18:40:00-04:00"
    }
  }
}
```

## Update COD settings

`PUT /api/2025-01/markets/{marketId}/cod-settings`

Send the complete settings object. `is_enabled` controls whether checkout may offer COD in the market at all; where it applies, what it costs and the order amounts it accepts are set on the market's COD zones. The "When COD is unavailable" setting and the fee waiver message apply to every zone. An unchanged request leaves the settings untouched and publishes no webhook; a successful change publishes `cod_settings/update`.

Scope: `write_markets`

Response:

```json
{
  "success": true,
  "data": {
    "cod_settings": {
      "id": "2c7c8547-cc7b-46b2-b32d-31c9f3f2abf8",
      "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
      "is_enabled": true,
      "unavailable_display": "show_reason",
      "waiver_notice_enabled": true,
      "waiver_notice_waived": {"en": "Free cash on delivery on this order."},
      "waiver_notice_remaining": {"en": "Add {{.amount}} more for free cash on delivery."},
      "waiver_notice_defaults": {
        "waived": {"en": "Cash on delivery fee waived."},
        "remaining": {"en": "Add {{.amount}} more to have the cash on delivery fee waived."}
      },
      "blocked_postcode_count": 0,
      "created_at": "2026-07-01T10:15:00-04:00",
      "updated_at": "2026-07-08T18:40:00-04:00"
    }
  },
  "code": "COD_SETTINGS_UPDATED",
  "message": "COD settings updated."
}
```

## Get COD zone limits

`GET /api/2025-01/markets/{marketId}/cod-zones/limits`

Use these values to validate zone names, descriptions, tax codes, and the number of zones before sending a write. The limits come from the same contract enforced by the service.

Scope: `read_markets`

Response:

```json
{
  "success": true,
  "data": {
    "max_per_market": 50,
    "name_max_length": 100,
    "description_max_length": 500,
    "tax_code_max_length": 20
  }
}
```

## List COD zones

`GET /api/2025-01/markets/{marketId}/cod-zones`

Zones are returned in matching priority order. Every market has a default zone, created with it as Everywhere: it covers market destinations no other zone covers. A non-default zone covers its saved countries, subdivisions or postcodes. A disabled matching zone blocks COD; it does not fall back to a broader zone.

Scope: `read_markets`

Response:

```json
{
  "success": true,
  "data": {
    "cod_zones": [{
        "id": "7c9e4f2b-1a3d-4e5f-8b6c-2d0e1f3a4b5c",
        "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
        "name": "New York",
        "description": "Cash on delivery within New York State",
        "countries": ["US"],
        "subdivisions": ["US-NY"],
        "subdivisions_display": ["New York"],
        "postal_codes": [],
        "is_default": false,
        "priority": 10,
        "is_enabled": true,
        "fee_type": "fixed",
        "percent_value": null,
        "fee_amounts": {"USD": "7.00"},
        "fee_min_amounts": {},
        "fee_max_amounts": {},
        "min_order_amounts": {},
        "max_order_amounts": {"USD": "400.00"},
        "waive_fee_over_amounts": {"USD": "150.00"},
        "tax_class_id": "4be5c5d1-0999-48ea-a2e0-f86703d99169",
        "tax_code": "996812",
        "created_at": "2026-07-01T10:15:00-04:00",
        "updated_at": "2026-07-08T18:40:00-04:00"
      }
    ]
  }
}
```

## Create a COD zone

`POST /api/2025-01/markets/{marketId}/cod-zones`

Choose a country, subdivision or postcode scope. Every zone has its own availability, fee, minimum, maximum, fee waiver amount and fee-tax configuration; an empty amount map means no such rule. Countries must belong to the market, subdivisions must belong to a selected country, and zone names must be unique within the market. Zones never cover the same place: one zone per subdivision, one zone per whole country, and no postcode in two zones of a country. A narrower zone still sits inside a wider one, so a postcode zone wins over a subdivision zone, and a subdivision zone over a whole-country zone. A successful create publishes `cod_zones/create`.

Scope: `write_markets`

Response:

```json
{
  "success": true,
  "data": {
    "cod_zone": {
      "id": "7c9e4f2b-1a3d-4e5f-8b6c-2d0e1f3a4b5c",
      "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
      "name": "New York",
      "description": "Cash on delivery within New York State",
      "countries": ["US"],
      "subdivisions": ["US-NY"],
      "subdivisions_display": ["New York"],
      "postal_codes": [],
      "is_default": false,
      "priority": 10,
      "is_enabled": true,
      "fee_type": "fixed",
      "percent_value": null,
      "fee_amounts": {"USD": "7.00"},
      "fee_min_amounts": {},
      "fee_max_amounts": {},
      "min_order_amounts": {},
      "max_order_amounts": {"USD": "400.00"},
      "waive_fee_over_amounts": {"USD": "150.00"},
      "tax_class_id": "4be5c5d1-0999-48ea-a2e0-f86703d99169",
      "tax_code": "996812",
      "created_at": "2026-07-01T10:15:00-04:00",
      "updated_at": "2026-07-08T18:40:00-04:00"
    }
  },
  "code": "COD_ZONE_CREATED",
  "message": "COD zone created."
}
```

## Get a COD zone

`GET /api/2025-01/markets/{marketId}/cod-zones/{zoneId}`

Use the returned values to populate an edit form or inspect the exact rule checkout will consider for this zone.

Scope: `read_markets`

Response:

```json
{
  "success": true,
  "data": {
    "cod_zone": {
      "id": "7c9e4f2b-1a3d-4e5f-8b6c-2d0e1f3a4b5c",
      "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
      "name": "New York",
      "description": "Cash on delivery within New York State",
      "countries": ["US"],
      "subdivisions": ["US-NY"],
      "subdivisions_display": ["New York"],
      "postal_codes": [],
      "is_default": false,
      "priority": 10,
      "is_enabled": true,
      "fee_type": "fixed",
      "percent_value": null,
      "fee_amounts": {"USD": "7.00"},
      "fee_min_amounts": {},
      "fee_max_amounts": {},
      "min_order_amounts": {},
      "max_order_amounts": {"USD": "400.00"},
      "waive_fee_over_amounts": {"USD": "150.00"},
      "tax_class_id": "4be5c5d1-0999-48ea-a2e0-f86703d99169",
      "tax_code": "996812",
      "created_at": "2026-07-01T10:15:00-04:00",
      "updated_at": "2026-07-08T18:40:00-04:00"
    }
  }
}
```

## Update a COD zone

`PUT /api/2025-01/markets/{marketId}/cod-zones/{zoneId}`

Send the complete zone definition you want to keep. The same geographic, currency, threshold and tax-class rules used during creation apply here. To make a zone the default, send `is_default: true` with empty `countries`, `subdivisions` and `postal_codes`; this clears the previous default. An unchanged request publishes no webhook; a successful change publishes `cod_zones/update`.

Scope: `write_markets`

Response:

```json
{
  "success": true,
  "data": {
    "cod_zone": {
      "id": "7c9e4f2b-1a3d-4e5f-8b6c-2d0e1f3a4b5c",
      "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
      "name": "New York",
      "description": "Cash on delivery within New York State",
      "countries": ["US"],
      "subdivisions": ["US-NY"],
      "subdivisions_display": ["New York"],
      "postal_codes": [],
      "is_default": false,
      "priority": 10,
      "is_enabled": true,
      "fee_type": "fixed",
      "percent_value": null,
      "fee_amounts": {"USD": "7.00"},
      "fee_min_amounts": {},
      "fee_max_amounts": {},
      "min_order_amounts": {},
      "max_order_amounts": {"USD": "400.00"},
      "waive_fee_over_amounts": {"USD": "150.00"},
      "tax_class_id": "4be5c5d1-0999-48ea-a2e0-f86703d99169",
      "tax_code": "996812",
      "created_at": "2026-07-01T10:15:00-04:00",
      "updated_at": "2026-07-08T18:40:00-04:00"
    }
  },
  "code": "COD_ZONE_UPDATED",
  "message": "COD zone updated."
}
```

## Delete a COD zone

`DELETE /api/2025-01/markets/{marketId}/cod-zones/{zoneId}`

The default zone cannot be deleted. Existing orders keep the COD fee and tax snapshots recorded when they were placed. A successful deletion publishes `cod_zones/delete`.

Scope: `write_markets`

Response:

```json
{
  "success": true,
  "data": {"success": true},
  "code": "COD_ZONE_DELETED",
  "message": "COD zone deleted."
}
```

## Get blocked COD postcodes

`GET /api/2025-01/markets/{marketId}/cod-settings/blocked-postcodes`

Returns one country's blocked postcodes and prefixes (`1100*` covers every postcode starting 1100) in their stored form: upper case, without spaces or hyphens. `count` is that country's entries, `total_count` the market's across its countries and `max_entries` the most a market can hold; `countries` lists each country that has entries. Blocked postcodes apply before COD zones: a blocked address never gets cash on delivery.

Scope: `read_markets`

Response:

```json
{
  "success": true,
  "data": {
    "country_code": "IN",
    "postal_codes": ["110001", "1100*", "560100"],
    "count": 3,
    "total_count": 3,
    "max_entries": 20000,
    "countries": [{"country_code": "IN", "count": 3}]
  }
}
```

## Replace blocked COD postcodes

`PUT /api/2025-01/markets/{marketId}/cod-settings/blocked-postcodes`

Send the complete list for one country; it replaces the saved one, and an empty list removes them all. Entries are exact postcodes or prefixes ending in `*`, letters and digits only, up to 12 characters; spaces, hyphens and letter case don't matter, and repeats are saved once. The market can hold up to `max_entries` across its countries. A change publishes `cod_settings/update` with the new `blocked_postcode_count`.

Scope: `write_markets`

Response:

```json
{
  "success": true,
  "data": {
    "country_code": "IN",
    "postal_codes": ["110001", "1100*", "560100"],
    "count": 3,
    "total_count": 3,
    "max_entries": 20000,
    "countries": [{"country_code": "IN", "count": 3}]
  }
}
```

## Check COD for an address

`POST /api/2025-01/markets/{marketId}/cod-settings/check`

Answers for the address alone: whether the market serves the country, COD is on, the postcode is blocked, which zone covers it (another zone or the Everywhere zone) and whether that zone is on. `decided_by` is `not_served`, `cod_off`, `blocked_postcode`, `zone`, `zone_off` or `no_zone`; `explanation` says the same in English, and `blocked_entry` is the matching blocked postcode or prefix. At checkout the order's amount limits and the COD rules for products and customer groups also apply; `note` says so. Nothing is saved.

Scope: `read_markets`

Response:

```json
{
  "success": true,
  "data": {
    "available": false,
    "decided_by": "blocked_postcode",
    "explanation": "Not offered: 110001 matches 1100* in your blocked postcodes.",
    "note": "At checkout, the order's amount limits and your COD rules for products and customer groups also apply.",
    "blocked_entry": "1100*",
    "zone_id": null,
    "zone_name": null
  }
}
```

## List COD rules

`GET /api/2025-01/markets/{marketId}/cod-rules`

The response contains rules, max_rules, rule_fields, actions and priorities. Use the returned field/operator catalog, including requires_value and each field's and operator's label, when building an editor. The example shows illustrative records and current choices; use the live response for limits. Rules run by ascending priority, with equal priorities evaluated from oldest to newest. The first rule matching any product decides. An allow rule still requires COD to be enabled and destination and order-value checks to pass. No matching product rule leaves those checks in effect.

Scope: `read_markets`

Response:

```json
{
  "data": {
    "actions": [
      "allow",
      "block"
    ],
    "max_rules": 10,
    "priorities": {
      "max": 10,
      "min": 1
    },
    "rule_fields": [
      {
        "field": "tag",
        "label": "Product tag",
        "operators": [
          {
            "label": "is equal to",
            "operator": "equals",
            "requires_value": true
          },
          {
            "label": "is not equal to",
            "operator": "not_equals",
            "requires_value": true
          },
          {
            "label": "is empty",
            "operator": "is_empty",
            "requires_value": false
          },
          {
            "label": "is not empty",
            "operator": "is_not_empty",
            "requires_value": false
          }
        ],
        "value_kind": "tag"
      },
      {
        "field": "category",
        "label": "Category",
        "operators": [
          {
            "label": "is equal to",
            "operator": "equals",
            "requires_value": true
          },
          {
            "label": "is not equal to",
            "operator": "not_equals",
            "requires_value": true
          },
          {
            "label": "is empty",
            "operator": "is_empty",
            "requires_value": false
          },
          {
            "label": "is not empty",
            "operator": "is_not_empty",
            "requires_value": false
          }
        ],
        "value_kind": "category"
      },
      {
        "field": "vendor",
        "label": "Vendor",
        "operators": [
          {
            "label": "is equal to",
            "operator": "equals",
            "requires_value": true
          },
          {
            "label": "is not equal to",
            "operator": "not_equals",
            "requires_value": true
          },
          {
            "label": "is empty",
            "operator": "is_empty",
            "requires_value": false
          },
          {
            "label": "is not empty",
            "operator": "is_not_empty",
            "requires_value": false
          }
        ],
        "value_kind": "vendor"
      },
      {
        "field": "brand",
        "label": "Brand",
        "operators": [
          {
            "label": "is equal to",
            "operator": "equals",
            "requires_value": true
          },
          {
            "label": "is not equal to",
            "operator": "not_equals",
            "requires_value": true
          },
          {
            "label": "is empty",
            "operator": "is_empty",
            "requires_value": false
          },
          {
            "label": "is not empty",
            "operator": "is_not_empty",
            "requires_value": false
          }
        ],
        "value_kind": "brand"
      },
      {
        "field": "title",
        "label": "Product title",
        "operators": [
          {
            "label": "contains",
            "operator": "contains",
            "requires_value": true
          },
          {
            "label": "does not contain",
            "operator": "not_contains",
            "requires_value": true
          }
        ],
        "value_kind": "text"
      },
      {
        "field": "customer_group",
        "label": "Customer group",
        "operators": [
          {
            "label": "includes the shopper",
            "operator": "is_member",
            "requires_value": true
          },
          {
            "label": "does not include the shopper",
            "operator": "is_not_member",
            "requires_value": true
          }
        ],
        "value_kind": "customer_group"
      }
    ],
    "rules": [
      {
        "action": "block",
        "created_at": "2026-07-01T10:15:00-04:00",
        "field": "title",
        "id": "6b2e8d90-1234-4678-9abc-def012345678",
        "include_subcategories": false,
        "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
        "operator": "contains",
        "priority": 1,
        "store_id": "8e4f9a12-4567-4890-abcd-ef1234567890",
        "updated_at": "2026-07-08T18:40:00-04:00",
        "value": "Gift card",
        "value_label": "Gift card"
      }
    ]
  },
  "success": true
}
```

## Create a COD rule

`POST /api/2025-01/markets/{marketId}/cod-rules`

Send the complete rule definition using a field and operator from the list response. For `customer_group`, use `is_member` or `is_not_member` with a customer group ID from this store: the rule matches the shopper, not a product, and a guest is never a member. Title conditions use contains or not_contains. For category, vendor and brand comparisons, value is the resource ID as a string and must belong to this store. For tag comparisons, value is the tag ID or its slug; a slug is resolved to the tag ID when the rule is saved, a value that is the ID of a tag in this store is read as that ID, and an ID or slug that matches no tag in this store is rejected with COLLECTION_RULE_TAG_NOT_FOUND. Presence checks do not require a value. include_subcategories applies to category conditions. The response returns the saved rule, including its ID and timestamps. Store and market ownership come from the token and URL.

Scope: `write_markets`

Response:

```json
{
  "data": {
    "rule": {
      "action": "block",
      "created_at": "2026-07-01T10:15:00-04:00",
      "field": "title",
      "id": "6b2e8d90-1234-4678-9abc-def012345678",
      "include_subcategories": false,
      "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
      "operator": "contains",
      "priority": 1,
      "store_id": "8e4f9a12-4567-4890-abcd-ef1234567890",
      "updated_at": "2026-07-08T18:40:00-04:00",
      "value": "Gift card",
      "value_label": "Gift card"
    }
  },
  "success": true
,"code":"COD_RULE_CREATED","message":"COD rule created."}
```

## Update a COD rule

`PUT /api/2025-01/markets/{marketId}/cod-rules/{ruleId}`

Send the complete rule definition using a field and operator from the list response. For `customer_group`, use `is_member` or `is_not_member` with a customer group ID from this store: the rule matches the shopper, not a product, and a guest is never a member. Title conditions use contains or not_contains. For category, vendor and brand comparisons, value is the resource ID as a string and must belong to this store. For tag comparisons, value is the tag ID or its slug; a slug is resolved to the tag ID when the rule is saved, a value that is the ID of a tag in this store is read as that ID, and an ID or slug that matches no tag in this store is rejected with COLLECTION_RULE_TAG_NOT_FOUND. Presence checks do not require a value. include_subcategories applies to category conditions. The response returns the saved rule, including its ID and timestamps. Store and market ownership come from the token and URL.

Scope: `write_markets`

Response:

```json
{
  "data": {
    "rule": {
      "action": "block",
      "created_at": "2026-07-01T10:15:00-04:00",
      "field": "title",
      "id": "6b2e8d90-1234-4678-9abc-def012345678",
      "include_subcategories": false,
      "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
      "operator": "contains",
      "priority": 1,
      "store_id": "8e4f9a12-4567-4890-abcd-ef1234567890",
      "updated_at": "2026-07-08T18:40:00-04:00",
      "value": "Gift card",
      "value_label": "Gift card"
    }
  },
  "success": true
,"code":"COD_RULE_UPDATED","message":"COD rule updated."}
```

## Delete a COD rule

`DELETE /api/2025-01/markets/{marketId}/cod-rules/{ruleId}`

The rule must belong to the market and store identified by the URL and token. A successful response contains deleted: true. Remaining rules keep their priorities.

Scope: `write_markets`

Response:

```json
{
  "data": {
    "deleted": true
  },
  "success": true
,"code":"COD_RULE_DELETED","message":"COD rule deleted."}
```

## Webhook events

Subscribe to these events when your app keeps a local copy of cash-on-delivery settings or zones. Settings updates contain the complete saved configuration. Zone create and update events contain the complete zone; zone delete identifies the removed zone. Requests that make no effective change do not publish an event.

## Cash on delivery settings updated

Event: `cod_settings/update` · App scope: `read_markets` · Staff permission: `markets:write`

Fired when a market's cash-on-delivery switch, unavailable-option display, fee waiver message or blocked postcodes change. Fees, order-value limits, waiver amounts and fee tax are on COD zones (cod_zones/*). The snapshot includes unavailable_display, and waiver_notice_enabled, waiver_notice_waived and waiver_notice_remaining (the fee waiver message and its texts per store language). Money maps contain exact decimal strings keyed by currency code, using currency amount precision (for example KWD 1.234, KRW 1234, USD 12.34). They never use General display separators or symbols.

```json
{
  "cod_settings": {
    "blocked_postcode_count": 0,
    "created_at": "2026-07-01T10:15:00-04:00",
    "id": "2c7c8547-cc7b-46b2-b32d-31c9f3f2abf8",
    "is_enabled": true,
    "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
    "unavailable_display": "show_reason",
    "updated_at": "2026-07-08T18:40:00-04:00",
    "waiver_notice_enabled": true,
    "waiver_notice_remaining": {
      "en": "Add {{.amount}} more for free cash on delivery."
    },
    "waiver_notice_waived": {
      "en": "Free cash on delivery on this order."
    }
  }
}
```

## Cash on delivery zone created

Event: `cod_zones/create` · App scope: `read_markets` · Staff permission: `markets:write`

Fired when a cash-on-delivery zone is created in a market. The snapshot is the complete zone: where it applies, whether it is on, its fee, order-value limits, fee waiver amount and fee tax. Money maps contain exact decimal strings keyed by currency code, using currency amount precision (for example KWD 1.234, KRW 1234, USD 12.34). They never use General display separators or symbols.

```json
{
  "cod_zone": {
    "countries": [
      "US"
    ],
    "created_at": "2026-07-01T10:15:00-04:00",
    "description": "Cash on delivery within New York State",
    "fee_amounts": {
      "USD": "7.00"
    },
    "fee_max_amounts": {},
    "fee_min_amounts": {},
    "fee_type": "fixed",
    "id": "7c9e4f2b-1a3d-4e5f-8b6c-2d0e1f3a4b5c",
    "is_default": false,
    "is_enabled": true,
    "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
    "max_order_amounts": {
      "USD": "400.00"
    },
    "min_order_amounts": {},
    "name": "New York",
    "percent_value": null,
    "postal_codes": [],
    "priority": 10,
    "subdivisions": [
      "US-NY"
    ],
    "subdivisions_display": [
      "New York"
    ],
    "tax_class_id": "4be5c5d1-0999-48ea-a2e0-f86703d99169",
    "tax_code": "996812",
    "updated_at": "2026-07-08T18:40:00-04:00",
    "waive_fee_over_amounts": {
      "USD": "150.00"
    }
  }
}
```

## Cash on delivery zone updated

Event: `cod_zones/update` · App scope: `read_markets` · Staff permission: `markets:write`

Fired when a cash-on-delivery zone changes. The snapshot is the complete zone. The unavailable-option display and the fee waiver message are on COD settings (cod_settings/update). Money maps contain exact decimal strings keyed by currency code, using currency amount precision (for example KWD 1.234, KRW 1234, USD 12.34). They never use General display separators or symbols.

```json
{
  "cod_zone": {
    "countries": [
      "US"
    ],
    "created_at": "2026-07-01T10:15:00-04:00",
    "description": "Cash on delivery within New York State",
    "fee_amounts": {
      "USD": "7.00"
    },
    "fee_max_amounts": {},
    "fee_min_amounts": {},
    "fee_type": "fixed",
    "id": "7c9e4f2b-1a3d-4e5f-8b6c-2d0e1f3a4b5c",
    "is_default": false,
    "is_enabled": true,
    "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
    "max_order_amounts": {
      "USD": "400.00"
    },
    "min_order_amounts": {},
    "name": "New York",
    "percent_value": null,
    "postal_codes": [],
    "priority": 10,
    "subdivisions": [
      "US-NY"
    ],
    "subdivisions_display": [
      "New York"
    ],
    "tax_class_id": "4be5c5d1-0999-48ea-a2e0-f86703d99169",
    "tax_code": "996812",
    "updated_at": "2026-07-08T18:40:00-04:00",
    "waive_fee_over_amounts": {
      "USD": "150.00"
    }
  }
}
```

## Cash on delivery zone deleted

Event: `cod_zones/delete` · App scope: `read_markets` · Staff permission: `markets:write`

Fired when a cash-on-delivery zone is deleted.

```json
{
  "cod_zone": {
    "id": "7c9e4f2b-1a3d-4e5f-8b6c-2d0e1f3a4b5c",
    "market_id": "9a1f2c3d-4e5f-6789-abcd-ef0123456789",
    "name": "New York"
  }
}
```

