# Invoice

### Definition

An Invoice is the financial record capturing the delivered services required to be billed. This includes several Invoice Line Items, one for each delivered service across a billing period which essentially dictates how long an Invoice is `open` for before being finalised.

### Purpose

The prupose of Invoices is to ensure Maica captures all financial obligations to a Participant's [Service Agreement](/maica-knowledge-base/getting-started/maica-key-concepts/service-agreement.md). This primarily records what needs to be billed, using a number of funding structures, and also reduces the available funding on a [Service Agreement](/maica-knowledge-base/getting-started/maica-key-concepts/service-agreement.md).

### Usage

Invoices are primarily used within Maica's billing logic where records are created based on completed [Appointments](/maica-knowledge-base/getting-started/maica-key-concepts/appointment.md) or [Shifts](/maica-knowledge-base/getting-started/maica-key-concepts/shift.md). Similar to [Delivery Activities](/maica-knowledge-base/getting-started/maica-key-concepts/delivery-activity.md), Invoices are largely a backend record and mostly managed by Maica's automation.

{% hint style="info" %}
It is quite common that Maica submits Invoices to external finance systems, like Xero to which Maica has a pre-configured [integration](/maica-knowledge-base/integrations/xero-integration-overview.md).&#x20;
{% endhint %}

### Final Thoughts

Invoices are an essential component in the billing execution logic and typcially require no manual intervention. Solution administrators may manage these records if required but this would be unusual.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledge.maica.com.au/maica-knowledge-base/getting-started/maica-key-concepts/invoice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
