Xero · Schema

Phone

AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business

Properties

Name Type Description
PhoneType string
PhoneNumber string max length = 50
PhoneAreaCode string max length = 10
PhoneCountryCode string max length = 20
View JSON Schema on GitHub

JSON Schema

xero-phone-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Phone",
  "title": "Phone",
  "externalDocs": {
    "url": "http://developer.xero.com/documentation/api/types"
  },
  "properties": {
    "PhoneType": {
      "type": "string",
      "enum": [
        "DEFAULT",
        "DDI",
        "MOBILE",
        "FAX",
        "OFFICE"
      ]
    },
    "PhoneNumber": {
      "description": "max length = 50",
      "maxLength": 50,
      "type": "string"
    },
    "PhoneAreaCode": {
      "description": "max length = 10",
      "maxLength": 10,
      "type": "string"
    },
    "PhoneCountryCode": {
      "description": "max length = 20",
      "maxLength": 20,
      "type": "string"
    }
  },
  "type": "object"
}