Implementation
- Tax Sync Workflow Guide: workflow context and sequencing
- How to Fetch and Match Tax Codes: API usage and step-by-step instructions
Matching Rules
- Matching is performed using the
codefield on both ends. - Matching is case insensitive.
- Name, rate, and type are not used for matching; only
codeis used.
Sync Process
1. Fetch Relevant Active Tax Codes from the AS
Retrieve all active tax codes from the Accounting System, then apply the following filters:- Exclude tax codes not relevant to expense management (for example: Sales VAT)
- Exclude blocked, inactive, or archived tax codes
2. Fetch Tax Codes from Pleo
Retrieve both active and archived Tax Codes from Pleo for the connected company. Including archived Tax Codes allows unarchiving rather than creating duplicates if a tax code becomes active in the AS again.3. Match Tax Codes by code
For every filtered active AS tax code, attempt to find a matching Tax Code in Pleo using thecode field on both ends.
Matching is case insensitive.
code found, Tax Code is active in Pleo, details match
The AS tax code is active and the matching Pleo Tax Code is also active with the same name, rate, and type. No action required.code found, Tax Code is active in Pleo, details differ
The AS tax code is active and the matching Pleo Tax Code is also active, but the name, rate, or type differs. Update the Tax Code’s name, rate, and type to match the AS.code found, Tax Code is archived in Pleo
The AS tax code is active but the matching Pleo Tax Code is archived. Unarchive the Tax Code and update its name, rate, and type if they differ from the AS.code not found
The AS tax code is active but no matching Pleo Tax Code exists. Create a new Tax Code with the tax code’s code, name, rate, and type.Duplicate codes found in Pleo
Two or more Tax Codes in Pleo share the same code.- Retain the Tax Code whose rate matches the rate from the matching AS tax code. Archive the duplicate.
- If all duplicates match the rate, retain one and archive the rest.
4. Archive Unmatched Tax Codes
Pleo Tax Codes that are active but have no matching active AS tax code must be archived. This covers tax codes that were previously present in the AS but have since been deactivated, blocked, or removed.Tax Code Types
For type mapping rules, see Tax Sync Data Mapping.What Comes Next?
Related Reading
- How to Fetch and Match Tax Codes
- How to Create, Update, and Archive Tax Codes
- Tax Sync Workflow Guide
- Platform Capabilities: Tax Sync