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.
Endpoints#
Get COD settings
Read the cash-on-delivery switch and shopper messages for a market.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
404COD_SETTINGS_NOT_FOUNDCash-on-delivery settings have not been created for this market.
-
404NOT_FOUNDThe market does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update COD settings
Switch cash on delivery on or off for a market and save its shopper messages.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
is_enabled
required
|
boolean |
Whether checkout may offer cash on delivery in this market. The market's COD zones set where, at what fee and for which order amounts. |
unavailable_display
|
string |
What checkout does with cash on delivery when an order can't use it, for every zone and reason: |
waiver_notice_enabled
|
boolean |
Whether checkout shows a message about the fee waiver on the cash-on-delivery option while COD is available. Once the discounted merchandise subtotal reaches the matched zone's |
waiver_notice_waived
|
object |
Your text for the message shown when the fee is waived, keyed by store language code (the default language included). A language without a text shows Tringify's default in the shopper's language ( |
waiver_notice_remaining
|
object |
Your text for the message shown while the order is below the waiver amount, keyed by store language code (the default language included). |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. The request body is not valid JSON. -
400INVALID_INPUTunavailable_displayis nothideorshow_reason(details.field). -
400COD_WAIVER_NOTICE_TOO_LONGA fee waiver text is longer than 200 characters (
details.field,details.locale). -
403STORE_COMMERCE_TEST_GATEWAY_ONLYis_enabledis true on a development or transfer store. Those stores take payments through the test gateway only; save the settings withis_enabledfalse. -
404NOT_FOUNDThe market does not exist in this store.
-
400COD_WAIVER_NOTICE_PLACEHOLDER_INVALIDA
waiver_notice_waivedtext uses a placeholder, or awaiver_notice_remainingtext uses one other than{{.amount}}(details.field,details.locale). -
400STOREFRONT_LANGUAGE_NOT_ENABLEDA key of
waiver_notice_waivedorwaiver_notice_remainingis not a language enabled for the store (details.field,details.locale). -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get COD zone limits
Read the limits used when creating and editing COD zones.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
404MARKET_NOT_FOUNDNo market with this id exists in the store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List COD zones
List where cash on delivery applies in a market and what it costs there.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
404MARKET_NOT_FOUNDNo market with this id exists in the store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Create a COD zone
Add a zone with its own cash-on-delivery fee and limits.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
name
required
|
string |
A name merchants can recognize when managing the zone. |
description
|
string |
Optional note describing when this rule should be used. |
countries
|
array<string> |
Country codes from this market covered by the zone. Leave empty for the default zone. |
subdivisions
|
array<string> |
Subdivision codes from |
postal_codes
|
array<string> |
Optional postcodes this zone covers, for exactly one country in |
is_default
required
|
boolean |
Whether this zone covers market destinations not matched by a more specific zone; when true, countries, subdivisions and postal_codes must be empty. A market has exactly one default zone. |
is_enabled
required
|
boolean |
Whether checkout may offer cash on delivery when this zone matches. |
fee_type
required
|
string |
Use |
percent_value
|
string|null |
Percentage of discounted merchandise subtotal when |
fee_min_amounts
|
object |
Optional smallest fee per currency when |
fee_max_amounts
|
object |
Optional largest fee per currency when |
fee_amounts
|
object |
Positive decimal-string COD fees for every market currency when |
min_order_amounts
|
object |
Inclusive minimum discounted merchandise subtotal keyed by currency code; empty for no minimum. When set, provide a positive amount for every market currency using the same precision and maximum as fee_amounts. A minimum cannot exceed the corresponding maximum. |
max_order_amounts
|
object |
Inclusive maximum discounted merchandise subtotal keyed by currency code; empty for no maximum. When set, provide a positive amount for every market currency. Equal minimum and maximum values are allowed. |
waive_fee_over_amounts
|
object |
Subtotal at or above which the fee is waived, keyed by currency code; empty for no waiver. When set, provide a positive amount for every market currency. A waiver amount cannot exceed the corresponding maximum. |
tax_class_id
|
uuid|null |
A tax class assigned to this market. Its rate is applied to the resolved COD fee. |
tax_code
|
string |
The COD fee's tax code on invoices and tax reports, such as its SAC code in India. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. The request body is not valid JSON. -
400COD_ZONE_NAME_REQUIREDnameis empty. -
400COD_ZONE_NAME_TOO_LONGnameexceeds the configured limit. -
400COD_ZONE_DESCRIPTION_TOO_LONGdescriptionexceeds the configured limit. -
400ZONE_DEFAULT_NO_REGIONSA default zone cannot also select countries or subdivisions.
-
400COD_ZONE_POSTCODE_INVALIDAn entry in
postal_codesis not a postcode or a prefix ending in*. -
400COD_ZONE_POSTCODES_TOO_MANYpostal_codeslists more than 5,000 entries. -
400COD_ZONE_POSTCODES_ONE_COUNTRYA zone with
postal_codesmust list exactly one country and no subdivisions. -
400ZONE_COUNTRY_TAKENAnother COD zone already covers this country whole. The message names the zone.
-
400ZONE_SUBDIVISION_TAKENAnother COD zone already lists this subdivision. The message names the zone.
-
400COD_ZONE_POSTCODE_TAKENAnother COD zone for the same country already lists this postcode, or a prefix covering it. The message names the postcode and the zone.
-
400ZONE_NEEDS_REGIONA non-default zone must select at least one country or subdivision.
-
400ZONE_COUNTRY_INVALIDA selected country does not belong to this market.
-
400SUBDIVISION_INVALIDA subdivision is not in the subdivision reference list for its country (
details.country,details.field). -
400ZONE_SUBDIVISION_NOT_IN_COUNTRYA selected subdivision does not belong to one of the zone's selected countries.
-
400COD_FEE_TYPE_INVALIDfee_typeis notfree,fixed, orpercent. -
400COD_AMOUNT_REQUIREDA required amount map lacks a positive amount for a market currency (
details.field; the message names the currency). -
400COD_AMOUNT_CURRENCY_INVALIDAn amount uses a currency the market doesn't have (
details.field). -
400COD_AMOUNT_NEGATIVEAn optional amount is negative (
details.field). -
400COD_MIN_ABOVE_MAXA minimum order value is above the maximum for the same currency.
-
400COD_WAIVER_ABOVE_MAXA fee waiver amount is above the maximum order value for the same currency.
-
400CHECKOUT_FEE_PERCENT_RANGEThe COD percentage is missing, is not greater than 0 and at most 100, or has more than two decimal places.
-
400CHECKOUT_AMOUNT_TOO_LARGEAn amount exceeds 9999999999999999.9999.
-
400CHECKOUT_AMOUNT_TOO_PRECISEAn amount cannot be represented exactly at its currency's amount precision.
-
400TAX_CODE_TOO_LONGtax_codeexceeds the configured length limit. -
400TAX_CLASS_NOT_IN_MARKETThe selected tax class does not belong to this market.
-
404NOT_FOUNDThe market does not exist in this store.
-
400COD_ZONE_LIMIT_REACHEDThe market already has the maximum number of COD zones.
-
409COD_ZONE_NAME_DUPLICATEAnother COD zone in this market already uses this name.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get a COD zone
Read one zone and its complete fee configuration.
Use the returned values to populate an edit form or inspect the exact rule checkout will consider for this zone.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
zoneId
required
|
uuid |
COD zone ID. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
404NOT_FOUNDThe market or COD zone does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update a COD zone
Replace the editable definition of a COD zone.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
zoneId
required
|
uuid |
COD zone ID. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
name
required
|
string |
A name merchants can recognize when managing the zone. |
description
|
string |
Optional note describing when this rule should be used. |
countries
|
array<string> |
Country codes from this market covered by the zone. Leave empty for the default zone. |
subdivisions
|
array<string> |
Subdivision codes from |
postal_codes
|
array<string> |
Optional postcodes this zone covers, for exactly one country in |
is_default
required
|
boolean |
Whether this zone covers market destinations not matched by a more specific zone; when true, countries, subdivisions and postal_codes must be empty. A market has exactly one default zone. |
is_enabled
required
|
boolean |
Whether checkout may offer cash on delivery when this zone matches. |
fee_type
required
|
string |
Use |
percent_value
|
string|null |
Percentage of discounted merchandise subtotal when |
fee_min_amounts
|
object |
Optional smallest fee per currency when |
fee_max_amounts
|
object |
Optional largest fee per currency when |
fee_amounts
|
object |
Positive decimal-string COD fees for every market currency when |
min_order_amounts
|
object |
Inclusive minimum discounted merchandise subtotal keyed by currency code; empty for no minimum. When set, provide a positive amount for every market currency using the same precision and maximum as fee_amounts. A minimum cannot exceed the corresponding maximum. |
max_order_amounts
|
object |
Inclusive maximum discounted merchandise subtotal keyed by currency code; empty for no maximum. When set, provide a positive amount for every market currency. Equal minimum and maximum values are allowed. |
waive_fee_over_amounts
|
object |
Subtotal at or above which the fee is waived, keyed by currency code; empty for no waiver. When set, provide a positive amount for every market currency. A waiver amount cannot exceed the corresponding maximum. |
tax_class_id
|
uuid|null |
A tax class assigned to this market. Its rate is applied to the resolved COD fee. |
tax_code
|
string |
The COD fee's tax code on invoices and tax reports, such as its SAC code in India. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. The request body is not valid JSON. -
400COD_ZONE_NAME_REQUIREDnameis empty. -
400COD_ZONE_NAME_TOO_LONGnameexceeds the configured limit. -
400COD_ZONE_DESCRIPTION_TOO_LONGdescriptionexceeds the configured limit. -
400ZONE_DEFAULT_NO_REGIONSA default zone cannot also select countries or subdivisions.
-
400COD_ZONE_POSTCODE_INVALIDAn entry in
postal_codesis not a postcode or a prefix ending in*. -
400COD_ZONE_POSTCODES_TOO_MANYpostal_codeslists more than 5,000 entries. -
400COD_ZONE_POSTCODES_ONE_COUNTRYA zone with
postal_codesmust list exactly one country and no subdivisions. -
400ZONE_COUNTRY_TAKENAnother COD zone already covers this country whole. The message names the zone.
-
400ZONE_SUBDIVISION_TAKENAnother COD zone already lists this subdivision. The message names the zone.
-
400COD_ZONE_POSTCODE_TAKENAnother COD zone for the same country already lists this postcode, or a prefix covering it. The message names the postcode and the zone.
-
400ZONE_NEEDS_REGIONA non-default zone must select at least one country or subdivision.
-
400ZONE_COUNTRY_INVALIDA selected country does not belong to this market.
-
400SUBDIVISION_INVALIDA subdivision is not in the subdivision reference list for its country (
details.country,details.field). -
400ZONE_SUBDIVISION_NOT_IN_COUNTRYA selected subdivision does not belong to one of the zone's selected countries.
-
400COD_FEE_TYPE_INVALIDfee_typeis notfree,fixed, orpercent. -
400COD_AMOUNT_REQUIREDA required amount map lacks a positive amount for a market currency (
details.field; the message names the currency). -
400COD_AMOUNT_CURRENCY_INVALIDAn amount uses a currency the market doesn't have (
details.field). -
400COD_AMOUNT_NEGATIVEAn optional amount is negative (
details.field). -
400COD_MIN_ABOVE_MAXA minimum order value is above the maximum for the same currency.
-
400COD_WAIVER_ABOVE_MAXA fee waiver amount is above the maximum order value for the same currency.
-
400CHECKOUT_FEE_PERCENT_RANGEThe COD percentage is missing, is not greater than 0 and at most 100, or has more than two decimal places.
-
400CHECKOUT_AMOUNT_TOO_LARGEAn amount exceeds 9999999999999999.9999.
-
400CHECKOUT_AMOUNT_TOO_PRECISEAn amount cannot be represented exactly at its currency's amount precision.
-
400TAX_CODE_TOO_LONGtax_codeexceeds the configured length limit. -
400TAX_CLASS_NOT_IN_MARKETThe selected tax class does not belong to this market.
-
404NOT_FOUNDThe market does not exist in this store.
-
400COD_ZONE_DEFAULT_UNSET_LOCKEDThe default zone cannot stop being the default; make another zone the default instead.
-
409COD_ZONE_NAME_DUPLICATEAnother COD zone in this market already uses this name.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Delete a COD zone
Remove a zone from the market.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
zoneId
required
|
uuid |
COD zone ID. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
400COD_ZONE_DEFAULT_DELETE_LOCKEDThe default zone cannot be deleted; make another zone the default first.
-
404NOT_FOUNDThe market or COD zone does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get blocked COD postcodes
Read the postcodes where the market never offers cash on delivery.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Query parameters
| Name | Type | Description |
|---|---|---|
country_code
required
|
string |
ISO 3166-1 alpha-2 code of one of the market's countries. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
400COD_BLOCKED_POSTCODES_COUNTRY_NOT_IN_MARKETcountry_codeis not one of the market's countries. -
404NOT_FOUNDThe market does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Replace blocked COD postcodes
Replace one country's 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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
country_code
required
|
string |
ISO 3166-1 alpha-2 code of one of the market's countries. |
postal_codes
required
|
array<string> |
The country's blocked postcodes and prefixes. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. The body is not valid JSON or a field has the wrong type. -
400COD_BLOCKED_POSTCODE_INVALIDAn entry is not a postcode or a prefix ending in
*; the message names it. -
400COD_BLOCKED_POSTCODES_TOO_MANYThe market would hold more than
max_entriesblocked postcodes. -
400COD_BLOCKED_POSTCODES_COUNTRY_NOT_IN_MARKETcountry_codeis not one of the market's countries. -
404NOT_FOUNDThe market does not exist in this store.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Check COD for an address
Find out whether cash on delivery is offered at an address, and why.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
country_code
required
|
string |
ISO 3166-1 alpha-2 country code of the address. |
subdivision
|
string |
The address's state or province, as a code (MH or IN-MH) or name. |
postal_code
|
string |
The address's postcode. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. The body is not valid JSON or a field has the wrong type. -
400INVALID_INPUTcountry_codeis missing or not a country code. -
404NOT_FOUNDThe market does not exist in this store.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List COD rules
Read product eligibility rules and the choices supported by the rule editor.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
404NOT_FOUNDMarket or rule not found in this store, or a
customer_groupvalue names no customer group in it. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Create a COD rule
Add an allow or block condition for cash on delivery.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
priority
required
|
integer |
Priority from 1 through 10; lower is evaluated first. Equal priorities are evaluated from oldest to newest. |
action
required
|
string |
Use allow or block. |
field
required
|
string |
A field from the list response rule_fields catalog. |
operator
required
|
string |
An operator supported by the selected field. For title, use contains or not_contains. |
value
|
string|null |
Condition value required by the selected operator. |
include_subcategories
|
boolean |
Include descendant categories for a category condition. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. Request body must be a JSON object. -
404NOT_FOUNDMarket or rule not found in this store, or a
customer_groupvalue names no customer group in it. -
400COD_RULE_ACTION_INVALIDactionis not allow or block. -
400COD_RULE_PRIORITY_RANGEpriorityis outside 1 through 10; the message states the range. -
400COLLECTION_RULE_FIELD_INVALIDRule field is not valid.
-
400COLLECTION_RULE_OPERATOR_INVALIDRule operator is not valid for the selected field.
-
400COLLECTION_RULE_VALUE_REQUIREDThis rule operator requires a value.
-
400COLLECTION_RULE_VALUE_NOT_ALLOWEDis_empty,is_not_empty,is_trueandis_falsetake no value. -
400COLLECTION_RULE_CURRENCY_INVALIDcurrencyis set on a rule other thanpriceorregular_price, or is not one of the store's currencies. -
400COLLECTION_RULES_CONTRADICTORYUnder
match_typeall, the rule can never match a product together with one of the {{singular_lower}}'s other rules.error.details.rulesgives their 1-based positions; the message names them. -
400COLLECTION_RULE_SUBCATEGORIES_NOT_ALLOWEDinclude_subcategoriesis only valid on a category rule withequalsornot_equals. -
400COLLECTION_RULE_CATEGORY_ID_INVALIDCategory value is not a positive integer ID.
-
400COLLECTION_RULE_VENDOR_ID_INVALIDVendor value is not a positive integer ID.
-
400COLLECTION_RULE_BRAND_ID_INVALIDBrand value is not a positive integer ID.
-
400COLLECTION_RULE_TITLE_TOO_LONGTitle rule value exceeds the contract max length.
-
400COLLECTION_RULE_TAG_NOT_FOUNDNo tag in this store has the given ID or slug; the message names the value.
-
400COLLECTION_RULE_CATEGORY_NOT_FOUNDReferenced category does not exist in this store.
-
400COLLECTION_RULE_VENDOR_NOT_FOUNDReferenced vendor does not exist in this store.
-
400COLLECTION_RULE_BRAND_NOT_FOUNDReferenced brand does not exist in this store.
-
400COD_RULE_LIMIT_REACHEDThe market already has the maximum number of COD rules.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update a COD rule
Replace a saved condition and its priority.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
ruleId
required
|
uuid |
COD rule id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
priority
required
|
integer |
Priority from 1 through 10; lower is evaluated first. Equal priorities are evaluated from oldest to newest. |
action
required
|
string |
Use allow or block. |
field
required
|
string |
A field from the list response rule_fields catalog. |
operator
required
|
string |
An operator supported by the selected field. For title, use contains or not_contains. |
value
|
string|null |
Condition value required by the selected operator. |
include_subcategories
|
boolean |
Include descendant categories for a category condition. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. Request body must be a JSON object. -
404NOT_FOUNDMarket or rule not found in this store, or a
customer_groupvalue names no customer group in it. -
400COD_RULE_ACTION_INVALIDactionis not allow or block. -
400COD_RULE_PRIORITY_RANGEpriorityis outside 1 through 10; the message states the range. -
400COLLECTION_RULE_FIELD_INVALIDRule field is not valid.
-
400COLLECTION_RULE_OPERATOR_INVALIDRule operator is not valid for the selected field.
-
400COLLECTION_RULE_VALUE_REQUIREDThis rule operator requires a value.
-
400COLLECTION_RULE_VALUE_NOT_ALLOWEDis_empty,is_not_empty,is_trueandis_falsetake no value. -
400COLLECTION_RULE_CURRENCY_INVALIDcurrencyis set on a rule other thanpriceorregular_price, or is not one of the store's currencies. -
400COLLECTION_RULES_CONTRADICTORYUnder
match_typeall, the rule can never match a product together with one of the {{singular_lower}}'s other rules.error.details.rulesgives their 1-based positions; the message names them. -
400COLLECTION_RULE_SUBCATEGORIES_NOT_ALLOWEDinclude_subcategoriesis only valid on a category rule withequalsornot_equals. -
400COLLECTION_RULE_CATEGORY_ID_INVALIDCategory value is not a positive integer ID.
-
400COLLECTION_RULE_VENDOR_ID_INVALIDVendor value is not a positive integer ID.
-
400COLLECTION_RULE_BRAND_ID_INVALIDBrand value is not a positive integer ID.
-
400COLLECTION_RULE_TITLE_TOO_LONGTitle rule value exceeds the contract max length.
-
400COLLECTION_RULE_TAG_NOT_FOUNDNo tag in this store has the given ID or slug; the message names the value.
-
400COLLECTION_RULE_CATEGORY_NOT_FOUNDReferenced category does not exist in this store.
-
400COLLECTION_RULE_VENDOR_NOT_FOUNDReferenced vendor does not exist in this store.
-
400COLLECTION_RULE_BRAND_NOT_FOUNDReferenced brand does not exist in this store.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Delete a COD rule
Remove one cash-on-delivery condition.
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.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
ruleId
required
|
uuid |
COD rule id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
404NOT_FOUNDMarket or rule not found in this store, or a
customer_groupvalue names no customer group in it. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
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
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.
Payload fields
| Field | Type | Description |
|---|---|---|
cod_settings.id |
string |
Always present |
cod_settings.market_id |
string |
Selectable in the Payload builder |
cod_settings.is_enabled |
boolean |
Selectable in the Payload builder |
cod_settings.unavailable_display |
string |
Selectable in the Payload builder |
cod_settings.waiver_notice_enabled |
boolean |
Selectable in the Payload builder |
cod_settings.waiver_notice_waived |
object |
Selectable in the Payload builder |
cod_settings.waiver_notice_remaining |
object |
Selectable in the Payload builder |
cod_settings.blocked_postcode_count |
integer |
Selectable in the Payload builder |
cod_settings.created_at |
string |
Selectable in the Payload builder |
cod_settings.updated_at |
string |
Selectable in the Payload builder |
Cash on delivery zone created
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.
Payload fields
| Field | Type | Description |
|---|---|---|
cod_zone.id |
string |
Always present |
cod_zone.market_id |
string |
Selectable in the Payload builder |
cod_zone.name |
string |
Selectable in the Payload builder |
cod_zone.description |
string |
Selectable in the Payload builder |
cod_zone.countries |
array |
Selectable in the Payload builder |
cod_zone.subdivisions |
array |
Selectable in the Payload builder |
cod_zone.subdivisions_display |
array |
Selectable in the Payload builder |
cod_zone.postal_codes |
array |
Selectable in the Payload builder |
cod_zone.is_default |
boolean |
Selectable in the Payload builder |
cod_zone.priority |
integer |
Selectable in the Payload builder |
cod_zone.is_enabled |
boolean |
Selectable in the Payload builder |
cod_zone.fee_type |
string |
Selectable in the Payload builder |
cod_zone.percent_value |
string | null |
Selectable in the Payload builder |
cod_zone.fee_amounts |
object |
Selectable in the Payload builder |
cod_zone.min_order_amounts |
object |
Selectable in the Payload builder |
cod_zone.max_order_amounts |
object |
Selectable in the Payload builder |
cod_zone.waive_fee_over_amounts |
object |
Selectable in the Payload builder |
cod_zone.fee_min_amounts |
object |
Selectable in the Payload builder |
cod_zone.fee_max_amounts |
object |
Selectable in the Payload builder |
cod_zone.tax_class_id |
string | null |
Selectable in the Payload builder |
cod_zone.tax_code |
string |
Selectable in the Payload builder |
cod_zone.created_at |
string |
Selectable in the Payload builder |
cod_zone.updated_at |
string |
Selectable in the Payload builder |
Cash on delivery zone updated
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.
Payload fields
| Field | Type | Description |
|---|---|---|
cod_zone.id |
string |
Always present |
cod_zone.market_id |
string |
Selectable in the Payload builder |
cod_zone.name |
string |
Selectable in the Payload builder |
cod_zone.description |
string |
Selectable in the Payload builder |
cod_zone.countries |
array |
Selectable in the Payload builder |
cod_zone.subdivisions |
array |
Selectable in the Payload builder |
cod_zone.subdivisions_display |
array |
Selectable in the Payload builder |
cod_zone.postal_codes |
array |
Selectable in the Payload builder |
cod_zone.is_default |
boolean |
Selectable in the Payload builder |
cod_zone.priority |
integer |
Selectable in the Payload builder |
cod_zone.is_enabled |
boolean |
Selectable in the Payload builder |
cod_zone.fee_type |
string |
Selectable in the Payload builder |
cod_zone.percent_value |
string | null |
Selectable in the Payload builder |
cod_zone.fee_amounts |
object |
Selectable in the Payload builder |
cod_zone.min_order_amounts |
object |
Selectable in the Payload builder |
cod_zone.max_order_amounts |
object |
Selectable in the Payload builder |
cod_zone.waive_fee_over_amounts |
object |
Selectable in the Payload builder |
cod_zone.fee_min_amounts |
object |
Selectable in the Payload builder |
cod_zone.fee_max_amounts |
object |
Selectable in the Payload builder |
cod_zone.tax_class_id |
string | null |
Selectable in the Payload builder |
cod_zone.tax_code |
string |
Selectable in the Payload builder |
cod_zone.created_at |
string |
Selectable in the Payload builder |
cod_zone.updated_at |
string |
Selectable in the Payload builder |
Cash on delivery zone deleted
Fired when a cash-on-delivery zone is deleted.
Payload fields
| Field | Type | Description |
|---|---|---|
cod_zone.id |
string |
Always present |
cod_zone.market_id |
string |
Selectable in the Payload builder |
cod_zone.name |
string |
Selectable in the Payload builder |