Hivebuy External API (v2)

Sections

Theme switcher

Get a purchase order

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

Response Attributes

uuidstring

The order id. This is what {id} and purchaseOrder take.

idstring

The human order number, with the company prefix.

companystring
companyIdstring
titlestring
urlstring

The order in the Hivebuy UI.

statusstring

Status code: O Ordered, R Rejected, P Pending, I Invoiced, S Sent, RT Resent, PA Partial, RS Resolved, D Delivered, CO Completed, CA Canceled, ID In delivery, OH On hold, RE Returned. Only O, D, I, CO and RE can be set through set-status; the others are assigned by flows inside Hivebuy.

Enum values:
ORPISRTPARSDCO
... 4 other enums
requestedBystring
requestedByNamestring
requestedByExternalIdstring | null
requestedAtstring
decidedAtstring | null
totalNetAmountstring
totalNetAmountCurrencystring
totalGrossAmountstring
totalGrossAmountCurrencystring
taxstring
taxCurrencystring
externalIdstring | null

The reference sent outbound: external order number, client external id, or the plain order number.

orderExternalIdstring | null

Same value as externalId.

externalOrderNumberstring | null

Set by you through set-status, or by an integrated supplier on dispatch.

clientExternalIdstring | null
statusesarray

Show child attributes

itemsarray

Show child attributes

documentsarray
tagsarray
legalEntitiesarray
customFieldsarray
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