{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nice/json-schema/nice-contact-compeleted-schema.json",
  "title": "contactCompeleted",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nice-reporting-reporting-openapi.yml#/components/schemas/contactCompeleted",
  "type": "object",
  "properties": {
    "businessUnitId": {
      "type": "integer",
      "description": "ID of Business Unit"
    },
    "lastPollTime": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp of last database poll based on the UTC time zone."
    },
    "contactId": {
      "type": "object",
      "properties": {
        "abandoned": {
          "type": "boolean",
          "description": "True or False, indicates if the individual Contact, in the list of Contacts, was an abandoned contact"
        },
        "abandonSeconds": {
          "type": "number",
          "format": "double",
          "description": "The amount of time - in seconds.milliseconds - until the Contact was abandoned. Zero (0), indicates that the Contact was not abandoned"
        },
        "acwSeconds": {
          "type": "number",
          "format": "double",
          "description": "The amount of time - in seconds.milliseconds - that the Agents spent doing after call work (ACW) for the Contact. This is the same as the Custom Reporting field called ACW Time= The amount of time the Agent spent doing work after the call"
        },
        "agentId": {
          "type": "integer",
          "format": "int64",
          "description": "This is a unique, system-generated ID assigned to each Agent."
        },
        "agentSeconds": {
          "type": "number",
          "format": "double",
          "description": "The number of seconds.milliseconds Contact was with the Agent"
        },
        "analyticsProcessedDate": {
          "type": "string",
          "format": "date-time",
          "description": "Date on which the interaction was ingested, or taken in, by Interaction Analytics for analysis. It must be in ISO 8601 format based on the UTC time zone."
        },
        "callbackTime": {
          "type": "integer",
          "description": "The amount of time - in seconds - that each Contact spent waiting for their callback after they requested one"
        },
        "campaignId": {
          "type": "integer",
          "description": "The unique, system-generated ID assigned to the campaign."
        },
        "campaignName": {
          "type": "string",
          "format": "double",
          "description": "The name of the Campaign for the Contact."
        },
        "conferenceSeconds": {
          "type": "number",
          "format": "double",
          "description": "The amount of time - in seconds.milliseconds - that the Contact was in the conference state"
        },
        "contactId": {
          "type": "integer",
          "format": "int64",
          "description": "The unique, system-generated ID of the Contact interaction. Contact ID denotes a \\\"child\\\" Contact ID that is an offspring of a Master/Parent Contact ID."
        },
        "contactStartDate": {
          "type": "string",
          "format": "date-time",
          "description": "The ISO 8601 formatted start time of the Contact, based on the UTC time zone."
        },
        "dateACWWarehoused": {
          "type": "string",
          "format": "date-time",
          "description": "The ISO 8601 formatted time that the ACW was warehoused, based on the UTC time zone"
        },
        "dateContactWarehoused": {
          "type": "string",
          "format": "date-time",
          "description": "The ISO 8601 formatted time that the Contact was warehoused, based on the UTC time zone"
        },
        "digitalContactStateId": {
          "type": "integer",
          "description": "Digital Contact State ID."
        },
        "digitalContactStateName": {
          "type": "string",
          "description": "Digital contact state name"
        },
        "dispositionNotes": {
          "type": "string",
          "description": "The notes from dispositioning the Contact"
        },
        "endReason": {
          "type": "string",
          "description": "The reason the contact ended"
        },
        "firstName": {
          "type": "string",
          "description": "First name associated with a prospective contact ID record. If the interaction did not include any connection , the value is null."
        },
        "fromAddress": {
          "type": "string",
          "description": "Default the DNI, email, or chat address of the source Contact."
        },
        "highProficiency": {
          "type": "integer",
          "description": "The bottom value identified for the bullseye range of the contact."
        },
        "holdCount": {
          "type": "integer",
          "description": "The number of times Contact was on hold."
        },
        "holdSeconds": {
          "type": "number",
          "format": "double",
          "description": "The amount of time - in seconds.milliseconds - that the Contact was on hold"
        },
        "inQueueSeconds": {
          "type": "number",
          "format": "double",
          "description": "The amount of time - in seconds.milliseconds - that the Contact was in queue"
        },
        "isActive": {
          "type": "boolean",
          "description": "True or False, indicates if the agent is in an ACTIVE state or not."
        },
        "isAnalyticsProcessed": {
          "type": "boolean",
          "description": "True or False, whether or not it contains analyticsProcessedDate"
        },
        "isLogged": {
          "type": "boolean",
          "description": "True or False, indicates if the Contact was logged."
        },
        "isOutbound": {
          "type": "boolean",
          "description": "True or False, Indicates if active Contact is using an outbound"
        },
        "isRefused": {
          "type": "boolean",
          "description": "True or False, indicates if the Contact was refused"
        },
        "isShortAbandon": {
          "type": "boolean",
          "description": "True or False, indicates if the Contact was short abandoned"
        },
        "isTakeover": {
          "type": "boolean",
          "description": "True or False, indicates whether the Contact was taken over by a supervisor (true) or not taken over by a supervisor (false)."
        },
        "isWarehoused": {
          "type": "boolean",
          "description": "True or False, indicates if the Contact was warehoused"
        },
        "lastName": {
          "type": "string",
          "description": "Last name associated with a prospective contact ID record. If the interaction did not include any connection , the value is null."
        },
        "lastUpdateTime": {
          "type": "string",
          "format": "date-time",
          "description": "Time of last record update. It must be in ISO 8601 format based on the UTC time zone."
        },
        "lowProficiency": {
          "type": "number",
          "format": "double",
          "description": "The top value identified for the bullseye range of the contact."
        },
        "masterContactId": {
          "type": "integer",
          "format": "int64",
          "description": "ID of the source Contact associated with this Contact."
        },
        "mediaSubTypeId": {
          "type": "integer",
          "description": "ID of digital types of channels"
        },
        "mediaSubTypeName": {
          "type": "string",
          "description": "List of Name of digital channel types such as Facebook, Apple Business Chat or WhatsApp."
        },
        "mediaTypeId": {
          "type": "integer",
          "description": "The numeric ID of the Media Type. It will be one of the following values= 1, 2, 3, 4, 5, 6, 7, 8, 9."
        },
        "mediaTypeName": {
          "type": "string",
          "description": "The name of the Media Type. It will be one of the following values:\n  - 1 = Email\n  - 2 = FAX\n  - 3 = Chat\n  - 4 = Phone Call\n  - 5 = Voice Mail\n  - 6 = Work Item\n  - 7 = SMS\n  - 8 = Social\n  - 9 = Digital."
        },
        "pointOfContactId": {
          "type": "integer",
          "description": "ID of point of Contact."
        },
        "pointOfContactName": {
          "type": "number",
          "format": "double",
          "description": "The name of Point of Contact"
        },
        "postQueueSeconds": {
          "type": "number",
          "format": "double",
          "description": "The amount of time - in seconds.milliseconds - that the Contact remained on the line after the agent disconnected. This statistic counts the time a caller stays on the phone for events like talking to an agent after a transfer, or after an UNLINK action in a script disconnects the agent and passes the caller to a post-call survey"
        },
        "preQueueSeconds": {
          "type": "number",
          "format": "double",
          "description": "The amount of time - in seconds.milliseconds - that the Contact was active before being put into queue"
        },
        "primaryDispositionId": {
          "type": "integer",
          "description": "The ID of the primary disposition"
        },
        "refuseReason": {
          "type": "string",
          "description": "The reason the Contact was refused"
        },
        "refuseTime": {
          "type": "integer",
          "description": "The ISO 8601 formatted time when the Contact was refused, based on the UTC time zone"
        },
        "releaseSeconds": {
          "type": "number",
          "format": "double",
          "description": "The amount of time - in seconds.milliseconds - that it took for the Contact to be released after the Contact was disconnected"
        },
        "routingAttribute": {
          "type": "integer",
          "description": "The specific Routing Attribute assigned to the contact."
        },
        "routingTime": {
          "type": "integer",
          "description": "The amount of time - in SeMILLISECONDS - that it took the system to route the contact to an agent after the contact entered the queue"
        },
        "secondaryDispositionId": {
          "type": "number",
          "format": "double",
          "description": "The ID of secondary disposition"
        },
        "serviceLevelFlag": {
          "type": "integer",
          "description": "The service level flag associated with the contacts:\n  - -1 = The contact never entered the queue\n  -  0 = An agent handled the contact within the required service level\n  -  1 = An agent did not handle the contact within the required service level"
        },
        "skillId": {
          "type": "integer",
          "description": "The unique system-generated ID of the skill Agent is working on."
        },
        "skillName": {
          "type": "string",
          "description": "The text description of the skill. It displays the name assigned to the skill."
        },
        "stateId": {
          "type": "integer",
          "description": "The number corresponding to the final state that the Contact held."
        },
        "stateName": {
          "type": "string",
          "description": "Name of the contact state"
        },
        "teamId": {
          "type": "integer",
          "description": "The unique, system-generated ID assigned to each Team."
        },
        "teamName": {
          "type": "string",
          "description": "Name of Agent Team."
        },
        "toAddress": {
          "type": "string",
          "description": "The DNIS, email, or chat address of the destination Contact. For non interactions, the value is null."
        },
        "totalDurationSeconds": {
          "type": "number",
          "format": "double",
          "description": "The amount of time - in seconds.milliseconds - that the Contact was active"
        },
        "transferIndicatorId": {
          "type": "integer",
          "description": "The numeric ID of the transferred. It will be one of the following values= 0, 1, 2, 3, 4, 5"
        },
        "transferIndicatorName": {
          "type": "number",
          "format": "double",
          "description": "The number indicating if and how the contact was transferred:\n  - 0 = Original Contact (&quot;None&quot;) or Consult and Connect\n  - 1 = ReSkill\n  - 2 = ReAgent\n  - 3 = Consult\n  - 4 = TakeOver\n  - 5 = Elevated"
        },
        "divisionNo": {
          "type": "number",
          "description": "The DivisionNo for a particular tenant"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "tagId": {
                "type": "integer",
                "description": "ID of the Tag assigned to the Contact"
              },
              "tagName": {
                "type": "string",
                "description": "The name of the Tag assigned to the Contact"
              }
            }
          }
        }
      }
    }
  }
}