Hivebuy External API (v2)

Sections

Theme switcher

Set a purchase order status

Header Parameters

Authorizationstring

Path Parameters

companyIdstring Required

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

Body Parameters

purchaseOrderstring

The order's UUID (its uuid on read). The unambiguous identifier.

externalIdstring

Your reference for the order. Use it when you do not hold the UUID.

statusstring

O ordered, D delivered, I invoiced, CO completed, RE returned. Any other status is refused.

Enum values:
ODICORE
statusDatestring

ISO-8601, e.g. 2026-07-27T10:00:00Z. Defaults to now.

reasonstring

Free text stored with the status event.

positioninteger

Scopes the update to one item, by its position in the order. Requires status, and cannot be combined with finalDelivered / finalInvoiced.

Minimum
1
externalOrderNumberstring

The supplier-side order number. Saved before dispatch, so it is used for the order sent when processOrder is true.

processOrderboolean

Releases an order that is on hold and sends it to the supplier. Ignored when the order is in any other status.

finalDeliveredboolean

Order-level: mark the order fully delivered.

finalInvoicedboolean

Order-level: mark the order fully invoiced.

orderNumberstring

Free-text order reference stored on the order.

syncStatusstring

Reports how your own sync of this order went.

Enum values:
doneerror
syncTextstring

Detail for syncStatus, typically the error.

Response

200
Object

The status row that was written, with the order's sync state.

Response Attributes

idstring
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
statusDatestring
reasonstring | null
createdBystring | null
createdAtstring
purchaseOrderstring
purchaseOrderSyncobject

Show child attributes

400
Object

Validation failed. Every problem in the payload is reported at once, one entry per 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

404
Object

No order in this company matched the identifier you sent.

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