Skip to main content
This page describes how data from the Accounting System is mapped to Pleo’s Tax Codes API during Tax Sync. Data mapping ensures that tax codes from the AS are reflected accurately in Pleo’s Tax Codes.

Implementation

Tax Codes: Data Mapping

Map the following datapoints from AS tax codes to Pleo Tax Codes API fields.
Pleo Tax Codes API FieldAS Tax Code Datapoint
codeThe identifier of the tax code in the AS. Used for matching.
nameName of the tax code
rateRate of the tax code as a decimal (for example: 0.20 for 20%)
type: reverseUse only for reverse taxes
type: inclusiveUse for all other taxes
archived: falseUse when creating new active Tax Codes or unarchiving existing Tax Codes
archived: trueUse when archiving Tax Codes that no longer have a matching active tax code in the AS, or that were previously synced but have since been deleted, archived, or deactivated

Matching Field

Tax Codes are matched to their AS counterparts using the code field on both ends. Matching is case insensitive. The code field is the stable identifier used to track a tax code across sync runs, even if its name or rate changes.

Tax Code Type Mapping

AS Tax CodePleo type
Reverse taxreverse
All other taxesinclusive
Although exclusive appears as a valid enum value in the API spec, it is not currently supported. Attempting to create a Tax Code with type: exclusive returns a 400 BAD_REQUEST error. Do not use this value.

What Comes Next?