Skip to main content
PUT
/
accounts
/
{accountId}
Update an account for a company
curl --request PUT \
  --url https://openapi.pleo.io/v1/accounts/{accountId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "accountNumber": "<string>",
  "name": "<string>",
  "taxCodeId": "<string>",
  "accountCategoryId": "<string>",
  "hidden": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "accountCategoryId": "<string>",
  "hidden": true,
  "accountNumber": "<string>",
  "taxCodeId": "<string>"
}

Authorizations

Authorization
string
header
required

Open API Bearer token

Path Parameters

accountId
string
required

Unique UUID of the account.

Example:

"0f0e000-000d-0d00-000b-00db0d000fae"

Body

application/json
accountNumber
string

Account number

name
string

Description of this account

taxCodeId
string

unique Tax Code ID

accountCategoryId
string

unique Category ID of the account

hidden
boolean

Is the account hidden/archived for the user

Response

An account has been returned

id
string
required

The unique UUID identifier of the account

name
string
required

Description of this account

accountCategoryId
string
required

unique Category ID of the account

hidden
boolean
required

Is the account hidden/archived for the user

accountNumber
string

Account number

taxCodeId
string

unique Tax Code ID