Hivebuy External API (v2)

Sections

Theme switcher

Create a catalogue item

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": "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

categorystring Required

Category id. Must belong to this company.

tagsarray

Tag ids.

Show child attributes

itemVariantsarray Required

The variants of this item. At least one is required. Variants missing from the payload are removed from the item.

Min items
1

Show child attributes

Response

201
Object

Created. The body is the read shape.

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
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