Skip to main content
POST
/
account-categories
Create an account group for a company
curl --request POST \
  --url https://openapi.pleo.io/v1/account-categories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "typeKey": "entertainment",
  "hidden": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "typeKey": "entertainment",
  "hidden": true
}

Authorizations

Authorization
string
header
required

Open API Bearer token

Body

application/json
name
string

Description of the account group

typeKey
enum<string>

Type key of the account group

Available options:
entertainment,
equipment_and_hardware,
marketing_and_advertising,
meals_and_drinks,
office_expenses,
phone_and_internet,
services_and_consultancy,
software,
supplies,
travel,
other,
no_suitable_category
hidden
boolean

Is the account hidden/archived for the user

Response

An account group has been created

id
string
required

The unique UUID identifier of the account group

name
string
required

Description of the account group

typeKey
enum<string>
required

Type key of the account group

Available options:
entertainment,
equipment_and_hardware,
marketing_and_advertising,
meals_and_drinks,
office_expenses,
phone_and_internet,
services_and_consultancy,
software,
supplies,
travel,
other,
no_suitable_category
hidden
boolean
required

Is the account hidden/archived for the user