Hivebuy External API (v2)

Sections

Theme switcher

Bulk upsert suppliers

Header Parameters

Authorizationstring

Path Parameters

companyIdstring Required

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

Body Parameters

idstring

Optional, for matching only: the supplier's id. An id that matches nothing in this company falls through to the next lookup field, and a new record is created with a fresh id.

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

Contract id. Must belong to this company; a company-less contract is rejected.

defaultCategorystring | null

Category id. Must belong to this company.

assignedCategoriesarray

Category ids. Must belong to this company. Unlike the other assigned* lists, this one is writable, categories are not a visibility gate.

Show child attributes

assignedCategoriesAllowedboolean

Inverts the category gate: true means the listed categories are allowed, false means they are excluded.

tagsarray

Tag ids. Must belong to this company; a company-less tag is rejected.

Show child attributes

responsibleUserstring | null

User id. Must be an active member of this company.

companySupplierLegalEntitiesarray

Per-legal-entity overrides.

Show child attributes

Response

200
Object

Always 200, even when rows failed: per-row results in upserted and errors, in row order.

Response Attributes

upsertedarray Required

One entry per stored row, in row order: the row as you sent it, plus the record's id and the action taken.

Show child attributes

errorsarray Required

One entry per failed row. A failed row never fails the batch.

400
Object

The whole request was refused: the body is not a JSON array, or it has more than 50 rows. Plain {"error": …} body, this one predates the error envelope and existing clients parse it.

Response Attributes

errorstring
receivedinteger

Only on the over-limit refusal.

upsertLimitinteger

Only on the over-limit refusal.

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