> ## Documentation Index
> Fetch the complete documentation index at: https://developers.pleo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Tags Sync Data Mapping

This page describes how data from the Accounting System is mapped to Pleo's Tags API during Tags Sync.

Data mapping ensures that Dimensions and Dimension Values from the AS are reflected accurately in Pleo's Tag Groups and Tags.

## Implementation

* [Tags Sync Workflow Guide](/docs/current/guides/accounting-integrations/imports/tags-sync-workflow-guide): workflow context and sequencing
* [How to Sync Tag Groups with Accounting Dimensions](/docs/current/how-tos/accounting-integrations/imports/tags/how-to-sync-tag-groups-with-accounting-dimensions): API usage and step-by-step instructions
* [How to Sync Tags with Dimension Values](/docs/current/how-tos/accounting-integrations/imports/tags/how-to-sync-tags-with-dimension-values): API usage and step-by-step instructions

## Data Mapping

### Tag Groups

Map the following datapoints from AS Dimensions to Pleo Tag Groups API fields.

| Pleo Tag Groups API Field | AS Dimension Datapoint                                   |
| ------------------------- | -------------------------------------------------------- |
| `code`                    | Code of the Dimension                                    |
| `name`                    | Name of the Dimension                                    |
| `archived: false`         | Use when creating new active Tag Groups                  |
| `archived: true`          | Use when archiving Tag Groups with no matching Dimension |

### Tags

Map the following datapoints from AS Dimension Values to Pleo Tags API fields.

| Pleo Tags API Field | AS Dimension Value Datapoint                                                                                                      |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `code`              | Code of the Dimension Value                                                                                                       |
| `name`              | Name of the Dimension Value                                                                                                       |
| `archived: false`   | Use when creating new active Tags or unarchiving existing Tags                                                                    |
| `archived: true`    | Use to archive Tags when the corresponding Dimension Value does not exist, is deleted, blocked, expired, or deactivated in the AS |

## Matching Field

Both Tag Groups and Tags are matched to their AS counterparts using the **code** field on both ends.

Matching is **case-insensitive**.

***

## What Comes Next?

* [Sync Periodicity and Scheduling](/docs/current/integration-design/accounting-integrations/imports/tags/integration-design-tags-periodicity)

***

## Related Reading

* [Sync Tag Groups with Dimensions](/docs/current/integration-design/accounting-integrations/imports/tags/integration-design-tags-sync-tag-groups)
* [Sync Tags with Dimension Values](/docs/current/integration-design/accounting-integrations/imports/tags/integration-design-tags-sync-tags)
* [Tags Sync Workflow Guide](/docs/current/guides/accounting-integrations/imports/tags-sync-workflow-guide)
* [Platform Capabilities: Tags Sync](/docs/current/platform/accounting-integrations/imports/tags/tags-sync-overview)

***
