Hivebuy External API (v2)

Sections

Theme switcher

Retrieve a purchase request

Header Parameters

Authorizationstring

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

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