Auto-Approve signals and operators (Pro)
Overview
An Auto-Approve rule decides by its conditions. Each condition takes one signal, a fact about the request or its order, compares it with an operator and checks it against a value you enter. You build the conditions in Sales → Withdrawals → Auto-Approval Rules, on the rule page, section Rule Conditions. Auto-Approve is part of the Pro bundle. See What Pro adds.
How rules are picked and what they do: Auto-Approve: how it works. The steps: Auto-Approve: creating a rule.
Signals and operators
The signals appear in the builder in this order. The Operators column names an operator set from the next table. The builder offers only the operators of that set.
| Signal | What it checks | Value you enter | Operators |
|---|---|---|---|
| Total refund amount | The refund total of the request. | An amount | Amount |
| Shipping refund | The shipping part of the refund. | An amount | Amount |
| Refund % of order | The refund total as a percentage of the order grand total. | A percentage, for example 50 | Amount |
| Order grand total | The grand total of the order. | An amount | Amount |
| Partial withdrawal | Whether the request covers only part of the order. | Yes or No | Yes/No |
| Withdrawn line count | How many item lines the request has. | A whole number | Count |
| Total withdrawn qty | The quantities of all withdrawn lines added up. | A number | Count |
| Largest single-line refund | The highest refund of one line in the request. | An amount | Amount |
| Withdrawal reason code (same on every line) | The reason the customer picked. It has a value only when every line has the same reason. | The reason's Code from Return Reasons | Choice or empty |
| Customer wrote a reason comment | Whether the customer typed a comment on at least one line. | Yes or No | Yes/No |
| Customer group (at time of order) | The customer group the order was placed with. Guest orders have the guest group. | The customer group ID, a number (for example 0 for NOT LOGGED IN, 1 for General). Find it in the ID column of Customers → Customer Groups. For is one of, type each ID and press Enter. | Choice |
| Order status | The order's status when the rule runs. | The status code, for example complete | Choice |
| Payment method | The payment method of the order. | The method's code, for example checkmo | Choice |
| Same shipping and billing country | Whether both addresses of the order are in the same country. | Yes or No | Yes/No |
| Product attribute | A product attribute of each withdrawn item. Checked item by item. | The attribute code, then the value or values | Choice or empty |
| Product category | The categories of each withdrawn item's product. Checked item by item. | One or more categories, picked from your category tree | Category |
| Customer's earlier completed orders | How many other orders of this customer are complete. The order of this request is not counted. | A whole number | Count |
Operator sets
| Set | Operators the builder offers |
|---|---|
| Amount | is less than (<), is at most (≤), is greater than (>), is at least (≥), is between |
| Count | is less than (<), is at most (≤), is greater than (>), is at least (≥), is between, equals, does not equal |
| Choice | equals, does not equal, is one of, is not one of |
| Choice or empty | equals, does not equal, is one of, is not one of, is set, is not set |
| Yes/No | equals |
| Category | is one of, is not one of, is set, is not set |
Amounts are compared in the currency of each order. 50 means EUR 50 for an order in EUR and JPY 50 for an order in
JPY. is between includes both ends of the range.
How conditions combine
- A rule has at least one condition. The top group matches ALL or ANY of its conditions.
- You can add a nested group inside the top group, with its own ALL or ANY. A new nested group starts with ANY. A nested group holds conditions only, not further groups.
- Product attribute and Product category have an Applies to choice. All items matches only when every withdrawn item meets the condition. Any item matches when at least one does. A new condition starts with All items.
- Product category with is one of matches when the product is in at least one of the picked categories.
When a signal has no value
Some signals have no value for some requests:
- Customer's earlier completed orders on a guest order.
- Same shipping and billing country on an order without a shipping address.
- Withdrawal reason code (same on every line) when the lines have different reasons or none.
- Product attribute when the product doesn't have that attribute, and Product category when the product is in no category.
- Refund % of order when the order grand total is zero.
Then no operator matches, including does not equal and is not one of. Only a signal whose operator set
offers is set and is not set can test for a missing value: is not set matches and is set doesn't.
The Count, Yes/No and Amount sets have no such operator, so a rule on those signals never matches a missing value. For example, "Customer's earlier completed orders equals 0" never matches a
guest order.
For Product attribute the value is the one stored on the product. For a dropdown attribute that is the option's internal number, not its label.
What's next
- Auto-Approve: creating a rule: put these conditions into a rule.
- Auto-Approve: dry-run mode and Auto-Approval History: check what your rules would decide before they act.
- Auto-Approve is not deciding anything: when no rule seems to match.