How can I tag orders by zip code using Shopify Flow?

Topic summary

Goal: Automatically tag orders by matching the shipping ZIP/postal code against a large list (~900) in Shopify Flow without entering codes one-by-one.

Key points and guidance:

  • Use the condition operator “is at least one of” on the shipping ZIP. “Includes” checks if the field contains your string, not vice versa.
  • Alternative: store ZIPs in a shop metafield and check if the metafield includes the order’s ZIP. Note: metafield “values” must be set via a third‑party app (e.g., Metafields Guru); Shopify’s UI doesn’t support this yet.

Workarounds shared:

  • Paste a JSON-like array of ZIPs, e.g., [“99997”, “99998”, “99999”], into the ZIP field while using “equals” or “includes,” then switch to “is at least one of.” Flow converts the list into discrete entries.
  • For Canadian postal codes: use “starts with” for prefixes (enter multiple strings), or use full-code lists with “is at least one of,” depending on desired outputs.

Outcomes:

  • Mixed results: one user switched off Flow, using a webhook + GraphQL script to tag orders, citing reliability and documentation issues.
  • Discussion remains open; screenshots illustrate Flow and metafield setup.
Summarized with AI on December 17. AI used: gpt-5.

Includes will match the string you provide in the zip field, not the other way around. I think you want the operator to be “is at least one of”. With that you can provide a list like tags.

Alternatively, you could store the zips in a shop metafield and then check is the shop metafield includes the new zip.