Hivebuy External API (v2)

Sections

Theme switcher

Create a category

Header Parameters

Authorizationstring

Path Parameters

companyIdstring Required

Company ID. Must be one of the IDs returned by GET /api/v2/companies/.

Body Parameters

namesobject Required

Locale-keyed names, e.g. {"en": "Provisions", "de": "Verpflegung"}. The en value is what ?ordering=name sorts on, whatever language the key's user has.

Show child attributes

parentstring | null

Parent category. Must belong to the same company, or 400.

emojistring

Emoji shown next to the category in the UI.

glAccountstring | null

Main general-ledger account (Sachkontennummer).

additionalGlAccountsarray

Further GL accounts. The main one stays in glAccount.

Show child attributes

eclassesobject | null

eClass codes keyed by eClass version, e.g. {"5.1.4": ["39140100", "39140102"]}. Free-form JSON: Hivebuy does not validate its shape.

Show child attributes

notesstring
defaultBudgetLevelstring

Which budget a request in this category draws on: C company, D department, DO department only, P project, U user, NB no budget, CS supplier.

Enum values:
CDDOPUNBCS
hasBudgetboolean

Whether the category is budgeted at all.

deliveryRequiredboolean

Whether a delivery has to be recorded before an invoice can be matched.

deliveryNotesTypestring

frame for framework agreements, material for goods.

Enum values:
framematerial

Response

201
Object

Created. The body is the read shape, with relations nested.

Response Attributes

idstring
namesobject Required

Locale-keyed names, e.g. {"en": "Provisions", "de": "Verpflegung"}. The en value is what ?ordering=name sorts on, whatever language the key's user has.

Show child attributes

parentstring | null

Parent category. Must belong to the same company, or 400.

emojistring

Emoji shown next to the category in the UI.

glAccountstring | null

Main general-ledger account (Sachkontennummer).

additionalGlAccountsarray

Further GL accounts. The main one stays in glAccount.

Show child attributes

eclassesobject | null

eClass codes keyed by eClass version, e.g. {"5.1.4": ["39140100", "39140102"]}. Free-form JSON: Hivebuy does not validate its shape.

Show child attributes

notesstring
defaultBudgetLevelstring

Which budget a request in this category draws on: C company, D department, DO department only, P project, U user, NB no budget, CS supplier.

Enum values:
CDDOPUNBCS
hasBudgetboolean

Whether the category is budgeted at all.

deliveryRequiredboolean

Whether a delivery has to be recorded before an invoice can be matched.

deliveryNotesTypestring

frame for framework agreements, material for goods.

Enum values:
framematerial
childrenarray

Child categories, nested in full. Built from one flat per-company query, so the whole subtree is present, not just one level.

Show child attributes

createdAtstring

When the row was created.

readOnly
deletedstring | null

null on a live row; the timestamp of the soft delete otherwise. Read-only everywhere.

readOnly
400
Object

Validation failed. attr names the field, in snake_case.

Response Attributes

typestring
Enum values:
validationErrorclientErrorserverError
errorsarray

Show child attributes

401
Object

Missing, invalid, or expired API key, or a session credential was used instead of an API key.

Response Attributes

typestring
Enum values:
validationErrorclientErrorserverError
errorsarray

Show child attributes

403
Object

Authenticated but not entitled: the key's user is not an active member of this company, the External API feature (or the resource's own feature) is not enabled for it, the key lacks the scope this verb needs, or a browser session was used.

Response Attributes

typestring
Enum values:
validationErrorclientErrorserverError
errorsarray

Show child attributes

429
Object

Rate limit exceeded (60 requests per minute per API key). Retry after the number of seconds given in the message.

Response Attributes

typestring
Enum values:
validationErrorclientErrorserverError
errorsarray

Show child attributes

POST

/

Select
1

Response