Managing Accounting Rules

Overview

For finance professionals, quick book closures and insightful data are vital. Here's how Ramp amplifies your accounting prowess:

For an overview of how Ramp accounting works, check out this article.

Automate coding with AI

Using AI and historical data, Ramp's accounting agent can automatically code your transactions:Ramp Accounting Agent — Enablement & Daily Use (Admin guide).

Automate coding with rules

Pre-coded cards

Pre-coded cards help automate transaction categorization based on preset rules. You can even mark transactions as "ready" automatically once they meet all requirements. This speeds up your workflow and helps ensure accurate coding.

Benefits

Common use cases

How to set up pre-coded cards

⚠️ Card-level rules currently support single-select fields only. Rules for free-text fields are not supported at this time.

For new cards

Step 1: Go to the Manage Spend tab and click Funds.
Step 2: Scroll to the Accounting section.
Step 3: Select the appropriate accounting information.

For existing cards

Step 1: Go to the Manage Spend tab and select an existing card.
Step 2: Click Edit.
Step 3: In the Advanced section, click Transaction coding rules.
Step 4: Click Add and choose the appropriate accounting fields.

Optional: use Spend Programs for pre-coding

To pre-code transactions using a card program:

Step 1: Go to Spend Programs.
Step 2: Click New Spend Program.
Step 3: Follow the setup flow in the product to define pre-coding rules.

Accounting rules

Ramp uses mapping rules and advanced coding rules to automate how your transactions flow into your accounting system (ERP). By setting these defaults, you ensure data consistency and reduce manual entry during month-end close.

Employee and group defaults

You can set accounting defaults for specific individuals or organizational groups to ensure their expenses are pre-coded.

Individual employee mappings

To set defaults for a specific person:

  1. Navigate to Company and select the People tab.
  2. Click on an employee’s name and select Edit Profile.
  3. Go to the Accounting tab.
  4. Select the specific Accounting Location or Accounting Department that applies to their expenses.

Department and location mappings

To set defaults for entire groups:

  1. Navigate to Company > Groups.
  2. Under Departments or Locations, select the group you wish to edit.
  3. Assign the corresponding value from your accounting system (e.g., mapping the "Sales" department in Ramp to "Department 400" in your ERP).
  4. Note: You can also define these mappings when creating a new department or location from the Create menu.

Coding rules configuration

The Coding Rules page is the central hub for all automation logic. Access this by going to Accounting > Settings > Coding Rules.

Rule types

Rule TypeFunction
Mapping RulesCreate a direct 1-to-1 link between a Ramp field (like Category or Merchant) and an Accounting field.
Advanced Rules (Plus)Use "If/Then" logic to code transactions and mileage reimbursements based on multiple conditions (Amount, Employee, Department, etc.).

Rule inputs

When creating rules, you can trigger automation using several fields:

Advanced automation logic

For more complex accounting needs, advanced rules can perform specific actions beyond basic coding.

Automated transaction splits

You can configure a rule to automatically split a transaction by percentage or amount:

  1. Within an Advanced Rule, navigate to the Then code to the following fields section.
  2. Select Split.
  3. Apply a Saved Split Template or create a Custom Split.
  4. Define the different Categories, Locations, or Departments for each portion of the split.

Pivot rules (multi-field mapping)

Pivot rules allow you to map a single input to multiple accounting outputs. For example, you can create a rule where the "Ramp Department" determines both the "Accounting Category" and the "Accounting Location" simultaneously.

Automatic sync readiness

To skip manual review for trusted transactions, enable the Mark expenses as ready to sync toggle within a rule. When a transaction meets the rule's criteria, Ramp will:

Default coding

Setting default values helps ensure transactions are always coded—even when no specific rule or user input is provided.

Why set default values?

How to set default values

Step 1: Go to Accounting Settings
Step 2: Select Manage Accounting Fields
Step 3: Click the Edit icon
Step 4: Choose your default value from the dropdown

⚠️ Make sure the default value exists in your accounting provider before selecting it in Ramp.

Accounting rules hierarchy

The priority in which accounting rules are applied can greatly influence your financial outcomes. Here's how Ramp structures the hierarchy:

Accounting rules hierarchy pyramid: Card rules at top, then Merchant, then Category

  1. Card & card program rules :
  1. Advanced rules :
  1. Rule application based on output fields :
  1. Noteworthy :

Frequently asked questions

What’s the difference between AI coding and rule-based coding?

AI coding uses historical data to predict how transactions should be coded. Rule-based coding applies logic you define, such as merchant, category, or employee rules. Many customers use both together for the best results.

When should I use pre-coded cards instead of accounting rules?

Use pre-coded cards when you want all transactions on a specific card to follow the same coding. Use accounting rules when coding depends on conditions like merchant, amount, department, or employee.

Can AI-coded transactions still be overridden by rules?

Yes. Card rules and accounting rules take priority over AI suggestions. If a rule applies, Ramp will follow the rule instead of the AI prediction.

Which rules take priority if multiple rules apply?

Ramp follows a strict hierarchy:

Can more than one rule apply to a single transaction?

Yes. Multiple rules can apply as long as they affect different fields. Ramp applies each rule based on priority and output field.

What happens if I delete a rule?

If you delete a rule:

Can I automatically mark transactions as ready to sync?

Yes. You can enable “Mark expenses as ready to sync” in:

Do card-level rules support all accounting fields?

No. Card-level rules currently support single-select fields only. Free-text fields are not supported.

Can I require employees to code their own transactions?

Yes. You can require cardholders to complete fields like category, location, vendor, or billable status before transactions are ready.

What are default accounting values used for?

Default values act as a fallback when no rule or user input applies. They help ensure every transaction is coded and prevent sync errors.

Why should I set a default vendor?

Some accounting systems require a vendor for every transaction. Setting a default vendor (e.g., “Misc. Ramp Vendor”) prevents Ramp from creating new vendors automatically.

Do default values apply to reimbursements?

Yes. Default accounting values apply to both card transactions and reimbursements.

Can I automate transaction splits?

Yes. Advanced rules allow you to:

What are pivot rules and when should I use them?

Pivot rules map one input to multiple outputs. For example, a single department selection can determine both the accounting category and location.

Where do I manage all accounting automation rules?

Go to Accounting > Settings > Coding Rules. This page is the central hub for mapping rules, advanced rules, and automation logic.

How do I set up an automatic GL code for mileage reimbursements?

Go to Accounting> Settings> Coding Rules. Under Create a Rule, go to Create advanced rule. Select the condition 'Reimbursement type' is 'Mileage,' then select the accounting category.