Skip to content
Proud to collaborate with Microsoft for Startups

subscription.usage.summary ​

Report organization usage for a period and its cost, priced from the local catalog.

Report what an organization used this period and what it costs.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-subscription
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID.
period_startstringNo—Inclusive period start ISO timestamp. Defaults to the current billing period.
period_endstringNo—Exclusive period end ISO timestamp.
include_dailybooleanNo—Include the per-day usage series for charting. Defaults to true.

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo——
subscription_uuiduuidNo——
currencystringNo——
periodjsonNo——
recurringjsonNo——
usagejsonNo——
totalsjsonNo——
dailylistNo——
unpricedlistNo——
freshnessjsonNo——
noticeslistNo——
actionsjsonNo——
statusstringNo——
completed_atstringNo——
failed_atstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—summarize—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingsummarizecompleted—
* (any state)failfailed—

Business Errors ​

CodeMessage Template
USAGE_SUMMARY_ORGANIZATION_NOT_FOUNDOrganization {organization_uuid} not found
USAGE_SUMMARY_PERIOD_INVALID
BILLING_AUTHORIZATION_REQUIRED

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "subscription.usage.summary",
  "initial_data": {
    "organization_uuid": "value"
  }
}