12 min read Cash on Delivery
Shopify COD Rules: Country, ZIP Code, Cart Value and Tags
Set Shopify COD visibility by country, postal code, cart value and customer tags, then test each rule against real delivery data.
COD rules in Shopify let you show or hide cash on delivery based on country, postal code, cart value, customer details and other checkout conditions. Start with one measured delivery problem, build the narrowest rule that addresses it, then test both a matching and a non-matching checkout.
Shopify treats cash on delivery as a manual payment method. Its Payment Customization Function API can hide payment methods by cart value or country, while an app can expose those controls as a merchant-facing rule builder.
What Shopify COD rules can control
The current app code supports conditions for order value, discount state, weight, customer tags, customer email, prior order count, registration status, gift cards, countries, regions, phone prefixes, products, collections, dates and postal codes. Each condition can be configured to show or hide COD.
Free and Basic allow one rule. Standard and Premium allow up to 10 rules in the app interface.
An older version of this article said those higher plans allowed unlimited rules. That was not consistent with the current panel limit and has been corrected.
These rules change whether COD appears at checkout. They do not change Shopify's underlying order state: manual-payment orders remain unpaid until payment is received and the merchant marks them paid.
Choose a rule from your own order data
Do not start with a generic rule such as hiding COD for an entire country. Export recent COD orders and group refused or returned deliveries by postal code, cart value and customer history. A pattern should determine the condition, not a guess about a market.
Treat any small sample as a test signal. If a postal code has only a few COD orders, a broad exclusion can block good customers on weak evidence. Prefer a reversible rule and review the result after enough new orders have passed through checkout.
A useful first rule answers one question: which observed condition separates failed COD deliveries from successful ones? If the answer is unclear, collect more delivery outcomes before restricting checkout.
Rule examples by country, postal code and cart value
Country
Use a country condition when COD is operationally available only in selected markets. Test one address inside the allowed country and one outside it. Country rules are too broad when the delivery problem exists only in a few regions.
Postal code
Use postal-code conditions when refused deliveries or courier coverage problems are concentrated locally. The app supports both exclusion and allow-only behavior. Keep a record of the delivery evidence behind every code so the list can be reviewed later.
Cart value
Use an order-value condition when the cost of a failed high-value delivery is materially different from ordinary orders. Set the threshold from your own product, shipping and return costs. Do not copy a threshold from another store.
Shopify's API documentation lists hiding a payment method above or below a cart total and hiding one by customer country as supported payment-customization use cases. Postal-code and customer-history controls depend on the data and rule interface provided by the app.
Use customer tags without locking out good buyers
Customer tags can create a narrow exception for a known group. For example, a store can keep COD visible for returning customers with a verified delivery history while applying a broader restriction to new buyers.
Tags are only as reliable as the process that assigns them. Document who applies a trusted or restricted tag, what evidence is required and when it expires. Otherwise an old tag can outlive the behavior it was meant to represent.
The rule builder also supports customer email, registration status and order count. These conditions can be more precise than a country-wide restriction, but they still require checkout tests for signed-in, signed-out and returning customers.
Test the rule before relying on it
Create a short test matrix with at least one checkout that should show COD and one that should hide it. Add boundary cases for the exact cart threshold, included and excluded postal codes, signed-in status and any customer tag used by the rule.
Run the tests in the storefront checkout, not only in the app preview. Shopify documents that Payment Customization Functions run in checkout and are not supported on every surface, including POS and Admin-created draft orders.
After launch, compare COD availability, completed COD orders and refused deliveries for the affected segment. A rule that reduces failed deliveries but suppresses substantially more valid orders needs to be narrowed or removed.
Review limits and overlapping conditions
One focused rule is easier to audit than several overlapping rules. On Free and Basic, combine only the conditions needed for the highest-cost problem because the interface allows one rule. Standard and Premium provide up to 10 rules, which lets merchants separate location, order-value and customer rules.
Test the result whenever show and hide conditions overlap. Do not assume that the condition with the more restrictive wording wins. Use checkout cases that match both conditions and record the observed outcome before sending real traffic through the rule.
OTP verification is a separate control. Visibility rules decide whether COD is offered; OTP checks a phone number after the customer reaches the COD flow. See the OTP verification guide for that second step.
COD rule checklist
- Name the delivery or fraud problem the rule is meant to reduce.
- Use store order data to choose the condition and threshold.
- Prefer postal-code or customer-level conditions over a broad country ban when the evidence is local.
- Test matching, non-matching and boundary checkouts.
- Record the rule owner, evidence date and review date.
- Compare completed orders and failed deliveries after launch.
- Remove or narrow rules that no longer match current delivery data.
FAQ
Can Shopify hide cash on delivery by country?
Yes. Shopify's Payment Customization Function API supports hiding payment methods by customer country. A COD rules app can provide an interface for configuring and maintaining that condition.
Can I hide COD for selected postal codes?
Yes, the current app code supports postal-code conditions in both exclude and allow-only forms. Test representative addresses because postal-code formatting differs by market.
Can I set a maximum cart value for COD?
Yes. Use an order-value condition to hide COD above or below a threshold. Set the threshold from your own failed-delivery cost and margin data, not a universal benchmark.
How many COD rules can I create?
The current app interface allows one rule on Free and Basic, and up to 10 rules on Standard and Premium. The Shopify platform separately allows up to 25 active payment customization functions per store.
Are COD rules the same as OTP verification?
No. COD rules decide whether the payment method is visible. OTP verification confirms a phone number for a customer who has reached the COD flow.
Final thoughts
A useful COD rule is narrow, measurable and easy to reverse. Progus COD Form & OTP SMS provides the rule builder described here, but the decision to restrict checkout should come from the store's own delivery data.
Add a 1-click COD order form to Shopify. About COD Form ›