{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-telephony-entreprise-number-informations-task-schema.json",
  "title": "telephony.EntrepriseNumberInformationsTask",
  "description": "Task about getting entreprise information",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-freefax-openapi.yml#/components/schemas/telephony.EntrepriseNumberInformationsTask",
  "type": "object",
  "properties": {
    "informations": {
      "allOf": [
        {
          "$ref": "#/$defs/telephony.EntrepriseNumberInformations"
        }
      ],
      "description": "Task information about an entreprise",
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/telephony.TaskStatusEnum"
        }
      ],
      "description": "Task status",
      "readOnly": true
    }
  },
  "$defs": {
    "telephony.EntrepriseNumberInformations": {
      "type": "object",
      "description": "Task information about an entreprise",
      "properties": {
        "address": {
          "type": [
            "string",
            "null"
          ],
          "description": "Address of the entreprise",
          "readOnly": true
        },
        "ape": {
          "type": [
            "string",
            "null"
          ],
          "description": "Entreprise's category code for directory services",
          "readOnly": true
        },
        "brand": {
          "type": [
            "string",
            "null"
          ],
          "description": "Brand of the entreprise",
          "readOnly": true
        },
        "entrepriseNumber": {
          "type": "string",
          "description": "Entreprise number",
          "readOnly": true
        },
        "isValid": {
          "type": "boolean",
          "description": "Is this a valid entreprise number?",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Name of the entreprise",
          "readOnly": true
        },
        "siren": {
          "type": [
            "string",
            "null"
          ],
          "description": "Short version of the entreprise number (FR only)",
          "readOnly": true
        }
      }
    },
    "telephony.TaskStatusEnum": {
      "type": "string",
      "description": "Task status",
      "enum": [
        "doing",
        "done",
        "error",
        "pause",
        "todo"
      ]
    }
  }
}