Skip to main content

Lease Agreement API Endpoints

User Authentication

Endpoint: /api/auth/login

Method: POST

Request:

{
"username": "string",
"password": "string"
}

Response:

{
"token": "string"
}

Create Lease Agreement

Endpoint: /api/lease

Method: POST

Request:

{
"lesseeDetails": {},
"vehicleDetails": {},
"leaseTerms": {},
"paymentInfo": {}
}

Response:

{
"leaseId": "string",
"message": "Lease agreement created successfully"
}

Get Lease Agreement Details

Endpoint: /api/lease/{leaseId}

Method: GET

Response:

{
"leaseDetails": {}
}

Update Lease Agreement

Endpoint: /api/lease/{leaseId}

Method: PUT

Request:

{
"lesseeDetails": {},
"vehicleDetails": {},
"leaseTerms": {},
"paymentInfo": {}
}

Response:

{
"message": "Lease agreement updated successfully"
}

Delete Lease Agreement

Endpoint: /api/lease/{leaseId}

Method: DELETE

Response:

{
"message": "Lease agreement deleted successfully"
}

List All Lease Agreements

Endpoint: /api/lease

Method: GET

**Response:**

{
"leases": [{}]
}

Follow us:

Copyright © 2024 Defactor. All Rights Reserved