> 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/detect-customer-credit-limit-pressure.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Detect Customer Credit Limit Pressure

Assesses one customer in one company for credit-limit pressure using the credit/collection snapshot, credit policy, optional parent group exposure and recent credit notes. Returns utilization evidence and a verdict.

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

## Overview

IFS Cloud keeps a per-customer credit and collection snapshot in CreditCollectionInfo (view customer\_credit\_collection\_qry). It is recalculated by Credit\_Collection\_Info\_API.Recalculate\_Customer\_Info and holds the credit limit (CreditLimit1), remaining credit (RemainCredit1), used credit (UsedCredit1 = limit minus remaining), the open-order exposure (NonInvOrders, from Customer\_Order\_Flow\_API.Calculate\_Credit\_Used), preliminary invoices not posted (PrelPrintUsedCredit), the AR balance and six aging buckets.

The IFS Cloud integration reads customer credit snapshots, policy and notes to assess credit-limit pressure.

## How it works

{% stepper %}
{% step %}
If company or customer is missing, ask. Never guess IDs.
{% endstep %}

{% step %}
Call Get Customer Credit Exposure (company, identity). If not found: say "No credit/collection analysis row exists for this customer (recalculation may never have run)" and continue with step 3.
{% endstep %}

{% step %}
Call Get Customer Credit Policy (customer\_id, company) for the policy values.
{% endstep %}

{% step %}
If corpCreditRelationExist = true and ParentIdentity is set, call Get Parent Group Credit Exposure (ParentCompany, ParentIdentity).
{% endstep %}

{% step %}
Call List Recent Customer Credit Notes (company, customer\_id, days=90).
{% endstep %}

{% step %}
Evaluate (amounts in accounting currency of the company): limit = CreditLimit1 (snapshot) else CreditLimit (policy). If both null → verdict "No limit defined". utilization = UsedCredit1 / limit. Projected = (UsedCredit1 + proposed\_order\_amount) / limit. CreditBlock = true → verdict "Blocked" (highest). utilization >= 100 % or RemainCredit1 < 0 → "Over limit". utilization >= near threshold, or projected >= 100….
{% endstep %}
{% endstepper %}

## Key capabilities

* Reads the credit and collection snapshot (limit, used, remaining, AR balance, aging buckets, DSO).
* Reads the credit policy on the customer (limit, credit block flag, allowed due amount/days, next review date, rating).
* Computes utilization = UsedCredit1 / CreditLimit1 and projected utilization including a proposed order amount.
* Detects credit block, missing limit (CreditLimit1 null), and overdue amount above AllowedDueAmount.
* Checks corporate credit relationships and the parent customer's remaining credit.
* Flags a stale snapshot (AnalysisDate older than the threshold) and recommends recalculation.
* Summarizes recent credit management notes and promised follow-up dates.
* Returns a ranked verdict, drivers and a next business action, never changes data.

## Requirements

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

| Component | Projection                  |
| --------- | --------------------------- |
| PAYLED    | CustomerCreditAnalysis      |
| ENTERP    | CustomerHandling            |
| PAYLED    | CustomerCreditNotesAnalysis |

## Version compatibility

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

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
* Requires projection-level security. Permission errors halt the run.
