Unit

Retrieve A Specific Unit

HTTP Request

GET /api/v1/units/{id}

📋 Description: Fetches detailed information about a specific unit identified by its unique ID, facilitating the management of leases, contracts, and associated financial obligations within the Nakisa Lease Accounting Suite.

Parameters

Name

In

Type

Required

Description

id

path

integer

true

Unique identifier for the resource

Example Values

Parameter

Example

Type

id

10000001

path

Responses

Status

Meaning

Description

Schema

200

OK

Successfully retrieved unit.

ResponseUnitDto

Update A Specific Unit

HTTP Request

PUT /api/v1/units/{id}

📋 Description: Updates the details of a specified unit within the Nakisa Lease Accounting Suite, allowing users to modify lease, contract, or financial obligation information associated with that unit to ensure accurate accounting entries.

Parameters

Name

In

Type

Required

Description

id

path

integer

true

Unique identifier for the resource

body

body

UnitDto

false

Request body containing updated unit information, including lease details, contract terms, and financial obligations relevant to accounting entries.

Example Values

Parameter

Example

Type

id

10000086

path

Responses

Status

Meaning

Description

Schema

200

OK

Unit successfully updated.

UnitDto

Partially Update A Unit

HTTP Request

PATCH /api/v1/units/{id}

📋 Description: Updates the specified unit within the Nakisa Lease Accounting Suite, allowing for modifications to lease, contract, or financial obligation details associated with accounting entries. This operation ensures that all relevant information remains current and accurate for effective financial management.

Parameters

Name

In

Type

Required

Description

id

path

integer

true

Unique identifier for the resource

body

body

JsonPatch

false

Request body containing updated lease unit information, including financial obligations and accounting entries, for the specified unit identified by its unique ID.

Example Values

Parameter

Example

Type

id

10000081

path

body

{"op":"replace","path":"/name","value":"patched contract"}

body

Responses

Status

Meaning

Description

Schema

200

OK

Successfully patched unit.

ResponseUnitDto

Update Units In Bulk

HTTP Request

PUT /api/v1/units/bulk

📋 Description: Updates multiple units in bulk within the Nakisa Lease Accounting Suite, enabling efficient management of lease contracts and associated financial obligations in a streamlined manner.

Parameters

Name

In

Type

Required

Description

body

body

UnitDto

false

Request body containing a bulk array of unit data, including lease details, contract specifications, and associated financial obligations for accounting entries.

Responses

Status

Meaning

Description

Schema

200

OK

Units successfully updated in bulk.

ResponseListUnitDto

Search Units

HTTP Request

POST /api/v1/units/search

📋 Description: Submits a search request for lease units within the Nakisa Lease Accounting Suite, allowing users to filter results based on specific lease, contract, financial obligation, or accounting entry criteria.

Parameters

Name

In

Type

Required

Description

page

query

integer

false

Zero-based page index (0..N)

size

query

integer

false

The size of the page to be returned

sort

query

array[string]

false

Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.

body

body

UnitDtoFilter

false

Request body containing search criteria for lease units, including relevant contract details and financial obligations to facilitate accurate accounting entry retrieval.

Default Values

Parameter

Default

Type

page

0

query

size

100

query

sort

["createdAt,ASC"]

query

Parameter Constraints

Parameter

Constraints

page

Min: 0

size

Min: 1

Responses

Status

Meaning

Description

Schema

200

OK

Search results for units successfully returned.

PageUnitDto

Create Or Update Unit Cost Objects

HTTP Request

POST /api/v1/units/cost-objects/createOrUpdate

📋 Description: Creates or updates cost objects associated with leases and contracts within the Nakisa Lease Accounting Suite, ensuring accurate financial obligations and accounting entries are maintained.

Parameters

Name

In

Type

Required

Description

body

body

UnitCostObjectsModificationRequest

false

Request body containing the lease and contract details, including financial obligations and accounting entries, for creating or updating cost objects within the Nakisa Lease Accounting Suite.

Responses

Status

Meaning

Description

Schema

200

OK

Successfully created or updated unit cost objects.

ResponseVoid

List All Units

HTTP Request

GET /api/v1/units

📋 Description: Retrieves a list of units associated with leases and contracts within the Nakisa Lease Accounting Suite, providing essential data for managing financial obligations and accounting entries.

Parameters

Name

In

Type

Required

Description

pageable

query

Pageable

false

Indicates whether the results of the lease units query should be returned in a paginated format, facilitating efficient data retrieval and management of financial obligations within the Nakisa Lease Accounting Suite.

Responses

Status

Meaning

Description

Schema

200

OK

Successfully retrieved list of units.

PageUnitDto

List Unit Cost Objects (Paginated)

HTTP Request

GET /api/v1/units/cost-objects/page/{unitId}/{companyId}/{erpSystemId}

📋 Description: Retrieves cost objects associated with a specific unit within the Nakisa Lease Accounting Suite, allowing users to access relevant lease, contract, and financial obligation data for accounting entries based on the provided unit ID, company ID, and ERP system ID.

Parameters

Name

In

Type

Required

Description

unitId

path

integer

true

Unique identifier for the unit

companyId

path

integer

true

Unique identifier for the company

erpSystemId

path

integer

true

Unique identifier for the erp system

pageable

query

Pageable

false

Indicates whether the response should be paginated, facilitating efficient retrieval of cost object data related to leases and financial obligations within the Nakisa Lease Accounting Suite.

Example Values

Parameter

Example

Type

unitId

10000001

path

companyId

20000005

path

erpSystemId

30000009

path

Responses

Status

Meaning

Description

Schema

200

OK

Successfully retrieved paginated cost objects for the unit.

PageUnitCostObjectDto

Retrieve Latest Unit Cost Object

HTTP Request

GET /api/v1/units/cost-objects/latest/{unitId}/{companyId}/{erpSystemId}

📋 Description: Fetches the latest cost object details for a specified unit within a given company and ERP system, facilitating accurate lease and contract management in financial obligations and accounting entries.

Parameters

Name

In

Type

Required

Description

unitId

path

integer

true

Unique identifier for the unit

companyId

path

integer

true

Unique identifier for the company

erpSystemId

path

integer

true

Unique identifier for the erp system

Example Values

Parameter

Example

Type

unitId

10000001

path

companyId

20000005

path

erpSystemId

30000009

path

Responses

Status

Meaning

Description

Schema

200

OK

Successfully retrieved the latest cost object assignment for the unit.

UnitCostObjectDto

Retrieve Initial Data For Unit Cost Object Modification

HTTP Request

GET /api/v1/units/cost-objects-modification-initial-data/{unitId}

📋 Description: Retrieves initial data for cost object modifications associated with a specified unit, facilitating effective management of lease-related financial obligations and accounting entries within the Nakisa Lease Accounting Suite.

Parameters

Name

In

Type

Required

Description

unitId

path

integer

true

Unique identifier for the unit

Example Values

Parameter

Example

Type

unitId

10000001

path

Responses

Status

Meaning

Description

Schema

200

OK

Successfully retrieved initial cost object modification data for the unit.

ResponseUnitCostObjectsModificationInitialData