Skip to main content

Who is this article for?

Transaction tags are a flexible way to attach extra data to transactions. PEX recommends syncing tags with your accounting platform using a connector when you can. Some businesses need more control over tags and leave Sync tag options off. This article explains how PEX still matches tags to data in your accounting system in that case.

What steps does PEX take when matching tags to third-party data?

PEX tries to match tags in this order:
  1. Tag option value in PEX → entity ID
  2. Tag name in PEX (the Display as value) → entity name
  3. Tag option value in PEX → entity name
  4. Tag name in PEX (Display as) → entity name using hierarchy + delimiter
  5. Tag option value in PEX → entity name using hierarchy + delimiter
The last two steps help match within hierarchical expense categories. For example, an app might use:
  1. Hotels
  2. Sales:Demos:Hotels
PEX looks for the most specific child category first—in this example, Sales:Demos:Hotels. If no child match is found, it tries the parent category. For implementation details, see the tag-matching code in MatchingExtension.cs in the pex-sdk-dotnet repository on GitHub.
Last modified on April 23, 2026