{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-service-site-headers-with-keys-schema.json",
  "title": "data_service_site_headers_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-sm-openapi.yml#/components/schemas/data_service_site_headers_withKeys",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "__ryvitKeys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of key paths that can be used to retrieve this object."
        },
        "__modifiedUTC": {
          "type": "string",
          "description": "UTC timestamp of when this object was last modified in the cache."
        }
      }
    },
    {
      "$ref": "#/$defs/data_service_site_headers"
    }
  ],
  "$defs": {
    "data_service_site_headers": {
      "required": [
        "SMServiceSiteID",
        "SMCo",
        "ServiceSite",
        "CustGroup",
        "DefaultServiceCenter",
        "Active",
        "Type",
        "NonBillable",
        "Certified"
      ],
      "type": "object",
      "properties": {
        "SMServiceSiteID": {
          "type": "integer",
          "description": ""
        },
        "SMCo": {
          "type": "integer",
          "description": ""
        },
        "ServiceSite": {
          "maxLength": 20,
          "type": "string",
          "description": ""
        },
        "CustGroup": {
          "type": "integer",
          "description": ""
        },
        "Customer": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Description": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Address1": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Address2": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "City": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "State": {
          "maxLength": 4,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Zip": {
          "maxLength": 12,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Country": {
          "maxLength": 2,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Phone": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "DefaultServiceCenter": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "ContactGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "ContactSeq": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "RateTemplate": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Active": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "Notes": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BillToARCustomer": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "TaxGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "TaxCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ReportID": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "CustomerPOSetting": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PrimaryTechnician": {
          "maxLength": 15,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "InvoiceGrouping": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Type": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "Job": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "JCCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "CostingMethod": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "NonBillable": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "Certified": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "PRLocalCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "InsCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "BillingEmail": {
          "maxLength": 255,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CraftTemplate": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "UseTaxCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Reviewer": {
          "maxLength": 3,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "AltBillAddr": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "InvoiceGroupingPOOverride": {
          "enum": [
            "Y",
            "N",
            null
          ],
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "UniqueAttchID": {
          "maxLength": 36,
          "minLength": 36,
          "pattern": "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        }
      }
    }
  }
}