> 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/check-service-contract-line-validity.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Check Service Contract Line Validity

Validates one request contract line for a required date and optional customer, site, work type and object context. Returns per-rule evidence, SLA and benefit terms, and coverage lists.

| Business area                    | Action type |
| -------------------------------- | ----------- |
| Service Management and Contracts | Read-only   |

## Overview

A request contract line (PscContrProduct with connection\_type\_db = 'REQUEST') defines the SLA template, pricing/benefit rules and coverage for service requests. When a request scope is connected to a line, IFS runs Psc\_Contr\_Product\_API.Validate\_Service\_Line (contract state, line dates, customer, site, currency, "Use on Fault Report", work type).

The IFS Cloud integration reads request contract headers, lines, SLA terms and coverage to validate line applicability on a date.

## How it works

{% stepper %}
{% step %}
Get Request Contract Line. Not found → say so (it may not be a REQUEST line) and stop.
{% endstep %}

{% step %}
Get Contract Header Validity (header + customers + sites).
{% endstep %}

{% step %}
Get Line SLA And Benefit Terms.
{% endstep %}

{% step %}
If an object/item was given, List Line Coverage and check it is listed.
{% endstep %}

{% step %}
Evaluate rules (all dates truncated to date) using the tools and rules defined in the skill package.
{% endstep %}

{% step %}
Verdict: INVALID if any R fails, VALID\_WITH\_WARNINGS if only warnings, else VALID.
{% endstep %}
{% endstepper %}

## Key capabilities

* Read one request contract line with validity dates, customer, work type, fault-report flag and state.
* Read the contract header state, validity, latest-revision flag, valid sites and additional customers.
* Read SLA template, benefit/inclusive-call terms and consumed requests for the line.
* Read line coverage (equipment, model, location, region) and covered service items.
* Simulate Validate\_Service\_Line rules for a required date and context.
* Return per-rule pass/fail with evidence and an overall verdict.
* Warn when the revision is not the latest or inclusive calls are exhausted.

## Requirements

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

| Component | Projection              |
| --------- | ----------------------- |
| SRVCON    | ServiceContractHandling |

## Version compatibility

| Projection              | Supported IFS Cloud releases |
| ----------------------- | ---------------------------- |
| ServiceContractHandling | 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.
