{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-billing-tax-schema.json",
  "title": "BillingTax",
  "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/BillingTax",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "billing_tax"
      ]
    },
    "connected": {
      "type": "boolean",
      "description": "Whether the Board has a connected Stripe account. When false, every other field is null."
    },
    "taxCollectionStatus": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "active",
        "pending",
        null
      ],
      "description": "`active`: checkouts collect tax. `pending`: setup was started but is not finished. Null when tax collection was never set up."
    },
    "livemode": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether the Stripe account is in live mode. False for a test account. Null when Stripe is not connected."
    },
    "taxBehavior": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "inferred_by_currency",
        "inclusive",
        "exclusive",
        null
      ],
      "description": "Whether prices include tax by default: `inclusive`, `exclusive`, or `inferred_by_currency`. Null when not set or when Stripe could not be reached."
    },
    "taxCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Default Stripe product tax code, for example `txcd_10000000`. `txcd_00000000` means nontaxable. Null when not set or when Stripe could not be reached."
    },
    "taxCodeName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name of the default tax code, or null."
    },
    "headOfficeCountry": {
      "type": [
        "string",
        "null"
      ],
      "description": "Two-letter ISO country code of the head office address set in Stripe Tax, or null."
    },
    "registrations": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/BillingTaxRegistration"
      },
      "description": "Active tax registrations, up to 100. An empty list means no registrations, so no tax is collected anywhere. Null when Stripe is not connected or the list could not be loaded."
    }
  },
  "required": [
    "object",
    "connected",
    "taxCollectionStatus",
    "livemode",
    "taxBehavior",
    "taxCode",
    "taxCodeName",
    "headOfficeCountry",
    "registrations"
  ],
  "$defs": {
    "BillingTaxRegistration": {
      "type": "object",
      "properties": {
        "country": {
          "type": "string",
          "description": "Two-letter ISO country code of the tax registration."
        },
        "type": {
          "type": "string",
          "description": "Stripe registration type for the country, for example `standard`, `oss_union`, `oss_non_union` or `ioss`."
        }
      },
      "required": [
        "country",
        "type"
      ]
    }
  }
}