---
schema_version: "1"
id: e17a3c25acb3fdd2963600cb00e633f6588990b045a04b80926aaef9309f13a5
title: ContractSettings
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_contractsettings.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_contractsettings.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2adbaa147652a018b870b9d2473c734611211e56587e660c24254e8ba6691f61
description: Represents contract settings.
---
# ContractSettings

Represents contract settings.

In the package manifest, all organization settings metadata types are accessed using the Settings name. See [Settings](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_settings.htm "Represents the organization settings related to a feature. For example, your password policies, session settings and network access controls are all available in the SecuritySettings component type.") for details.

## File Suffix and Directory Location

There is one contract settings file stored in a file named Contract.settings in the settings directory. The .settings files are different from other named components because there’s only one settings file for each settings component.

## Version

ContractSettings is available in API version 27.0 and later.

## Fields

| Field Name | Field Type | Description |
| --- | --- | --- |
| autoCalculateEndDate | boolean | Indicates whether the end date of a contract is automatically calculated (true) or not (false). |
| notifyOwnersOnContractExpiration | boolean | Indicates whether account and contract owners are automatically sent email notifications when a contract expires (true) or not (false). |

## Declarative Metadata Sample Definition

This is a sample contract settings file.

<?xml version="1.0" encoding="UTF-8"?>
<ContractSettings xmlns="http://soap.sforce.com/2006/04/metadata">
    <autoCalculateEndDate\>true</autoCalculateEndDate\>
    <notifyOwnersOnContractExpiration\>false</notifyOwnersOnContractExpiration\>
</ContractSettings\>

## Wildcard Support in the Manifest File

The wildcard character \* (asterisk) in the package.xml manifest file doesn’t apply to metadata types for feature settings. The wildcard applies only when retrieving all settings, not for an individual setting. For details, see [Settings](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_settings.htm). For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).