Hivebuy External API (v2)

Sections

Theme switcher

Create a purchase request

Header Parameters

Authorizationstring

Path Parameters

companyIdstring Required

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

Body Parameters

titlestring Required

Required.

descriptionstring

Free text.

categorystring Required

Required. UUID, name or GL account.

supplierstring Required

Required. UUID, name or supplier number.

departmentstring

UUID, name or cost center.

requestedBystring Required

Required. UUID or email of an active member of the company. The request is filed for this person.

currencystring

ISO 4217 code. Default: the company currency.

addressstring

Company address UUID for delivery.

invoiceAddressstring

Company address UUID for invoicing.

discountnumber

Flat header discount in the header currency.

customFieldsarray

Request-level custom fields. null reads as none.

Show child attributes

itemsarray Required
Min items
1

Show child attributes

Response

201
Object

The created request.

Response Attributes

idstring

Request UUID. Use it for retrieve.

externalIdstring

Hivebuy request number, digits only. The UI shows it with the company prefix.

externalOrderNumberstring | null

The linked purchase order's external (ERP) order number. null until the request becomes an order.

clientExternalIdstring | null

The linked purchase order's client external id. null until the request becomes an order.

titlestring

Title.

descriptionstring

Free text, empty string when none.

statusstring

Status code.

Enum values:
DPARCCR
requestedAtstring

When the request was filed.

currencystring

ISO 4217 code.

totalNetAmountstring | null

Sum of the lines, net. Decimal string.

totalGrossAmountstring | null

Sum of the lines, gross. Decimal string.

discountstring | null

Flat header discount, null when none. Decimal string.

requestedByobject

A person, as embedded in a purchase request.

Show child attributes

categoryallof | null

Show child attributes

supplierallof | null

Show child attributes

departmentallof | null

Show child attributes

addressallof | null

Show child attributes

invoiceAddressallof | null

Show child attributes

customFieldsarray

Show child attributes

itemsarray

Show child attributes

400
Object

Validation failed. Every problem is listed; attr names the field.

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