> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maesn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Debt management

> Technical walkthrough for implementing debt management workflows.

## Implement debt management in 5 easy steps

### 1. Authorize access

Your user must first authorize your application to access their accounting platform (e.g., Xero, Lexware Office, Sevdesk) via an authorization flow (e.g., OAuth, API key) through [maesn Connect](https://docs.maesn.com/guides/maesn-connect.md).

### 2. Retrieve filtered list of invoices

Start by retrieving a list of invoices by calling GET [/invoices](https://docs.maesn.com/api-reference/accounting-endpoints/invoices/get-invoices.md) and applying the appropriate filters, for example payment status or due date, to give your users an overview of their unpaid invoices.

### 3. Show invoice details

When the end user has selected a specific invoice, present all the details including line items by calling GET [/invoices/\{id}](https://docs.maesn.com/api-reference/accounting-endpoints/invoices/get-invoice.md).

### 4. Retrieve the invoice document (optional)

Present original PDF documents by calling GET [/invoices/\{id}/document](https://docs.maesn.com/api-reference/accounting-endpoints/invoices/get-invoice-document.md).

### 5. Retrieve payments (optional)

Periodically retrieve payments by calling GET [/payments](https://docs.maesn.com/api-reference/accounting-endpoints/payments/get-payments.md) to stop reminders as soon as the invoice has been paid.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.