Hivebuy External API (v2)

Sections

Theme switcher

Get a catalogue item

Header Parameters

Authorizationstring

Path Parameters

companyIdstring Required

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

idstring Required

Row id. A row belonging to another company is 404 on every verb, never 403.

Response

200
Object

The item. Soft-deleted items are returned here too.

Response Attributes

idstring
readOnly
namesobject Required

Locale-keyed names, e.g. {"en": "Printer paper", "de": "Druckerpapier"}. en is required. It is the name the list sorts on and the key the bulk upsert falls back to. Two live rows of the same company may not share a name in any locale.

Show child attributes

descriptionstring
gtinstring | null

Barcode number of the item. Unique across all of Hivebuy.

unitstring

Unit of measure, e.g. pc, kg, l.

Default value
pc
articlestring

Article number of the item.

cataloguesarray

Ids of the catalogues the item belongs to.

Show child attributes

companySupplierstring | null

Supplier the item is bought from. Must belong to this company.

contractstring | null

Contract the item is covered by.

unlistedSupplierstring | null

Free-text supplier name, for items with no supplier record.

minimalQuantitystring | null

Smallest quantity that can be ordered. Decimal string. A JSON number is accepted on input and comes back as a string.

Default value
1.00
quantityStepstring | null

Quantity increment. Decimal string. A JSON number is accepted on input and comes back as a string.

Default value
1.00
activeboolean
Default value
true
externalArticlestring | null

Article number in your own system.

recurrenceobject | null

How often the item is reordered. Written inline with the item. Include the id on update to change the existing row instead of replacing it.

Show child attributes

imagesarray

Show child attributes

categoryallof

A category, as rendered inside a legal entity.

Show child attributes

tagsarray

Read gives the full tags. Writes take tag ids.

Show child attributes

itemVariantsarray Required

The variants of this item. There is always at least one.

Min items
1

Show child attributes

createdAtstring
readOnly
updatedAtstring
readOnly
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

404
Object

No such row for this company, including a row that belongs to another company, and a soft-deleted row you tried to write to. The API does not confirm whether the id exists elsewhere.

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

GET

/

Select
1

Response