Skip to main content
This how-to covers the write operations for Chart of Accounts Sync: creating new Accounts, updating or unarchiving existing Accounts, and archiving Accounts that are no longer active in the Accounting System. Run this after How to Sync Accounts, which covers fetching and matching accounts from both systems.

Prerequisites

Before you begin:

Scenario

This how-to continues from the How to Sync Accounts scenario. After matching, the following actions are required: The diagram below shows where these operations fit in the full reconciliation loop.

Steps

1. Create Accounts for New AS Entries

API Endpoint: POST /v1/chart-of-accounts If an AS account has no matching Pleo Account, create a new Account. Example Pseudo:

Example Request

Example Response

What it looks like in Pleo Web App

Active Accounts with Software created


2. Unarchive or Update Existing Accounts

API Endpoint: PUT /v1/chart-of-accounts/{accountId} If a matching Account is found:
  • AS account is active, Pleo Account is archived: Unarchive by setting archived: false and update name and code if they differ.
  • AS account is active, Pleo Account name or code differs: Update the Account to match the AS.
  • AS account is active, Pleo Account name and code match: No action required.
Example Pseudo:

Unarchive

Example Request

The “2000 - Travel” Account is unarchived in this example.

Example Response

What it looks like in Pleo Web App

Active Accounts with Travel unarachived

Archived Accounts Empty

Update

Example Request

The “4000 - Advertising” Account is renamed to “4000 - Marketing” to match the AS in this example.

Example Response

What it looks like in Pleo Web App

Before update:
Active Accounts showing 4000 - Advertising

After Update:
Active Accounts showing 4000 - Marketing

3. Archive Accounts with No Matching AS Entry

API Endpoint: PUT /v1/chart-of-accounts/{accountId} If a Pleo Account is active but its corresponding AS account is no longer active (or does not exist), archive the Account. Do not delete Accounts. Archiving is non-destructive and reversible. Example Pseudo:

Example Request

Example Response

What it looks like in Pleo Web App

Archive Accounts showing that Entertainment is not longer part of the list

Archive Accounts showing that Entertainment was archived

Result

The table below recaps what happened to each Account across all steps. Pleo now reflects the current Chart of Accounts from the AS.

What Comes Next?


this how-to is part of: