Skip to main content
A rule applies defined changes to each document that meets all of its conditions. For example, one rule can assign the Software account to incoming invoices from Slack and Notion, mark them as subscriptions, and add the tag “SaaS”. A rule has two parts:
  • When: The conditions a document must meet.
  • Then: The changes applied to a matching document.
Only admins can create and edit rules. Members can view and open every rule but cannot change them.

Create a rule

1

Open Rules

Select Rules in the navigation, then select Add new.
2

Enter a name

Under Rule name, describe the purpose of the rule, such as “Categorize software subscriptions”. The name appears in the rule list and under Activity.
3

Choose the direction

Under When, set Direction to Incoming for documents received from suppliers or Outgoing for documents sent to customers. Each rule applies to one direction.
4

Add conditions

Select Add condition and choose a field, such as Supplier or Amount. A document matches only when every condition is true.
5

Define the changes

Under Then, select Add action and choose the changes to apply to matching documents.
6

Create the rule

Select Create rule. You can then choose whether to apply the rule to matching documents that already exist in the workspace.

Conditions

Each field can be used once per rule, and all conditions must be true. To match one of several values, use is any of or contains any of. If those comparisons do not represent the required logic, create separate rules. For Keywords in Document, Line items, name, and address conditions, enter each keyword and press Enter. A condition supports up to 10 keywords. Matching is not case-sensitive, and a keyword also matches part of a word. For example, “pro” matches “Pro plan”, “product”, and “approval”. Use sufficiently specific keywords. For Amount, Billpal compares the absolute value without its sign. If currencies are selected without an amount, every document in those currencies matches.

Changes

Each action can be used once per rule.

When a rule runs

  • New documents: While a rule is active, Billpal checks each new document after processing.
  • Direction confirmed: When a person confirms whether the workspace company is the supplier or customer, Billpal checks the document against the rules again. Rules can therefore apply to documents that initially had the status Review.
  • Existing documents: A rule applies to existing documents only when this option is selected while saving the rule.

Apply a rule to existing documents

After saving, a prompt such as “Also apply to 12 existing documents?” appears. The count includes only documents that match the rule and would be changed.
  • Only new documents: The rule applies to documents processed from this point. Existing documents remain unchanged.
  • Apply to 12 documents: Billpal applies the rule to those documents in the background.
This prompt appears for a new rule and after its conditions or changes are edited. Renaming or reordering a rule does not display the prompt. Rules do not change exported documents. They also do not overwrite values that were changed manually on a document.

Order and manual changes

In the list under Rules, drag rules into the required order. The order determines which change is applied when multiple matching rules set the same field:
  • Same field: If two matching rules set different accounts, for example, the higher rule applies its change. The lower rule skips that change.
  • Tags and notes: Tags and notes from all matching rules are added. Duplicates are not added.
  • Manual changes: A rule does not overwrite a field that was changed manually, including during a later run.

Review and undo rule activity

Under Activity > Rules, the history shows when a rule was created or changed and which document values it changed. Select Undo rule action to reverse one change.

Manage rules

  • Turn on and off: Use the switch in the rule list. An inactive rule does not run. When reactivated, it applies to new documents from that point.
  • Edit: Open the rule menu and select Edit. Members see View instead.
  • Duplicate: Creates a copy that can be adjusted for a different supplier, account, or other condition.
  • Delete rule: Stops future runs. Existing activity remains in the history.

Transaction rules

Rules for bank and card transactions have their own section under Rules. Name the rule, choose its direction, and add conditions on bank text, account, or amount. A rule can set the category, type, status, payee, description, or tags, or hide the transaction. See Transactions.

Examples

Categorize software subscriptions

  • When: Direction Incoming, Supplier is any of Slack, Notion
  • Then: Category Software, Subscription, Add a tag “SaaS”

Require approval from 1,000

  • When: Direction Incoming, Amount is greater than 1,000, currency EUR
  • Then: Create a note “Please approve”, mention the approver with @, and enable Review needed
The approver receives a notification. The document remains in Review until a person selects Done.

Exclude personal purchases

  • When: Direction Incoming, Customer, Address contains any of “5 Sample Street”
  • Then: Exclude, Add a tag “Personal”
Documents addressed to the specified private address are excluded from exports and remain available under Documents.

Review

Understand Review status and complete review notes.

Contacts

Manage the suppliers and customers used in rules.

Exports

Understand how excluded documents affect exports.