{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/subcenter-io/json-schema/subcenter-io-workspace-schema.json",
  "title": "Workspace",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/subcenter-io-openapi.json#/components/schemas/Workspace",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "role": {
      "type": "string",
      "enum": [
        "owner",
        "admin",
        "member"
      ]
    },
    "admin": {
      "type": "boolean"
    },
    "plan": {
      "type": "string"
    },
    "billing_status": {
      "type": "string",
      "enum": [
        "trialing",
        "active",
        "past_due",
        "canceled"
      ]
    },
    "trial_days_left": {
      "type": [
        "integer",
        "null"
      ]
    },
    "accessible": {
      "type": "boolean"
    },
    "writable": {
      "type": "boolean"
    },
    "default_currency": {
      "type": "string"
    },
    "amounts_include_vat": {
      "type": "boolean",
      "description": "True when the workspace isn't VAT registered",
      "so reports include VAT": null
    },
    "forwarding_address": {
      "type": "string",
      "description": "Forward invoice emails here"
    },
    "pending_invoices_count": {
      "type": "integer"
    },
    "decisions_due_count": {
      "type": "integer"
    }
  }
}