Skip to navigation

Retrieve an allocation

Returns one of the account holder’s allocations, active or deactivated. Send type when allocations of several types share the ID.

Authentication

AuthorizationBearer

Access token from POST /access-token. Valid for at most 30 minutes.

Path parameters

allocationIdstringRequiredformat: "^[A-Za-z0-9_-]+$"1-128 characters
The allocation's ID, such as its ID in your accounting system.

Headers

Account-HolderstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._:-]+$"1-128 characters

Your own correlation ID for this request. It is recorded with the request. The X-Request-Id response header is always generated by the server.

Query parameters

typestringOptional1-128 characters
The allocation's type, for an ID that allocations of several types share. Without it, the request uses the active allocation with this ID.

Response headers

X-Request-Idstringformat: "uuid"
Unique ID of this request. Quote it when you contact support.
RateLimitstringOptional

Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).

RateLimit-PolicystringOptional

The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).

Response

The allocation.
idstring>=1 character
The allocation's ID, such as its ID in your accounting system. Unique within its type.
objectenum

Always allocation.

Allowed values:
livemodeboolean

true on a live platform in production, false on a Sandbox platform and outside production.

createdAtdatetime
When the allocation was created. Renaming or moving it sets this again.
updatedAtdatetime
When the allocation last changed.
typestring

The allocation type’s key.

namestring
The allocation's name.
levelinteger>=0

Its depth in its type’s hierarchy, 0 at the top.

statusenum

INACTIVE once deactivated: kept, but left out of GET /allocations.

Allowed values:
editableboolean

false when your accounting integration owns the allocation; change it there.

typeNamestringOptional
The allocation type's name.
parentIdstringOptional

The ID of the allocation this one sits under. Absent on a top-level allocation.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error