> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/financials-and-accounts-receivable/prioritize-overdue-customer-debt.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Prioritize Overdue Customer Debt

Ranks a bounded set of customers by overdue AR exposure, DSO and credit use using credit/collection snapshots. Read-only.

| Business area                      | Action type |
| ---------------------------------- | ----------- |
| Financials and Accounts Receivable | Read-only   |

## Overview

IFS Cloud keeps a pre-calculated credit and collection snapshot per customer and company in CreditCollectionInfo. The Customer Credit Analysis page reads it and the Calculate Customer Credit Information job refreshes it.

IFS Cloud reads customer credit and aging snapshots to prioritize overdue debt follow-up.

## How it works

{% stepper %}
{% step %}
List Customer Credit Positions (max 200).
{% endstep %}

{% step %}
Get Aging Bucket Definitions once per run (sample customer).
{% endstep %}

{% step %}
Score and rank per spec.
{% endstep %}

{% step %}
Get Customer Credit Detail for top customers.
{% endstep %}

{% step %}
Optional Get Customer Bucket Summary for labels.
{% endstep %}
{% endstepper %}

## Key capabilities

* Reads the customer credit and collection snapshot for one company and a bounded filter (analyst, manager, customer list, minimum balance).
* Loads the aging bucket definitions (StartDay, EndDay, AgingMethod) to classify buckets as not due, overdue or severely overdue.
* Calculates the overdue amount, severe overdue (> 60 days, configurable) and the overdue ratio per customer.
* Compares customer DSO with company and credit analyst DSO, including the 3- and 6-month trend.
* Adds credit pressure (UsedCredit1/CreditLimit1, RemainCredit1), bad debt (BadDebtExists) and payment recency (LastPaymentDate).
* Produces a transparent weighted score and ranked worklist with reasons and a suggested collection action.
* Warns about stale snapshots (AnalysisDate) and customers hidden by credit-info visibility (CreditInfoNotVisible).
* Read-only. Runs under the user's company security.

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection             |
| --------- | ---------------------- |
| PAYLED    | CustomerCreditAnalysis |
| PAYLED    | CustomerAgingAnalysis  |

## Version compatibility

| Projection             | Supported IFS Cloud releases |
| ---------------------- | ---------------------------- |
| CustomerCreditAnalysis | 24R2, 25R1, 25R2, 26R1, 26R2 |
| CustomerAgingAnalysis  | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Scope matches the packaged tools and instructions only.
