View Account History

This documentation will describe the View Account History (XMHIST) endpoint. This endpoint allows users to view subscriber account history.

Use cases

  • Panel/alarm application developers requiring history data of a given account number.
  • Individuals writing reports that require history data of a given account number.

Supported attributes

AttributeTypeRequiredDescription
*setMethodstringYesDetermines the endpoint you are calling. Must be XMHIST to view history.
ACCOUNTstringYesThe subscriber account number (9 character max). The system will display the history stored on this account.
STARTDATEstringYesThe date the system should begin pulling history information. This will be the date of the earliest history record in the resulting report. Expects YYYYMMDD format (Example: 20240109).
STARTTIMEstringNoThe time on the STARTDATE the system should begin pulling history information. Defaults to 0000. Expects HHMI (24-hour) format (Example: 2200).
STOPDATEstringYesThe date the system should stop pulling history information. This will be the date of the latest history record in the resulting report. Expects YYYYMMDD format.
STOPTIMEstringNoThe time on the STOPDATE the system should stop pulling history information. Defaults to 0000. Expects HHMI (24-hour) format.
HOURSintegerNoNumber of hours of history to retrieve if STARTDATE and STOPDATE are not sent.
SEARCHTYPEstringNoDetermines if operator handled signals will be included in the results. Use OPR to include operator handled signals in the report.
SERVICEONLYstringNoDetermines if only history events related to the service system should be returned. Accepts: Y or N.
LIMITHISTintegerNoReturn no more than this many history records starting with the newest.
NOMULTIPLESstringNoDetermines if MESSAG, SYS, and events with no resolution are ignored. Accepts: Y or N.

Example request

curl --location "https://example.securemcloud.com/rest/rest.php?dataSource=methods&*view=xmsubmit" \
--header 'X-DICE-APPKEY: {{X-DICE-APPKEY}}' \
--header 'X-DICE-USERNAME: {{X-DICE-USERNAME}}' \
--header 'X-DICE-DATE: {{X-DICE-DATE}}' \
--header 'X-DICE-NONCE: {{X-DICE-NONCE}}' \
--header 'X-DICE-DIGEST: {{X-DICE-DIGEST}}' \
--form '*setMethod="XMHIST"' \
--form 'ACCOUNT="DOC123"' \
--form 'STARTDATE="20240101"' \
--form 'STARTTIME="0900"' \
--form 'STOPDATE="20240102"' \
--form 'STOPTIME="1200"' \
--form 'HOURS=""' \
--form 'SEARCHTYPE="OPR"' \
--form 'SERVICEONLY="N"' \
--form 'LIMITHIST="500"' \
--form 'NOMULTIPLES="Y"'

Example response

{
    "EVENT": {
        "ACCOUNT_NUMBER": "    KMN12",
        "HISTORY_EVENT_NTD": "738889.70836",
        "HISTORY_EVENT_DATE": "01/02/24 17:00:02",
        "INCIDENT_NUMBER": "  196977",
        "SEIA_CODE": "E752 ",
        "ZONE_CODE_1": "E752  ",
        "ZONE_CODE_2": "10    ",
        "TYPE": "TICKER",
        "OPR": "OPR",
        "ALARM_CATEGORY": "N",
        "PRIORITY": "B",
        "HIST_TEXT": "SMS Test",
        "ZONE_1": "E752  ",
        "ZONE_2": "10    ",
        "AM_NOTIFY": "N",
        "PENDING_TIME": "738889.70836",
        "PR_CHECKSUM": "32776",
        "SECOND_ZONE_IS": "Z",
        "COLOR": "40",
        "VIDEO": "Y"
    }
}

Response fields

FieldDescription
ACCOUNT_NUMBERThe subscriber account the alarm is assigned to (the account the alarm came in from).
HISTORY_EVENT_NTDThe time the alarm was received by the system in NTD format.
HISTORY_EVENT_DATEThe date and time the alarm was received in MM/DD/YY HH:MM:SS format.
INCIDENT_NUMBERUnique identifier created by the system and assigned to the event.
SEIA_CODEThe contact ID code sent from the panel.
ZONE_CODE_1The contact ID code sent from the panel.
ZONE_CODE_2The zone received from the panel.
TYPEThe alarm code received.
OPRThe operator code of the individual who handled the alarm.
ALARM_CATEGORYThe category assigned to the alarm. See the Alarm Category documentation for descriptions of the categories.
PRIORITYThe importance assigned to the alarm type.
HIST_TEXTThe alarm description written to account history.
ZONE_1The contact ID code sent from the panel.
ZONE_2The contact ID code sent from the panel.
AM_NOTIFYWhether or not the subscriber want to receive a notification for the alarm type received.
PENDING_TIMEThe event’s NTD timestamp received from the panel.
PR_CHECKSUMDetermines the process path taken by the signal.
SECOND_ZONE_ISDetermines how the zone description is created.
Z uses the zone description within data entry.
U uses the user who generated the signal (in the case of Opens, Closes, etc.)
N uses the panel generated zone description.
COLORThe color of the alarm and its assigned text when displayed in pending. The first character is the background color, the second is the foreground (text) color. See the Supplemental Information documentation for information on how to interpret this field.
VIDEOWhether or not the alarm includes video surveillance footage attached.

Note: The HISTORY_EVENT_NTD is the date and time coded in a custom format. See the Date Format documentation for instructions on how to convert NTD to UNIX (and vice versa) as necessary.