Skip to navigation

Retrieve an allocation

Returns a single allocation. Requires ReadOnly role and the allocations feature on your company’s plan.

Authentication

AuthorizationBearer

A short-lived access token from POST /api/v1/access-token (30 minutes by default). Send as Authorization: Bearer <jwt>.

Path parameters

idstringRequired
The allocation's unique identifier.

Response

Allocation retrieved.
idstringOptional
The allocation's unique identifier.
companyIdstringOptional
The unique identifier of the company that owns the allocation.
typestringOptional

The allocation type (e.g. ClassRef, DepartmentRef).

typeNamestringOptional

A human-readable name for the allocation type.

namestringOptional
The allocation's display name.
fullyQualifiedNamestringOptional
The fully qualified name, including any parent hierarchy.
sourceIdstringOptional

The allocation’s identifier in your source system (e.g. QuickBooks).

parentIdstring or nullOptional
The parent allocation's unique identifier, if any.
activebooleanOptional
Whether the allocation is currently active.
statusenumOptional
The allocation's current status.
Allowed values:
createdAtlongOptional

Unix timestamp (milliseconds) when the allocation was created.

updatedAtlongOptional

Unix timestamp (milliseconds) when the allocation was last updated.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error