> 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/service-management-and-contracts/create-ready-application-for-payment.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Create Ready Application for Payment

Reads contract AfP eligibility, validates create gates, creates an application via CreateApplicationForPayment after approval, and verifies Planned state.

| Business area                    | Action type                                |
| -------------------------------- | ------------------------------------------ |
| Service Management and Contracts | Updates IFS Cloud data after user approval |

## Overview

In construction and engineering contracts, the contractor periodically applies to the customer for payment. In IFS Cloud the New Application command on the Sales Contract page (CreateApplicationCommand) is enabled only when the contract is Awarded, Under Review, Active or Completed. It loads defaults with FetchSalesContractDetails, opens the New Application For Payment dialog and calls the action CreateApplicationForPayment, which returns the new AfpNo.

The IFS Cloud integration creates applications for payment on sales contracts.

## How it works

{% stepper %}
{% step %}
Get Contract AFP Eligibility.
{% endstep %}

{% step %}
List Contract Applications.
{% endstep %}

{% step %}
Prepare Application Parameters (gates C1-C7).
{% endstep %}

{% step %}
Create Application For Payment.
{% endstep %}

{% step %}
Verify Application Created.
{% endstep %}
{% endstepper %}

## Key capabilities

* Read one sales contract's eligibility: status, company, customer, currency, supply country, payer, payment terms, invoice method, on-hold flag.
* Check that an active contract revision exists and identify the default project.
* List existing applications on the contract and detect open (not yet submitted) applications with the same currency/project/supply country/billing sequence.
* Fetch IFS defaults (due date, certificate due date, document address, delivery address, default project) via FetchSalesContractDetails.
* Validate supply country against the contract's active items (FetchSupplyCountry).
* Build and preview the full CreateApplicationForPayment parameter set and require explicit approval.
* Create exactly one application and return the new AfpNo.
* Read back the created application header.

{% hint style="info" %}
This skill keeps a human in the loop. It previews every change and updates IFS Cloud only after a user approves it.
{% endhint %}

## Requirements

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

| Component                         | Projection                                  |
| --------------------------------- | ------------------------------------------- |
| CONMGT (SALES CONTRACTS)          | SalesContractHandling                       |
| APPPAY (APPLICATIONS FOR PAYMENT) | SalesContractApplicationsForPaymentHandling |
| CONMGT (SALES CONTRACTS)          | SalesContractApplicationForPaymentHandling  |

## Version compatibility

| Projection                                  | Supported IFS Cloud releases |
| ------------------------------------------- | ---------------------------- |
| SalesContractHandling                       | 24R2, 25R1, 25R2, 26R1, 26R2 |
| SalesContractApplicationsForPaymentHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |
| SalesContractApplicationForPaymentHandling  | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Write paths require explicit user confirmation or authorization where configured.
