{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-tax-calculation-schema.json",
  "title": "TaxCalculation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-prices-api-openapi.yml#/components/schemas/TaxCalculation",
  "type": "object",
  "properties": {
    "contact": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string",
          "maxLength": 40,
          "description": "City"
        },
        "state": {
          "type": "string",
          "minLength": 2,
          "maxLength": 2,
          "description": "State"
        },
        "zip": {
          "type": "string",
          "maxLength": 40,
          "description": "ZIP"
        },
        "country": {
          "type": "string",
          "maxLength": 2,
          "default": "US",
          "enum": [
            "CA",
            "US"
          ],
          "description": "Country"
        }
      },
      "required": [
        "state",
        "zip"
      ],
      "description": "Address (required for public endpoint)"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "integer",
            "description": "Amount"
          },
          "type": {
            "type": "string",
            "enum": [
              "number",
              "automated-transcription",
              "premium-music",
              "call-recording",
              "extension",
              "tax",
              "voip",
              "live-receptionist",
              "live-receptionist-plus",
              "setup-fee",
              "10-dlc",
              "device",
              "shipping",
              "interstate-toll",
              "intrastate-toll",
              "lines",
              "invoice",
              "forwarding-voip"
            ],
            "description": "Service type"
          },
          "code": {
            "type": "integer",
            "description": "Code"
          },
          "with_recovery_fee": {
            "type": "boolean",
            "description": "Add recovery fee to taxes and fees"
          }
        }
      },
      "description": "List of items for taxation"
    }
  },
  "required": [
    "items"
  ]
}