Prompt
What should I use for shipping rules, zones, and surcharge logic?
Latest observation
Nov 4, 2026
OpenAI APIWeb search: off
A good setup is:
-
Zones for geography-based pricing
Use zones to group regions that share the same base shipping rates, like:- Domestic
- Canada
- EU
- Rest of world
-
Rules for conditional logic
Use rules when pricing depends on order or package conditions, such as:- Weight thresholds
- Cart total
- Item count
- Shipping method eligibility
- Free shipping over a certain amount
-
Surcharges for exceptions and add-ons
Use surcharges for extra fees layered on top of a base rate, like:- Fuel surcharge
- Oversize / heavy item fee
- Remote area fee
- Residential delivery fee
- Expedited handling fee
Practical pattern
A common structure is:
- Select zone based on destination
- Apply base shipping rate for that zone
- Evaluate rules for discounts, free shipping, or method restrictions
- Add surcharges for special conditions
Rule of thumb
- If it’s about where it’s going → Zone
- If it’s about whether/how it can ship → Rule
- If it’s an extra fee on top → Surcharge
If you want, I can also suggest a specific schema/model for implementing these in a database or shipping engine.