Skip to content

Count orders grouped by status

Request

Returns a map of status names to order counts for the filtered query.


Requires orders::read permission.

Security
JWTAuthorizer
Query
createdAfterstring, (date-time)

Include orders created at or after this RFC3339 timestamp

createdBeforestring, (date-time)

Include orders created before this RFC3339 timestamp

assigneestring

Filter by assigned Trustgrid user

creatorstring

Filter by order creator user ID

projectIDstring

Filter by project ID

prioritystring(Order Priority)

Filter by priority

Enum:"normal""high""urgent"
statusstring(Order Status)

Filter by status

Enum:"new""on hold per client""gathering info""pending feedback""info received""provisioning""qa""shipped""delivered""installed"
excludeStatusstring(Order Status)

Exclude orders with this status

Enum:"new""on hold per client""gathering info""pending feedback""info received""provisioning""qa""shipped""delivered""installed"
transition-statusstring

Status value to count transitions for

transition-frominteger, (int64)

Start of transition window (unix timestamp)

transition-tointeger, (int64)

End of transition window (unix timestamp; defaults to now)

labelstring

Filter by label

qstring

Free-text search across the order

curl -i -X GET \
  'https://apidocs.trustgrid.io/_mock/provisioning/api/v1/orders/status-counts?createdAfter=2019-08-24T14%3A15%3A22Z&createdBefore=2019-08-24T14%3A15%3A22Z&assignee=string&creator=string&projectID=string&priority=normal&status=new&excludeStatus=new&transition-status=string&transition-from=0&transition-to=0&label=string&q=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
property name*integeradditional property
Response
{ "property1": 0, "property2": 0 }