Hivebuy External API (v2)

Sections

Theme switcher

Get a supplier

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 row. Soft-deleted rows are returned here too, with deleted set.

Response Attributes

idstring
namestring Required
displayNamestring | null

Name shown to requesters, if it should differ from name.

descriptionstring | null
notesstring | null
activeboolean
unlistedboolean

Hidden from the catalogue in the UI. Unlike the in-app list, this API returns unlisted suppliers.

isPreferredboolean
supplierNumberstring | null

Your supplier number. Sortable via ?ordering=supplierNumber.

externalSupplierNumberstring | null

Supplier number in a third system, e.g. your ERP.

customerNumberstring | null

Your customer number with this supplier.

taxNumberstring | null
websitestring | null
languagestring

Language used for orders and emails to this supplier.

Enum values:
ENDEESFRFITRHUIT
currencystring | null

ISO 4217 code. null or "" when the supplier has none set, in which case the company currency applies.

Enum values:
EURUSDGBPSEKPLNCHFCZKHUFDKKRON
... 3 other enums
contactNamestring | null
contactEmailstring | null
contactPhonestring | null
replyToEmailstring | null
orderEmailstring | null

Where orders are sent when orderViaEmail is true.

orderNotestring | null

Text appended to every order.

orderViaEmailboolean
streetstring | null
houseNumberstring | null
postalstring | null

Postal code.

citystring | null
countrystring | null
bankstring | null
bicstring | null
ibanstring | null
paymentTermsstring | null
paymentReferencestring | null
incotermstring | null

Incoterm for deliveries from this supplier. null or "" when none is agreed.

Enum values:
EXWFCACPTCIPDAPDPUDDPFASFOBCFR
... 2 other enums
incotermPlacestring | null
incotermVersionstring | null
expectedDeliveryTimeinteger | null

Expected delivery time in days.

minimumOrderValuestring | null

Decimal string, e.g. "1250.00".

notificationAmountinteger

Order value above which the responsible user is notified.

discountPercentagestring | null

Percentage as a decimal string, e.g. "2.50".

includeLegalEntityInOrderboolean
validFromstring | null
validTostring | null
contractstring | null
defaultCategorystring | null
assignedCategoriesarray

Show child attributes

assignedCategoriesAllowedboolean

Inverts the category gate.

tagsarray

Show child attributes

responsibleUserstring | null
companySupplierLegalEntitiesarray

Per-legal-entity overrides.

Show child attributes

filesarray

Attachments. Read-only.

readOnly

Show child attributes

budgetsarray

Server-maintained supplier budgets. Read-only.

readOnly

Show child attributes

assignedUsersarray

Read-only. Part of the rule deciding which people see this supplier in the UI. Each …Allowed flag inverts its gate, so a write here could hide a supplier from everyone; they are readable so an integration can see the rules, and not writable so it cannot break them.

readOnly

Show child attributes

assignedUsersAllowedboolean

Read-only. Part of the rule deciding which people see this supplier in the UI. Each …Allowed flag inverts its gate, so a write here could hide a supplier from everyone; they are readable so an integration can see the rules, and not writable so it cannot break them.

readOnly
assignedDepartmentsarray

Read-only. Part of the rule deciding which people see this supplier in the UI. Each …Allowed flag inverts its gate, so a write here could hide a supplier from everyone; they are readable so an integration can see the rules, and not writable so it cannot break them.

readOnly

Show child attributes

assignedDepartmentsAllowedboolean

Read-only. Part of the rule deciding which people see this supplier in the UI. Each …Allowed flag inverts its gate, so a write here could hide a supplier from everyone; they are readable so an integration can see the rules, and not writable so it cannot break them.

readOnly
assignedLegalEntitiesarray

Read-only. Part of the rule deciding which people see this supplier in the UI. Each …Allowed flag inverts its gate, so a write here could hide a supplier from everyone; they are readable so an integration can see the rules, and not writable so it cannot break them.

readOnly

Show child attributes

assignedLegalEntitiesAllowedboolean

Read-only. Part of the rule deciding which people see this supplier in the UI. Each …Allowed flag inverts its gate, so a write here could hide a supplier from everyone; they are readable so an integration can see the rules, and not writable so it cannot break them.

readOnly
assignedRolesarray

Read-only. Part of the rule deciding which people see this supplier in the UI. Each …Allowed flag inverts its gate, so a write here could hide a supplier from everyone; they are readable so an integration can see the rules, and not writable so it cannot break them. Role codes: O owner, MD managing director, AC accountant, BU buyer, AP approver, AL approver (limited), CO contract owner, AU API user, CR controller, NA news admin, AD auditor, LA legal-entity ...

Enum values:
OMDACBUAPALCOAUCRNA
... 4 other enums
readOnly

Show child attributes

assignedRolesAllowedboolean

Read-only. Part of the rule deciding which people see this supplier in the UI. Each …Allowed flag inverts its gate, so a write here could hide a supplier from everyone; they are readable so an integration can see the rules, and not writable so it cannot break them.

readOnly
createdAtstring

When the row was created.

readOnly
updatedAtstring

When the row itself last changed.

readOnly
deletedstring | null

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

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