Skip to main content

organizationStats

Requires an authenticated session.

Returns company-wide figures for your own organization, such as revenue and document counts. Only callers allowed to see organization-wide figures can read them; any other organization ID is refused.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query OrganizationStats($organizationId: String!) {
organizationStats(organizationId: $organizationId) {
activeWarehhouses
lastOrderDate
totalOrders
totalProducts
totalRevenue
totalUsers
}
}

Variables:

{
"organizationId": "string"
}

Response:

{
"data": {
"organizationStats": {
"activeWarehhouses": 0,
"lastOrderDate": "2025-01-15T00:00:00Z",
"totalOrders": 0,
"totalProducts": 0,
"totalRevenue": 0,
"totalUsers": 0
}
}
}
organizationStats(
organizationId: String!
): OrganizationStats!

Arguments​

organizationStats.organizationId ● String! non-null scalar​

Your own organization's ID.

Type​

OrganizationStats object​

Headline figures about an organization.