Ledger Transaction

Get A Resource By ID

HTTP Request

GET /api/v1/ledger-transaction/{id}

📋 Description: Returns the single resource with the given ID.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Resource ID

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Update A Resource

HTTP Request

PUT /api/v1/ledger-transaction/{id}

📋 Description: Fully replaces the resource with the given ID. All fields in the request body are applied.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Resource ID

body

body

LedgerTransactionDto

true

Request body containing the updated ledger transaction details, including transaction amount, date, and associated metadata.

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Delete A Single Resource

HTTP Request

DELETE /api/v1/ledger-transaction/{id}

📋 Description: Permanently deletes the resource with the given ID.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseVoid

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Partially Update A Resource (Json Patch)

HTTP Request

PATCH /api/v1/ledger-transaction/{id}

📋 Description: Applies a JSON Patch (RFC 6902) document to the resource with the given ID. Only the fields specified in the patch are modified; all other fields remain unchanged.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

body

body

JsonPatch

true

Request body containing the updated ledger transaction details, including the transaction amount, description, and any relevant metadata for accurate financial record-keeping.

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Bulk Create-Or-Update Resources

HTTP Request

PUT /api/v1/ledger-transaction/createOrUpdate/bulk

📋 Description: Creates or updates multiple resources in a single request. Partial success: each item is processed independently. Items that pass validation are persisted; failed items are recorded in the response errors list. The response body always contains the successfully processed items alongside any per-item errors.

Parameters

Name

In

Type

Required

Description

body

body

LedgerTransactionDto

true

Request body containing an array of ledger transaction records for bulk creation or update, including necessary financial details and associated metadata.

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseListLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Create Or Update A Resource

HTTP Request

PUT /api/v1/ledger-transaction/createOrUpdate

📋 Description: Creates the resource if no matching record exists, or fully updates it if one is found. Idempotent: safe to call multiple times with the same payload.

Parameters

Name

In

Type

Required

Description

body

body

LedgerTransactionDto

true

Request body containing the ledger transaction details, including transaction ID, amount, date, and associated account information for creating or updating financial records.

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Bulk-Update Resources

HTTP Request

PUT /api/v1/ledger-transaction/bulk

📋 Description: Updates multiple resources in a single request. Partial success: each item is processed independently. Items that pass validation are updated; failed items are recorded in the response errors list. The response body always contains the successfully updated items alongside any per-item errors.

Parameters

Name

In

Type

Required

Description

body

body

LedgerTransactionDto

true

Request body containing an array of ledger transaction records, each including transaction details and associated metadata for bulk processing.

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseListLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Bulk-Create Resources

HTTP Request

POST /api/v1/ledger-transaction/bulk

📋 Description: Creates multiple resources in a single request. Partial success: each item is processed independently. Items that pass validation are persisted; failed items are recorded in the response errors list. The response body always contains the successfully created items alongside any per-item errors.

Parameters

Name

In

Type

Required

Description

body

body

LedgerTransactionDto

true

Request body containing an array of ledger transaction records, each including transaction details and metadata for bulk processing.

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseListLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Bulk-Delete Resources

HTTP Request

DELETE /api/v1/ledger-transaction/bulk

📋 Description: Deletes multiple resources by ID in a single request. Partial success: each deletion is attempted independently. If one or more deletions fail (e.g. due to state constraints), the successfully deleted items are NOT rolled back. A ValidationException containing per-item errors is thrown after all items have been attempted, so the caller must inspect the error list to determine which IDs were not deleted.

Parameters

Name

In

Type

Required

Description

body

body

array[integer]

true

Request body containing an array of ledger transaction identifiers to be deleted in bulk, ensuring efficient management of financial records.

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseVoid

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Search Resources

HTTP Request

POST /api/v1/ledger-transaction/search

📋 Description: Returns a paginated list of resources matching the given filter criteria. Pass null or an empty body to return all accessible records.

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

LedgerTransactionDtoFilter

false

Request body containing the search criteria and filters for retrieving specific ledger transaction records.

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

OK

PageLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

List All Resources

HTTP Request

GET /api/v1/ledger-transaction

📋 Description: Returns a paginated list of all accessible resources ordered by ID. Prefer POST /search for filtered queries.

Parameters

Name

In

Type

Required

Description

pageable

query

Pageable

true

Indicates whether the results of the ledger transactions should be returned in a paginated format, facilitating efficient data retrieval for large datasets.

Responses

Status

Meaning

Description

Schema

200

OK

OK

PageLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Create A Resource

HTTP Request

POST /api/v1/ledger-transaction

📋 Description: Creates a single resource. Returns the created resource with its generated ID.

Parameters

Name

In

Type

Required

Description

body

body

LedgerTransactionDto

true

Request body containing the ledger transaction details, including transaction type, amount, date, and associated account information for accurate financial record-keeping.

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Get Ledger Transactions For A Workspace

HTTP Request

GET /api/v1/ledger-transaction/workspace/{workspaceId}

📋 Description: Returns all ledger transactions for all invoices in the specified workspace, grouped by invoice ID. Note: pagination/streaming will be added in a future release.

Parameters

Name

In

Type

Required

Description

workspaceId

path

integer(int64)

true

Workspace ID

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseMapLongListLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Get Ledger Transactions For An Invoice

HTTP Request

GET /api/v1/ledger-transaction/invoice/{invoiceId}

📋 Description: Returns all ledger transactions associated with the specified invoice.

Parameters

Name

In

Type

Required

Description

invoiceId

path

integer(int64)

true

Invoice ID

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseListLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Get Ledger Transactions For An Invoice Payment

HTTP Request

GET /api/v1/ledger-transaction/invoice-payment/{invoicePaymentId}

📋 Description: Returns all ledger transactions associated with the specified invoice payment.

Parameters

Name

In

Type

Required

Description

invoicePaymentId

path

integer(int64)

true

Invoice payment ID

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseListLedgerTransactionDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto