{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-billing-group-schema.json",
  "title": "BillingGroup",
  "description": "A group of screens billed separately (its own invoice and finance contact).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-billing-groups-api-openapi.yml#/components/schemas/BillingGroup",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "financeContactName": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "financeContactEmail": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Where this group's invoices go."
    },
    "chargebeeCustomerId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The billing customer linked by Brix; null until linked."
    },
    "chargebeeSubscriptionId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The subscription linked by Brix; null until linked."
    },
    "subscriptionStatus": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "paymentTermsDays": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Net payment terms in days; null = the workspace default."
    },
    "screenCount": {
      "type": "integer",
      "description": "Screens billed to this group."
    },
    "createdAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    },
    "updatedAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    }
  },
  "required": [
    "id",
    "name",
    "financeContactName",
    "financeContactEmail",
    "chargebeeCustomerId",
    "chargebeeSubscriptionId",
    "subscriptionStatus",
    "paymentTermsDays",
    "screenCount",
    "createdAt",
    "updatedAt"
  ]
}