Workspaceยถ

Add Invoices To A Workspaceยถ

HTTP Request

PUT /api/v1/workspace/{id}/invoices/add

๐Ÿ“‹ Description: Adds one or more Approved invoices to the specified workspace. Returns a result object describing which invoices were added and which were skipped (e.g. already linked).

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Workspace ID

body

body

array[integer]

true

Request body containing the invoice details, including line items, amounts, and associated metadata, necessary for adding an invoice to the specified workspace.

Responses

Status

Meaning

Description

Schema

200

OK

Invoices processed; see result body for per-invoice outcome

AddingInvoicesToWorkspaceResult

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Get A Resource By IDยถ

HTTP Request

GET /api/v1/workspace/{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

ResponseWorkspaceDto

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/workspace/{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

WorkspaceDto

true

Request body containing the updated workspace details, including name, description, and configuration settings, to facilitate effective workspace management.

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseWorkspaceDto

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/workspace/{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/workspace/{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 workspace information, including attributes such as name, description, and configuration settings.

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseWorkspaceDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Not Supported โ€” Use Put /{ID} To Update A Workspaceยถ

HTTP Request

PUT /api/v1/workspace/createOrUpdate

๐Ÿ“‹ Description: Not supported โ€” use PUT /{id} to update a workspace

Parameters

Name

In

Type

Required

Description

body

body

WorkspaceDto

true

Request body containing the workspace details, including configuration settings and user permissions, for creating or updating a workspace.

Responses

Status

Meaning

Description

Schema

405

Method Not Allowed

Method Not Allowed

ResponseWorkspaceDto

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/workspace/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

WorkspaceDto

true

Request body containing an array of workspace configurations for bulk updates, including details such as workspace identifiers, settings, and associated metadata.

Responses

Status

Meaning

Description

Schema

200

OK

OK

ResponseListWorkspaceDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Not Supported โ€” Bulk Workspace Creation Is Disabledยถ

HTTP Request

POST /api/v1/workspace/bulk

๐Ÿ“‹ Description: Not supported โ€” bulk workspace creation is disabled

Parameters

Name

In

Type

Required

Description

body

body

WorkspaceDto

true

Request body containing an array of workspace configurations for bulk creation, including essential attributes such as workspace name, description, and associated user roles.

Responses

Status

Meaning

Description

Schema

405

Method Not Allowed

Method Not Allowed

ResponseListWorkspaceDto

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/workspace/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 workspace identifiers to be deleted in bulk, ensuring efficient management of workspace resources.

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 Workspacesยถ

HTTP Request

POST /api/v1/workspace/search

๐Ÿ“‹ Description: Returns a paginated list of workspaces matching the given filter criteria, routed through the advanced-search adapter for consistent field mapping.

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

WorkspaceDtoFilter

false

Request body containing search criteria parameters to retrieve relevant workspace information based on user-defined filters.

Default Valuesยถ

Parameter

Default

Type

page

0

query

size

100

query

sort

["CREATED_AT,ASC"]

query

Parameter Constraintsยถ

Parameter

Constraints

page

Min: 0

size

Min: 1

Responses

Status

Meaning

Description

Schema

200

OK

OK

PageWorkspaceDto

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/workspace

๐Ÿ“‹ 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 should be returned in a paginated format, facilitating efficient data retrieval for large datasets.

Responses

Status

Meaning

Description

Schema

200

OK

OK

PageWorkspaceDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Not Supported โ€” Workspace Creation Via This Endpoint Is Disabledยถ

HTTP Request

POST /api/v1/workspace

๐Ÿ“‹ Description: Use PUT /{id}/invoices/add to add invoices; a workspace is auto-created if needed.

Parameters

Name

In

Type

Required

Description

body

body

WorkspaceDto

true

Request body containing the workspace configuration details, including name, description, and access permissions for effective collaboration.

Responses

Status

Meaning

Description

Schema

405

Method Not Allowed

Method Not Allowed

ResponseWorkspaceDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Clear All Invoices From A Workspaceยถ

HTTP Request

PATCH /api/v1/workspace/{workspaceId}/clear

๐Ÿ“‹ Description: Removes all invoices from the workspace, leaving it empty and Open. The workspace itself is NOT deleted โ€” use the standard DELETE endpoint for that.

Parameters

Name

In

Type

Required

Description

workspaceId

path

integer(int64)

true

Workspace ID

Responses

Status

Meaning

Description

Schema

200

OK

Workspace cleared; returns the updated workspace

ResponseWorkspaceDto

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Get Workflow State History For A Workspaceยถ

HTTP Request

GET /api/v1/workspace/{workspaceId}/state-history

๐Ÿ“‹ Description: Returns the ordered list of state transitions the workspace has gone through, each with timestamp and actor information.

Parameters

Name

In

Type

Required

Description

workspaceId

path

integer(int64)

true

Unique identifier for the workspace

Responses

Status

Meaning

Description

Schema

200

OK

OK

Inline

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Response Schema

Status Code 200

Name

Type

Required

Restrictions

Description

anonymous

[WorkspaceStateHistoryDto]

false

none

[Data transfer object representing the historical state of a workspace, capturing key changes and metadata to facilitate effective workspace management and analysis.]

ยป id

integer(int64)

false

none

Unique identifier for the resource

ยป success

boolean

false

none

Indicates whether the operation was successful, providing insight into the outcome of the workspace state change.

ยป failedMessage

string

false

none

Message detailing the reason for the failure of a workspace state transition, providing insights for troubleshooting and resolution.

ยป warningMessage

string

false

none

Message indicating any warnings related to the state history of the workspace, providing insights for effective workspace management.

ยป fromState

string

false

none

Represents the initial state of the workspace in the history of state transitions, providing insight into the workspaceโ€™s operational changes over time.

ยป event

string

false

none

Represents the specific event that occurred within the workspace, providing context for changes in the workspace state history.

ยป comment

string

false

none

Textual feedback or notes associated with changes in the workspace state history, providing context for decision-making and collaboration.

ยป workspaceId

integer(int64)

false

none

Unique identifier for the workspace

Remove A Single Invoice From A Workspaceยถ

HTTP Request

DELETE /api/v1/workspace/{workspaceId}/invoices/{invoiceId}

๐Ÿ“‹ Description: Detaches the specified invoice from the workspace. The invoice reverts to Approved state and becomes eligible for other workspaces.

Parameters

Name

In

Type

Required

Description

workspaceId

path

integer(int64)

true

Workspace ID

invoiceId

path

integer(int64)

true

Invoice ID to remove

Responses

Status

Meaning

Description

Schema

200

OK

OK

None

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto

Bulk-Remove Invoices From A Workspaceยถ

HTTP Request

DELETE /api/v1/workspace/{workspaceId}/invoices

๐Ÿ“‹ Description: Detaches multiple invoices from the workspace in one call. Each removed invoice reverts to Approved state.

Parameters

Name

In

Type

Required

Description

workspaceId

path

integer(int64)

true

Workspace ID

body

body

array[integer]

true

Request body containing the identifiers of invoices to be deleted from the specified workspace, ensuring accurate invoice management and compliance.

Responses

Status

Meaning

Description

Schema

200

OK

OK

None

409

Conflict

Payment amount exceeds remaining invoice balance

InvoicePaymentBalanceConflictDto

502

Bad Gateway

Downstream service call failed

PayableErrorDto