POST Metrics/Infringements?fromDate={fromDate}&toDate={toDate}

Get infringements.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
fromDate

integer

Required

toDate

integer

Required

Body Parameters

Dictionary of string [key] and Object [value]

Request Formats

application/json, text/json

Sample:
{
  "sample string 1": {},
  "sample string 3": {}
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfstringanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfstringanyType>
    <Key>sample string 1</Key>
    <Value />
  </KeyValueOfstringanyType>
  <KeyValueOfstringanyType>
    <Key>sample string 3</Key>
    <Value />
  </KeyValueOfstringanyType>
</ArrayOfKeyValueOfstringanyType>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Dictionary`2'.

Response Information

Resource Description

InfringementRestResult
NameDescriptionTypeAdditional information
TotalAmount

Total amount of money for fines.

integer

None.

TotalCount

Total count of infringemenets.

integer

None.

Fines

All fines.

Collection of Fine

None.

AverageScore

Average driver scores.

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalAmount": 1,
  "TotalCount": 2,
  "Fines": [
    {
      "FineId": 1,
      "ViolationNo": 2,
      "Amount": 1,
      "PlateNo": "sample string 3",
      "PostingDate": "2024-04-30T01:46:28.7589862+02:00",
      "ViolationDate": "2024-04-30T01:46:28.7589862+02:00",
      "FineAuthority": 6,
      "FineDescription": 7,
      "Location": "sample string 8",
      "Timestamp": "2024-04-30T01:46:28.7680337+02:00",
      "FkAssetId": 1,
      "FkDriverId": 1,
      "Status": 1,
      "SmsSentTimestamp": "2024-04-30T01:46:29.0017823+02:00",
      "FkNotificationLogId": 1
    },
    {
      "FineId": 1,
      "ViolationNo": 2,
      "Amount": 1,
      "PlateNo": "sample string 3",
      "PostingDate": "2024-04-30T01:46:28.7589862+02:00",
      "ViolationDate": "2024-04-30T01:46:28.7589862+02:00",
      "FineAuthority": 6,
      "FineDescription": 7,
      "Location": "sample string 8",
      "Timestamp": "2024-04-30T01:46:28.7680337+02:00",
      "FkAssetId": 1,
      "FkDriverId": 1,
      "Status": 1,
      "SmsSentTimestamp": "2024-04-30T01:46:29.0017823+02:00",
      "FkNotificationLogId": 1
    }
  ],
  "AverageScore": 3.1
}

application/xml, text/xml

Sample:
<InfringementRestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models">
  <AverageScore>3.1</AverageScore>
  <Fines xmlns:d2p1="http://schemas.datacontract.org/2004/07/CheetaCommon">
    <d2p1:Fine>
      <d2p1:Amount>1</d2p1:Amount>
      <d2p1:FineAuthority>6</d2p1:FineAuthority>
      <d2p1:FineDescription>7</d2p1:FineDescription>
      <d2p1:FineId>1</d2p1:FineId>
      <d2p1:FkAssetId>1</d2p1:FkAssetId>
      <d2p1:FkDriverId>1</d2p1:FkDriverId>
      <d2p1:FkNotificationLogId>1</d2p1:FkNotificationLogId>
      <d2p1:Location>sample string 8</d2p1:Location>
      <d2p1:PlateNo>sample string 3</d2p1:PlateNo>
      <d2p1:PostingDate>2024-04-30T01:46:28.7589862+02:00</d2p1:PostingDate>
      <d2p1:SmsSentTimestamp>2024-04-30T01:46:29.0017823+02:00</d2p1:SmsSentTimestamp>
      <d2p1:Status>1</d2p1:Status>
      <d2p1:Timestamp>2024-04-30T01:46:28.7680337+02:00</d2p1:Timestamp>
      <d2p1:ViolationDate>2024-04-30T01:46:28.7589862+02:00</d2p1:ViolationDate>
      <d2p1:ViolationNo>2</d2p1:ViolationNo>
    </d2p1:Fine>
    <d2p1:Fine>
      <d2p1:Amount>1</d2p1:Amount>
      <d2p1:FineAuthority>6</d2p1:FineAuthority>
      <d2p1:FineDescription>7</d2p1:FineDescription>
      <d2p1:FineId>1</d2p1:FineId>
      <d2p1:FkAssetId>1</d2p1:FkAssetId>
      <d2p1:FkDriverId>1</d2p1:FkDriverId>
      <d2p1:FkNotificationLogId>1</d2p1:FkNotificationLogId>
      <d2p1:Location>sample string 8</d2p1:Location>
      <d2p1:PlateNo>sample string 3</d2p1:PlateNo>
      <d2p1:PostingDate>2024-04-30T01:46:28.7589862+02:00</d2p1:PostingDate>
      <d2p1:SmsSentTimestamp>2024-04-30T01:46:29.0017823+02:00</d2p1:SmsSentTimestamp>
      <d2p1:Status>1</d2p1:Status>
      <d2p1:Timestamp>2024-04-30T01:46:28.7680337+02:00</d2p1:Timestamp>
      <d2p1:ViolationDate>2024-04-30T01:46:28.7589862+02:00</d2p1:ViolationDate>
      <d2p1:ViolationNo>2</d2p1:ViolationNo>
    </d2p1:Fine>
  </Fines>
  <TotalAmount>1</TotalAmount>
  <TotalCount>2</TotalCount>
</InfringementRestResult>