For us to integrate with a rental company they need to provide 2 services.
This service is optional.
If you want to do all processing on your end you can skip this service.
Implementation
What we expect back from the service is a unique identifier for the rental agreement.
Then we would use that when registering the payment.
If no agreement is found we would skip the payment register step.
We expect the service to response in a restfull way.
Request
GET <https://baseUrl/lookup-vehicle?plate=test123&startOn=2022-09-13T10:48:25>
Response
Expected response statuses
Success: 200 Invalid input: 400 Vehicle not found: 404 Rental agreement not found: 404
Example responses:
Success Response
{
"rentalId": "7f559daf-ac48-4952-9764-5db69cbadbad"
}
Failure Response
{
"message": "No rental agreement found"
}