Invoice Resource

Get Invoice

HTTP Request

GET /api/invoice/{id}

📋 Description: Retrieves detailed information about a specific invoice identified by its unique ID, enabling users to access financial records and transaction history for effective account management.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

Responses

Status

Meaning

Description

Schema

200

OK

OK

InvoiceDTO

Update Invoice

HTTP Request

PUT /api/invoice/{id}

📋 Description: Updates the details of a specific invoice identified by its unique ID, allowing businesses to maintain accurate financial records and ensure timely billing adjustments.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

body

body

InvoiceDTO

true

Request body containing the updated invoice details, including line items, amounts, and payment status, to ensure accurate billing and financial records.

Responses

Status

Meaning

Description

Schema

200

OK

OK

Inline

Response Schema

Delete Invoice

HTTP Request

DELETE /api/invoice/{id}

📋 Description: Deletes the specified invoice identified by its unique ID, ensuring the removal of any associated financial records from the system.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

Responses

Status

Meaning

Description

Schema

204

No Content

No Content

None

Update Invoice Status

HTTP Request

PUT /api/invoice/{id}/status

📋 Description: Updates the status of a specified invoice, allowing businesses to manage their invoicing process efficiently and ensure accurate financial tracking.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

body

body

object

true

Request body containing the updated status information for the specified invoice, including relevant metadata to facilitate accurate processing and tracking.

» additionalProperties

body

object

false

none

Responses

Status

Meaning

Description

Schema

200

OK

OK

InvoiceDTO

Get All Invoice

HTTP Request

GET /api/invoice

📋 Description: Fetches a list of invoices, allowing users to view and manage their billing records efficiently.

Responses

Status

Meaning

Description

Schema

200

OK

OK

Inline

Response Schema

Status Code 200

Name

Type

Required

Restrictions

Description

anonymous

[InvoiceDTO]

false

none

[Data transfer object representing an invoice, encapsulating essential details such as amounts, dates, and customer information to facilitate efficient billing and financial tracking.]

» id

integer(int64)

false

none

Unique identifier for the resource

» createdBy

string

false

none

Username of who created this resource

» createdAt

string(date-time)

false

none

Timestamp when this resource was created

» displayId

string

false

none

Unique identifier for the display

» invoiceDate

string(date)

false

none

Date of the invoice

» invoiceName

string

false

none

Name of the invoice

» tax

number

true

none

Represents the total tax amount applicable to the invoice, ensuring accurate financial reporting and compliance.

» invoiceStatusId

integer(int64)

false

none

Unique identifier for the invoice status

» invoiceStatusName

string

false

none

Name of the invoice status

» invoiceStatusType

string

false

none

Type of the invoice status

» invoiceItemIds

[integer]

false

none

Array of unique identifiers for individual invoice items associated with the invoice, facilitating precise tracking and management of billing details.

» documentIds

[integer]

false

none

Array of unique identifiers for the invoices associated with the transaction, enabling efficient tracking and management of financial documents.

» workOrderId

integer(int64)

false

none

Unique identifier for the work order

» workOrderDisplayId

string

false

none

Unique identifier for the work order display

» totalAmount

number

false

none

Amount of total

» vendorName

string

false

none

Name of the vendor

» premiseId

integer(int64)

false

none

Unique identifier for the premise

» premiseDisplayId

string

false

none

Unique identifier for the premise display

» vendorDisplayId

string

false

none

Unique identifier for the vendor display

Create Invoice

HTTP Request

POST /api/invoice

📋 Description: Creates a new invoice in the system, allowing businesses to efficiently manage billing and payment processes.

Parameters

Name

In

Type

Required

Description

body

body

InvoiceDTO

true

Request body containing the invoice details, including customer information, itemized charges, and payment terms for processing billing transactions.

Responses

Status

Meaning

Description

Schema

201

Created

Created

InvoiceDTO

Search Invoices

HTTP Request

POST /api/invoice/search

📋 Description: Submits a request to search for invoices based on specified criteria, enabling users to efficiently locate and manage financial documents.

Parameters

Name

In

Type

Required

Description

pageable

query

Pageable

true

Indicates whether the search results for invoices should be returned in a paginated format, enhancing the user experience by allowing for manageable data retrieval.

body

body

InvoiceDtoFilter

true

Request body containing the search criteria and filters for retrieving invoice records based on specified parameters.

Responses

Status

Meaning

Description

Schema

200

OK

OK

PageInvoiceDTO

Get Invoices By Work Order ID

HTTP Request

GET /api/invoice/workOrder/{entityId}

📋 Description: Retrieves the work order details associated with a specific entity, providing essential information for invoice processing and management.

Parameters

Name

In

Type

Required

Description

entityId

path

integer(int64)

true

Unique identifier for the entity

Responses

Status

Meaning

Description

Schema

200

OK

OK

Inline

Response Schema

Status Code 200

Name

Type

Required

Restrictions

Description

anonymous

[InvoiceDTO]

false

none

[Data transfer object representing an invoice, encapsulating essential details such as amounts, dates, and customer information to facilitate efficient billing and financial tracking.]

» id

integer(int64)

false

none

Unique identifier for the resource

» createdBy

string

false

none

Username of who created this resource

» createdAt

string(date-time)

false

none

Timestamp when this resource was created

» displayId

string

false

none

Unique identifier for the display

» invoiceDate

string(date)

false

none

Date of the invoice

» invoiceName

string

false

none

Name of the invoice

» tax

number

true

none

Represents the total tax amount applicable to the invoice, ensuring accurate financial reporting and compliance.

» invoiceStatusId

integer(int64)

false

none

Unique identifier for the invoice status

» invoiceStatusName

string

false

none

Name of the invoice status

» invoiceStatusType

string

false

none

Type of the invoice status

» invoiceItemIds

[integer]

false

none

Array of unique identifiers for individual invoice items associated with the invoice, facilitating precise tracking and management of billing details.

» documentIds

[integer]

false

none

Array of unique identifiers for the invoices associated with the transaction, enabling efficient tracking and management of financial documents.

» workOrderId

integer(int64)

false

none

Unique identifier for the work order

» workOrderDisplayId

string

false

none

Unique identifier for the work order display

» totalAmount

number

false

none

Amount of total

» vendorName

string

false

none

Name of the vendor

» premiseId

integer(int64)

false

none

Unique identifier for the premise

» premiseDisplayId

string

false

none

Unique identifier for the premise display

» vendorDisplayId

string

false

none

Unique identifier for the vendor display

Delete Invoice Item

HTTP Request

DELETE /api/invoice/deleteInvoiceItem/{id}

📋 Description: Deletes a specific invoice item identified by the provided ID, ensuring accurate invoice management and maintaining data integrity within the invoicing system.

Parameters

Name

In

Type

Required

Description

id

path

integer(int64)

true

Unique identifier for the resource

Responses

Status

Meaning

Description

Schema

200

OK

OK

InvoiceDTO