{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thomson-reuters/json-schema/thomson-reuters-firm-office-profile-schema.json",
  "title": "FirmOfficeProfile",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thomson-reuters-firms-api-openapi.yml#/components/schemas/FirmOfficeProfile",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "firmId": {
      "type": "integer",
      "format": "int32"
    },
    "active": {
      "type": "boolean"
    },
    "officeName": {
      "type": [
        "string",
        "null"
      ]
    },
    "address": {
      "$ref": "#/$defs/Address"
    },
    "generalPhone": {
      "type": [
        "string",
        "null"
      ]
    },
    "generalFax": {
      "type": [
        "string",
        "null"
      ]
    },
    "taxId": {
      "type": [
        "string",
        "null"
      ]
    },
    "vatId": {
      "type": [
        "string",
        "null"
      ]
    },
    "gstId": {
      "type": [
        "string",
        "null"
      ]
    },
    "hstId": {
      "type": [
        "string",
        "null"
      ]
    },
    "pstId": {
      "type": [
        "string",
        "null"
      ]
    },
    "qstId": {
      "type": [
        "string",
        "null"
      ]
    },
    "salesTaxId": {
      "type": [
        "string",
        "null"
      ]
    },
    "withholdingTaxId": {
      "type": [
        "string",
        "null"
      ]
    },
    "managingPartner": {
      "type": [
        "string",
        "null"
      ]
    },
    "representativeClients": {
      "type": [
        "string",
        "null"
      ]
    },
    "isSendingLedes": {
      "type": "boolean"
    },
    "officeSize": {
      "type": [
        "string",
        "null"
      ]
    },
    "officeAdmin": {
      "$ref": "#/$defs/Contact"
    },
    "backupOfficeAdmin": {
      "$ref": "#/$defs/Contact"
    },
    "baseCurrency": {
      "type": [
        "string",
        "null"
      ]
    },
    "practiceAreas": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "billingAddress": {
      "$ref": "#/$defs/BillingAddress"
    },
    "vendors": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/FirmOfficeVendorNumber"
      }
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "invoiceCurrenciesAllowed": {
      "$ref": "#/$defs/InvoiceCurrenciesAllowed"
    },
    "invoiceCurrencies": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "invoiceFormatsAllowed": {
      "$ref": "#/$defs/InvoiceFormatsAllowed"
    },
    "ledesFormatsAllowed": {
      "$ref": "#/$defs/LedesFormatsAllowed"
    },
    "invoiceTaxTypeAllowed": {
      "$ref": "#/$defs/InvoiceTaxTypeAllowed"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "street1": {
          "maxLength": 150,
          "type": [
            "string",
            "null"
          ]
        },
        "street2": {
          "maxLength": 150,
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "maxLength": 65,
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "provinceRegion": {
          "maxLength": 100,
          "type": [
            "string",
            "null"
          ]
        },
        "zipCode": {
          "maxLength": 25,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "BillingAddress": {
      "type": "object",
      "properties": {
        "street1": {
          "maxLength": 150,
          "type": [
            "string",
            "null"
          ]
        },
        "street2": {
          "maxLength": 150,
          "type": [
            "string",
            "null"
          ]
        },
        "street3": {
          "maxLength": 150,
          "type": [
            "string",
            "null"
          ]
        },
        "street4": {
          "maxLength": 150,
          "type": [
            "string",
            "null"
          ]
        },
        "street5": {
          "maxLength": 150,
          "type": [
            "string",
            "null"
          ]
        },
        "street6": {
          "maxLength": 150,
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "maxLength": 65,
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "provinceRegion": {
          "maxLength": 100,
          "type": [
            "string",
            "null"
          ]
        },
        "zipCode": {
          "maxLength": 25,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "Contact": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "FirmOfficeVendorNumber": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "number": {
          "maxLength": 200,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "InvoiceCurrenciesAllowed": {
      "enum": [
        "CompanyDefault",
        "AllCurrenciesAllowed",
        "SpecifiedCurrencies",
        "FirmDefault"
      ],
      "type": "string"
    },
    "InvoiceFormatsAllowed": {
      "enum": [
        "CompanyDefault",
        "AllFormatsAllowed",
        "LedesOnly",
        "FirmDefault"
      ],
      "type": "string"
    },
    "InvoiceTaxTypeAllowed": {
      "enum": [
        "CompanyDefault",
        "FirmDefault",
        "AllTaxTypesAllowed",
        "NonStandardTaxTypesProhibited",
        "NonStandardTaxTypesWithOtherProhibited"
      ],
      "type": "string"
    },
    "LedesFormatsAllowed": {
      "enum": [
        "CompanyDefault",
        "FirmDefault",
        "LedesAll",
        "Ledes98B",
        "Ledes98BI",
        "LedesXML"
      ],
      "type": "string"
    }
  }
}