List order types
curl --request GET \ --url https://example.com/api/v1/order-types \ --header 'Authorization: Bearer <token>'Lists the workspace’s order types in display order: the six system types plus any custom ones, each with orderCount, the number of orders on it. Archived types are left out unless includeArchived=true, and come after the active ones. Each type carries its axes as stored and the effectiveAxes in force. Open an order on a type by sending its id as orderTypeId to POST /orders. Only types whose behavior is HOUR_BLOCK, SPRINT, SUBSCRIPTION or NON_BILLABLE can open orders today; each type’s canOpenOrders says whether it can. Requires one of the orders.view, orders.create or settings.manage permissions.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Also list archived types, after the active ones. Defaults to false.
Also list archived types, after the active ones. Defaults to false.
Responses
Section titled “Responses”The order types.
object
An order type as the list returns it, with the number of orders on it.
object
The axes as stored, one per rule an order of the type runs on. Each axis is optional: null takes the preset of the type’s behavior, and the response’s effectiveAxes shows the value an order of the type actually runs on. A combination no order can run is refused with reason INVALID_AXES. Once an order uses the type, its budget, renewal, payment, pricing, billable and overage axes are locked (reason AXES_IN_USE).
object
What an order of the type does. SUBSCRIPTION (Subscription): Renews each period on its renewal day. HOUR_BLOCK (Hour block): Prepaid hours used up over time. Extra blocks and overage can move to a new order. SPRINT (Sprint): Fixed scope with prepaid hours. Overage is absorbed and never billed. TIME_AND_MATERIALS (Time & Materials): No budget. Billed afterwards from the time logged. TOKENS (Tokens): Prepaid tokens. Each root task linked to the order uses one. NON_BILLABLE (Non billable): Time that is not charged, against a monthly budget.
Whether POST /orders accepts this type as orderTypeId: it is active and its behavior can open orders. Only types whose behavior is HOUR_BLOCK, SPRINT, SUBSCRIPTION or NON_BILLABLE can open orders today; each type’s canOpenOrders says whether it can.
The axes an order of the type runs on: each stored axis, or the preset of the behavior where it is null. A few stay null by design, such as the unit name of an hours budget.
object
System types (one per behavior) can be renamed and recoded but never archived, and keep their behavior.
Number of orders on the type, archived orders included.
Display order, ascending.
The default window an order’s hours report opens on. ORDER_START: Runs from the order start to today, or to its end date once that has passed. CURRENT_PERIOD: The order’s current budget period. CURRENT_MONTH: The current calendar month.
Revenue account for invoice lines of this type’s orders with no service; null when the type has none. New invoice lines for an order of this type with no service start on this account; a custom type with none uses the account of the system type of the same behavior.
Pagination metadata for list responses.
object
Example
{ "data": [ { "axes": { "budgetUnit": "HOURS", "consumptionRule": "ROOT_TASK_CREATED", "defaultOveragePolicy": "CARRY_OVER", "formEndDate": "REQUIRED", "invoiceAttach": "EXTRA_BLOCK", "invoiceRequirement": "REQUIRED", "overageKind": "MANAGED", "payment": "PREPAID", "ratePricing": "SNAPSHOT", "recurrence": "RENEWAL" }, "behavior": "SUBSCRIPTION", "effectiveAxes": { "budgetUnit": "HOURS", "consumptionRule": "ROOT_TASK_CREATED", "defaultOveragePolicy": "CARRY_OVER", "formEndDate": "REQUIRED", "invoiceAttach": "EXTRA_BLOCK", "invoiceRequirement": "REQUIRED", "overageKind": "MANAGED", "payment": "PREPAID", "ratePricing": "SNAPSHOT", "recurrence": "RENEWAL" }, "reportRange": "ORDER_START" } ]}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC