Skip to content
On this page
Reference Reference 2 min read Updated Sep 28, 2026

Checkout rule actions reference

In short

A rule can hide a payment method, show an error, change the cart or check with your API. When its conditions match, all its actions run, but only if the Rules Executor block is in your checkout.

✓ Applies to

  • Deluxe plan only (checkout rules aren't included in Advanced)
  • Rules under Rules in the app, run by the Rules Executor block in Shopify Plus checkout

✕ Doesn't apply to

  • Custom Block visibility. Blocks use conditions but have no actions
Conditions decide when. Actions decide what happens.

Rule settings

SettingWhat it doesDefault
TitleYour name for it, up to 30 characters. Buyers don’t see itEmpty
StatusOnly Active rules runDraft
Condition Match TypeAll conditions must pass, or Any oneAny
ConditionsWhen it runs. None = always. ListNone
ActionsWhat it doesNone

The actions

ActionBuyer seesNeeds block permission
Hide payment methodA payment method disappearsNo
Show Error MessageAn error, and can’t continueYes
Modify Cart: Add ProductA product addedNo
Modify Cart: Set Product QuantityA quantity changedNo
Validate Via APINothing, unless your API returns errors or actionsYes, for errors

“Block permission” means you allowed the Rules Executor to block checkout progress in the checkout editor. How.

Hide payment method

  • Payment Method name contains: text to match. Not case-sensitive.
  • One method per action. Add more actions for more methods.

Show Error Message

  • Message: plain text shown to the buyer.
  • Position: Top of the checkout, Shipping Address 1 or 2, First Name, Last Name, Email or Phone.
  • Email or Phone message not showing by the field? Use Top of the checkout. It still blocks. Guide.

Modify Cart

Add Product (guide):

FieldWhat it doesDefault
Product VariantWhat to add. Several picked = first oneEmpty
QuantityHow many. Empty adds 1Empty
Prevent adding duplicate productsSkip if already in cartOn
Limit total quantity in cartTurns on a capOff
Maximum quantity allowedOnly add while below thisEmpty
!

With Prevent adding duplicate products off, the product is added every time the rule runs. Only turn it off with a quantity limit.

Set Product Quantity: pick a Product already in the cart and a Quantity. Empty or 0 sets 1.

Validate Via API

  • API URL: your HTTPS endpoint. Gets a POST with JSON.
  • Input Query: fields to send, like { deliveryAddress { zip } }. Empty sends everything.
  • API Headers: shown but not sent yet.
  • Your reply needs an actions array. Items in errors block checkout.
  • Replies are cached for 5 minutes. Full contract.

Good to know

  • Rules load when checkout opens. Only 10 rules are read (drafts count), then drafts are dropped.
  • Rules re-check whenever the checkout changes, like cart, address or payment.
  • Actions from every matching rule run together.

Frequently asked

Can one rule have several actions? +

Yes. Click Add New Action to add more. They all run when the rule's conditions match.

What happens if two rules match at the same time? +

Both rules' actions run. Error messages from both are shown, and payment methods targeted by either rule are hidden.

What if a rule has no conditions? +

It always applies, so its actions run on every checkout.

Do draft rules run? +

No. Only rules with Status set to Active are loaded by the Rules Executor.

Related guides

Still stuck? Open the app and use Support to chat with the team, or contact us. Don't have the app yet? Install Checkout Ninja.