Skip to content
Proud to collaborate with Microsoft for Startups

subscription.retention.billing.quote ​

Return pending price-model status for retention billing quote.

Fallback quote for retention billing when a price model is unavailable.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-subscription
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
subscription_uuiduuidNo——
workflow_state_retention_daysintegerNo——
workflow_event_retention_daysintegerNo——
scheduled_transition_retention_daysintegerNo——
audit_log_retention_daysintegerNo——
usage_snapshot_retention_daysintegerNo——
max_retained_workflow_storage_bytesintegerNo——
max_retained_audit_storage_bytesintegerNo——
user_uuiduuidNo——
return_channeljsonNo——
agent_session_refstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo—Organization UUID.
flowstringNo—Requested billing flow.
supportedbooleanNo—Whether the flow can mutate billing today.
statusstringNo—Support status.
unsupported_reasonstringNo—Why the flow is not mutating yet.
requestedjsonNo—Caller request normalized for support handoff.
required_capabilitieslistNo—Missing model/platform capabilities.
next_actionjsonNo—UI or agent follow-up instruction.
completed_atstringNo—Completion timestamp.
subscription_uuiduuidNo——
current_policyjsonNo——
requested_policyjsonNo——
quotejsonNo——
failed_atstringNo—Failure timestamp.
failure_reasonstringNo—Failure reason.
failure_typestringNo—Failure type.
failed_actionstringNo—Failed action.
failed_at_statestringNo—Failed state.
failed_stepstringNo—Failed step.
failed_layerstringNo—Failed layer.
errorstringNo—Error message.
error_typestringNo—Error class.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—quote—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingquotecompleted—
* (any state)failfailed—

Business Errors ​

CodeMessage Template
BILLING_ORGANIZATION_NOT_FOUNDOrganization {organization_uuid} not found
BILLING_PLATFORM_SUBSCRIPTION_NOT_FOUNDNo active platform subscription found for organization
BILLING_PENDING_FLOW_INPUT_ERROR
BILLING_AUTHORIZATION_REQUIRED

API Usage ​

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

{
  "workflow_type": "subscription.retention.billing.quote",
  "initial_data": {
    "organization_uuid": "value"
  }
}