> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/works/setup/configure-works/service-configuration/expense.md).

# Expense

### Overview

The expense module implements the functionality of bills and payments. A bill or a group of bills can be aggregated together as payments. Payment advice can be submitted through integration with IFMS (Integrated Financial Management Systems) or any other third-party payment provider. The expense module always works in combination with a calculator service. The calculator service is implementation-specific and provides business logic to compute bills. The calculator calls into the expense service to create bills. In general, the expense create/update APIs are not called by any other module other than the calculator.&#x20;

[Click here ](/works/reference-implementations/muktasoft-v2.2/deployment/muktasoft-services/expense-calculator.md)to browse for more information on the sample calculator provided with the Works platform.&#x20;

### Pre-requisites

* DIGIT backbone services
* Persister
* Indexer
* IDGen
* MDMS
* Workflow
* Notification

### Functionalities

* Create/update/search functionality for bills
* Ability to create different bill types according to configuration.
* The workflow is integrated and needs to be configured for usage.
* Works with an expense calculator that contains the business logic to compute bills.&#x20;

**Code**

[Expense Module](https://github.com/egovernments/DIGIT-Works/tree/master/backend/expense)

### Deployment Details

[Helm Chart](https://github.com/egovernments/DIGIT-DevOps/tree/digit-works/deploy-as-code/helm/charts/digit-works/backend/expense)

### Configuration Details

### Integration Details

[API spec](/works/platform/architecture/low-level-design/services/expense.md#api-specifications)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.digit.org/works/setup/configure-works/service-configuration/expense.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
