> ## 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 6 easy steps

<Steps>
  <Step title="Authorize access" titleSize="h3">
    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](/guides/maesn-connect).
  </Step>

  <Step title="Retrieve filtered list of invoices" titleSize="h3">
    Start by retrieving a list of invoices by calling GET [/invoices](/api-reference/accounting-endpoints/invoices/get-invoices) and applying the appropriate filters, for example payment status or due date, to give your users an overview of their unpaid invoices.
  </Step>

  <Step title="Show invoice details" titleSize="h3">
    When the end user has selected a specific invoice, present all the details including line items by calling GET [/invoices/\{id}](/api-reference/accounting-endpoints/invoices/get-invoice).
  </Step>

  <Step title="Retrieve the invoice document (optional)" titleSize="h3">
    Present original PDF documents by calling GET [/invoices/\{id}/document](/api-reference/accounting-endpoints/invoices/get-invoice-document).
  </Step>

  <Step title="Retrieve payment reminders (optional)" titleSize="h3">
    Use GET /invoiceReminders to fetch any already existing payment reminders for an invoice, to identify the correct dunning level and to avoid duplicate communication.
  </Step>

  <Step title="Retrieve payments (optional)" titleSize="h3">
    Periodically retrieve payments by calling GET [/payments](/api-reference/accounting-endpoints/payments/get-payments) to stop reminders as soon as the invoice has been paid.
  </Step>
</Steps>
