{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-billing-connect-schema.json",
  "title": "BillingConnect",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-billing-api-openapi.yml#/components/schemas/BillingConnect",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "billing_connect"
      ]
    },
    "connected": {
      "type": "boolean"
    },
    "acceptingPayments": {
      "type": "boolean"
    },
    "payoutsEnabled": {
      "type": "boolean"
    },
    "detailsSubmitted": {
      "type": "boolean"
    },
    "actionRequired": {
      "type": "boolean"
    },
    "stripeAccountId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Board's connected Stripe account id (`acct_...`), or null when Stripe is not connected. Use it to find the account in the Stripe Dashboard."
    },
    "taxCollectionStatus": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "active",
        "pending",
        null
      ],
      "description": "`active`: Stripe Tax is set up and checkouts collect tax. `pending`: Stripe Tax setup was started but is not finished. Null when tax collection was never set up. Details are on GET /billing/tax."
    },
    "requirements": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "currentlyDue": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Names of the details Stripe needs now to keep the account enabled, for example `external_account`."
        },
        "pastDue": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Names of the details whose deadline has passed. Payments or payouts stay paused until they are provided."
        }
      },
      "required": [
        "currentlyDue",
        "pastDue"
      ],
      "description": "What Stripe still needs from the account holder, as requirement names only. Null when Stripe is not connected."
    }
  },
  "required": [
    "object",
    "connected",
    "acceptingPayments",
    "payoutsEnabled",
    "detailsSubmitted",
    "actionRequired",
    "stripeAccountId",
    "taxCollectionStatus",
    "requirements"
  ]
}