Hivebuy External API (v2)

Sections

Theme switcher

Get a custom field

Header Parameters

Authorizationstring

Query Parameters

fieldsstring

Comma-separated allow-list of top-level fields to return, e.g. ?fields=id,name. Narrows the response only; it cannot widen it, and ?expand= does nothing on this API.

omitstring

Comma-separated list of top-level fields to leave out, e.g. ?omit=children.

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

Response Attributes

idstring
orderinteger

Position in the form, ascending. Not propagated to existing catalogue-item copies.

namestring

Internal name, unique per company. Immutable through this API.

helpTextobject | null

Help text per language, e.g. {"en": "...", "de": "..."}. Either a map of language code to string, or null; anything else is a 400.

Show child attributes

valuestring | null

Default value. Always stored as a string: a PRICE is a decimal string such as "150.00", a DATE an ISO date YYYY-MM-DD, a SELECT one of the option values. A BOOLEAN field returns a real true/false on read and accepts either a boolean or the strings "true"/"false" on write.

typestring

Field type. Immutable through this API.

Enum values:
BOOLEANTEXTPRICESELECTDATE
labelstring | null

Label shown to users. Propagated to existing catalogue-item copies.

placeHolderstring | null

Placeholder shown in an empty input. Propagated to existing catalogue-item copies.

currencystring | null

ISO 4217 code, only for a PRICE field. Must be empty for BOOLEAN, SELECT and DATE.

mandatoryFieldboolean

Whether a value is required. Propagated to existing catalogue-item copies.

inputTypearray

Where the field is shown: FREEFORM (free-text items), CATALOGUE (catalogue items), CATALOGUE_USER_INPUT (catalogue items where the user types the value), INTEGRATED_SUPPLIER (punch-out items). An empty list means no restriction.

Enum values:
FREEFORMCATALOGUECATALOGUE_USER_INPUTINTEGRATED_SUPPLIER

Show child attributes

selectFieldsarray

Options of a SELECT field. Empty for every other type.

Show child attributes

isActiveboolean

Inactive fields are hidden from users but keep their stored values. Propagated to existing catalogue-item copies.

appliesTostring

ITEM: asked per purchase-request item. REQUEST: asked once per purchase request. Immutable through this API.

Enum values:
ITEMREQUEST
categoryCustomFieldsarray

Categories the field is linked to, with the per-category mandatory flag. Read-only.

readOnly

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

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