Prime MOQ

Finding a Rule's ID for Shopify Flow

Flow actions target a rule by its ID rather than its name. Here is where to find that ID, and why the name would not work.

Prime MOQ Team

Prime MOQ Team

Updated ยท 2 min read

Short answer

Every saved rule has a unique ID shown in two places on its edit page, a line under the page title and a Rule ID card in the sidebar, each with a copy button. You need it when building a Flow action such as Set a rule limit, Toggle rule or Reset repurchase counter, because those actions look a rule up by ID and never by name.

  • The ID only exists once a rule has been saved at least once.
  • It is available on every plan, and is not a Pro feature.
  • The ID never changes, even if you rename the rule.
  • Two rules are allowed to share a name, which is why a name cannot identify one.

Why an ID and not a name

Rule names are not unique. Nothing stops you calling two rules "Wholesale minimum", and for a human reading the Rules list that is often the sensible thing to do, because they cover different collections.

A Flow action that matched on that name would have to pick one, and it would pick silently. Targeting by ID removes the guess: either the action changes the rule you meant, or it fails visibly with an error you can see in the Flow run log.

Where to find it

Open any saved rule. The ID appears twice:

  • A Rule ID line with a copy icon, just under the page header.
  • A Rule ID card lower in the sidebar, with the same value and its own copy button.

Either copy button puts it on your clipboard and confirms with a toast.

Use it in a Flow action

Open the rule you want to target and copy its ID.

In Shopify Flow's editor, add the action, one of Set a rule limit, Toggle rule or Reset repurchase counter.

Paste the ID into the action's Rule field.

If you imported a template, the same step applies. Templates arrive with a placeholder in that field, described in Ready-made workflow templates.

Common mistakes

  • Looking for the ID on an unsaved rule. It does not exist until the rule has been saved once.
  • Typing the rule's name instead. Flow actions match by ID only.
  • Assuming a rename breaks the workflow. It does not. The ID is unchanged by a rename, so an existing workflow keeps working.
  • Copying from the wrong rule. Two similarly named rules are exactly the situation the ID exists to disambiguate, so check the page you are copying from. A duplicated rule gets its own new ID, covered in Edit, duplicate and delete rules.

Frequently asked questions

Is the Rule ID the same as an order or API reference?

No. It is specific to the rule, a unique identifier for that rule inside Prime MOQ, and it does not correspond to anything in Shopify's own order or product numbering.

Do I need Pro to see or copy a Rule ID?

No. It is available on every plan and on every rule type, because reading an identifier is not something worth gating.

What happens if I paste the wrong rule's ID into a Flow action?

The action targets that other rule instead, and it will succeed, because the ID is valid. Check which rule you copied from before saving the workflow.

Does duplicating a rule copy its ID as well?

No. A duplicate is a new rule and gets an ID of its own, so a workflow pointed at the original keeps affecting the original and never follows the copy.

Best for: Anyone building a Shopify Flow workflow that sets, toggles or resets a specific Prime MOQ rule.

Applies to: All plans, All rule types

Did this answer your question?

Related articles

Still stuck?

Tell us what you are trying to set up and we will reply within 24 hours.

Contact support

We use one cookie to remember this choice, and Google Analytics only if you say yes. Nothing analytics related loads until you do. Read the cookie policy.