Skip to main content
PUT
/
v1
/
chart-of-accounts
/
{accountId}
Update an account
curl --request PUT \
  --url https://external.pleo.io/v1/chart-of-accounts/{accountId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json;charset=UTF-8' \
  --data '
{
  "archived": true,
  "name": "<string>",
  "code": "<string>",
  "metadata": {},
  "taxCodeExternalId": "<string>"
}
'
{
  "data": {
    "archived": false,
    "code": "2001",
    "companyId": "123e4567-e89b-12d3-a456-426614174006",
    "externalId": "External Id",
    "id": "123e4567-e89b-12d3-a456-426614174005",
    "name": "Bank Charges",
    "taxCodeExternalId": "IVA 20"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

accountId
string<uuid>
required

ID of the account to update.

Body

application/json;charset=UTF-8

Represents a request to update an account.

archived
boolean
required

Boolean flag used to determine if the account is archived.

name
string
required

Name of the account. Maximum length: 255 characters.

Maximum string length: 255
code
string | null

Account code or number used in the accounting system's chart of accounts. Maximum length: 255 characters.

Maximum string length: 255
metadata
object

Place for API users to store flexible data.

taxCodeExternalId
string | null

The identifier in the target system for the tax code the account is associated with.

  • This is NOT the tax percentage (e.g. 20%)
  • This is NOT the Pleo UUID of the tax code

Response

Update of account successful.

data
object
required

Represents an account in Pleo.