> For the complete documentation index, see [llms.txt](https://docs.tesseract.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tesseract.fi/earn-direct-and-earn-api/earn-api.md).

# Earn API

Earn API lets partners embed Tesseract yield directly into their own product. Your backend books deposits and withdrawals against Tesseract's accounting system, settles outstanding balances once per day per currency, and pulls daily reports to sync interest to user accounts.

This section covers the integration as a partner engineer would approach it:

* [**Overview**](/earn-direct-and-earn-api/earn-api/overview.md) — the two deliverables of a successful integration (deposit/withdrawal integration + daily settlement).
* [**Calculating Interest**](/earn-direct-and-earn-api/earn-api/calculating-interest.md) — how interest accrues, when it's distributed, the compounding formula, and worked examples.
* [**Settlements**](/earn-direct-and-earn-api/earn-api/settlements.md) — how netted per-currency daily settlements work and how to read the outstanding balance.
* [**Solution Architecture**](/earn-direct-and-earn-api/earn-api/solution-architecture.md) — the eight integration tasks and dependencies.
* [**Data Model Mapping**](/earn-direct-and-earn-api/earn-api/data-model-mapping.md) — how to map your users / accounts to Tesseract's data model when you receive two credential sets, one per product line.
* [**Process and Environments**](/earn-direct-and-earn-api/earn-api/process-and-environments.md) — Development / Test / Production environments and the end-to-end integration process.
* [**Acceptance Testing**](/earn-direct-and-earn-api/earn-api/acceptance-testing.md) — test cases run in Production before go-live.
* [**Working with Reports**](/earn-direct-and-earn-api/working-with-reports.md) — daily reports published by the accounting cycle and their schema.

Interactive API reference: [earn-api.partner.env.tesseractinvestment.dev/docs](https://earn-api.partner.env.tesseractinvestment.dev/docs/)

**Estimated integration time:** 14–21 days.


---

# 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:

```
GET https://docs.tesseract.fi/earn-direct-and-earn-api/earn-api.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.
