Request

POST http:///fleet.roadprotect.co.il/api/v1/ownership-contract

Request body

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

{
    "document": "number",
    "endDate": "string",
    "owner": "string",
    "reference": "string",
    "startDate": "string",
    "vehicle": {}
}

Properties

Name Type Description Additional
document number

The documentId for the license document

Optional
endDate string

The ownership end date

Optional
owner string

The lease contract owner BRN

reference string

An optional reference Id for linking to batch file upload or your system Id

Optional
startDate string

The ownership start date

vehicle object

The vehicle registration

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 OwnershipContract
400 Bad Request
  • E026: Account with identifier accountIdentifier not found
  • E038: Provided contract dates overlap with existing contract(s)
  • E044: Could not find Document with id: documentId
  • E049: Could not find Vehicle with registration registration
  • E050: Contract with id contractId not found
  • E118: Owner must be defined when creating contract
500 Internal Server Error

Failed to create ownership contract, please contact the developers.