How can I tag orders using a list of ZIP codes in Flow?

Topic summary

A user needs to tag Shopify orders based on a list of UK postcodes (ZIP codes) for shipping surcharges to regions like Scottish Highlands, Isle of Wight, and offshore islands. They want to know if Flow supports wildcards or special formatting to handle multiple postcodes efficiently.

Current challenges:

  • The “is any of” operator in Flow requires exact matches
  • This doesn’t work with ZIP+4 formats (e.g., 71821-1911), where customers enter extended codes
  • No wildcard or “starts with” functionality is available in Flow’s standard conditions

Suggested workarounds:

  • Use a shop metafield to store the postcode list and reference it with the “is any of” operator
  • Consider exact matching if ZIP+4 variations aren’t a concern

Status: The issue remains unresolved, with no clear solution for handling partial postcode matching or ZIP+4 formats in Flow. An attached image shows the extensive list of postcodes requiring different surcharge rules.

Summarized with AI on November 10. AI used: claude-sonnet-4-5-20250929.

I have a list of Post/Zip codes which I want to use to Tag an order with but is there a way to just have them all in a list with maybe some wildcard? I’m not sure if I can use formatting in the fields?

Scottish Highlands & Isle of Wight: Tariff Charge plus £6.00 (Postcodes detailed below)> 24 Hour Service; AB10-25, AB31-33, AB39, AB41, AB51-52, IV1-20, IV30-32, IV36, IV63, PH15-26, PA21-33, FK17-21, PO30-41> 48/72 Hour Service AB30, AB33-36, AB37-38. AB42-45, AB53-56, IV21-28, IV40, IV52-54, PA34-40, PH30-41, PH49-50, KW1-14, PA80.> > Scottish Offshore Islands 48/72 Hour Service: Tariff Charge plus £12.00 (Postcodes detailed below)> 48/72 Hour Service: HS1-9, IV41-51, IV55-56, KA27-28, KW15-17, PA20, PA41-49, PA60-78, PH42-44, ZE1-3.> > Channel Isles & Isle of Man 48 Hour Service: Tariff Charge Plus £16.00, for parcels up to 5kg + £2.50 per kilo thereafter. postcodes detailed) GY1-8, IM1-9, JE1-4.> > Alderney, Herm & Sark 72hr Service: Tariff Charge plus £35.00, for parcels up to 5kg + £2.50 per kilo thereafter. postcodes detailed) GY9-10.

1 Like

If you need to use “starts with” then no. If an exact match works, then you could put them in a shop metafield or you could use the operator “is any of” where you can enter them like tags

1 Like

Hey @paul_n the problem is with zip codes that have the zip+4. I have a list of 70 zip codes that if on checkout, should get an order tag. So I can do the “is any of” rule except that rule won’t read zip+4 codes. For example 81721-2911.

If you do “is any of” and a customer puts a zip+4, then the rule won’t work. Know of a workaround?