Request

POST http:///fleet.roadprotect.co.il/api/v1/infringement/{infringementId}

Path parameters

Parameter name Value Description Additional
infringementId number Required

Request body

The request body takes a complete UpdateInfringementDto resource, containing the following writable properties:

{
    "amountDue": "string",
    "approvedDate": "string",
    "brn": "string",
    "caseNumber": "string",
    "dateRedirectionCompleted": "string",
    "infringementStatus": "string",
    "isExternal": "boolean",
    "issuer": "string",
    "issuerStatus": "string",
    "issuerStatusDescription": "string",
    "latestPaymentDate": "string",
    "nominationStatus": "string",
    "note": "string",
    "notes": [
        "string"
    ],
    "noticeNumber": "string",
    "offenceDate": "string",
    "originalAmount": "string",
    "paymentAmount": "number",
    "paymentDate": "string",
    "paymentReference": "string",
    "reason": "string",
    "reasonCode": "string",
    "redirectionIdentifier": "string",
    "redirectionLetterSendDate": "string",
    "redirectionReference": "string",
    "redirectionType": "string",
    "setRedirectionCompletionDate": "boolean",
    "setRedirectionIdentifier": "boolean",
    "timezone": "string",
    "type": "string"
}

Properties

Name Type Description Additional
amountDue string Optional
approvedDate string Optional
brn string Optional
caseNumber string Optional
dateRedirectionCompleted string

The date that the redirection completed

Optional
infringementStatus string

Possible values are:

  • Due
  • Outstanding
  • Paid
  • Closed
  • Approved for Payment
Optional
isExternal boolean Optional
issuer string Optional
issuerStatus string Optional
issuerStatusDescription string Optional
latestPaymentDate string Optional
nominationStatus string

Possible values are:

  • Pending
  • Acknowledged
  • In Redirection Process
  • Closed
  • Redirection Completed
Optional
note string Optional
notes[] array of string Optional
noticeNumber string Optional
offenceDate string Optional
originalAmount string Optional
paymentAmount number Optional
paymentDate string Optional
paymentReference string Optional
reason string

The reason for the offence

Optional
reasonCode string

The reason code for the offence

Optional
redirectionIdentifier string

An identifier of the person or business that you are redirecting the infringement to

Optional
redirectionLetterSendDate string

The date that the redirection letter was sent to the municipality

Optional
redirectionReference string

A reference attached to the redirection

Optional
redirectionType string

Possible values are:

  • Manual Email
  • ATG Integration
  • Manual Upload
  • External
  • Telaviv
  • Jerusalem
  • Police
  • Mileon
Optional
setRedirectionCompletionDate boolean Optional
setRedirectionIdentifier boolean Optional
timezone string Optional
type string

Possible values are:

  • Parking
  • Traffic
  • Environmental
  • Other
Optional

Authorisation

To authenticate your client integration please put your token in the header of your requests with the key Authorization, it should look like this:

Authorization: Bearer YOUR_TOKEN_HERE

Please keep your token secured. If your token is compromised, we can issue a new token for you.

This request requires the use of one of following authorisation methods: API key .

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
201 Created Infringement
400 Bad Request
  • Invalid infringement status update. Cannot go from current to next.
  • E037: Could not find Infringement with id: infringementId
500 Internal Server Error

Database Error

Example Request

NodeJs Request

For example, to update the case number: - Replace INFRINGMENT_ID with the desired infringementId. - Replace CASE_NUMBER with the desired caseNumber.

var request = require('request');
var options = {
    'method': 'POST',
    'url': 'http://fleet.roadprotect.co.il/api/v1/infringement/INFRINGMENT_ID',
    'headers': {
        'Authorization': 'Bearer YOUR_TOKEN_HERE', 
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({"caseNumber":"'CASE_NUMBER'"})
};
request(options, function (error, response) {
    if (error) throw new Error(error);
    console.log(response.body);
});

Python Requests

For example, to update the case number: - Replace INFRINGMENT_ID with the desired infringementId. - Replace CASE_NUMBER with the desired caseNumber.

import requests
url = "http://fleet.roadprotect.co.il/api/v1/infringement/INFRINGMENT_ID"

payload="{\n    \"caseNumber\":\"'CASE_NUMBER'\"\n}"
headers = {
    'Authorization': 'Bearer YOUR_TOKEN_HERE',
    'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)