> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Service Contracts

Retrieve a list of service contracts.

<Note>
  External Documentation

  To learn more, visit the [SAP CRM documentation](https://api.sap.com/api/API_SERVICE_CONTRACT_SRV/tryout).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description |
  | - | - |
  | Expand | Select the navigation properties to return inline with the results. |
  | Filter | The OData filter expression to narrow down the results.<br /><br />For more information refer to the [System Query Option](https://help.sap.com/doc/5890d27be418427993fafa6722cdc03b/Cloud/en-US/OdataV2.pdf#page=64). |
  | Inline Count | Select to return the total number of matching records in the response. For more information refer to the [System Query Option](https://help.sap.com/doc/5890d27be418427993fafa6722cdc03b/Cloud/en-US/OdataV2.pdf#page=67). |
  | Order By | Select the fields to sort the results by. Use asc for ascending order, otherwise, the order defaults to descending.<br /><br />For more information refer to the [System Query Option](https://help.sap.com/doc/5890d27be418427993fafa6722cdc03b/Cloud/en-US/OdataV2.pdf#page=65). |
  | Return All Pages | Automatically fetch all resources, page by page. |
  | Select | Select the fields to return. For more information refer to the [System Query Option](https://help.sap.com/doc/5890d27be418427993fafa6722cdc03b/Cloud/en-US/OdataV2.pdf#page=68). |
  | Skip | The number of records to skip before returning results. |
  | Top | The maximum number of records to return. |
</div>

## Example Output

```json theme={"dark"}
{
	"d": {
		"results": [
			{
				"__metadata": {
					"id": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SERVICE_CONTRACT_SRV/A_ServiceContract('7000000000')",
					"uri": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SERVICE_CONTRACT_SRV/A_ServiceContract('7000000000')",
					"type": "API_SERVICE_CONTRACT_SRV.A_ServiceContractType"
				},
				"ServiceContract": "7000000000",
				"ServiceContractType": "SC1",
				"ServiceContractDescription": "SC1",
				"Language": "EN",
				"ServiceContractStartDateTime": "20190908000000",
				"ServiceContractEndDateTime": "20200908000000",
				"PurchaseOrderByCustomer": "",
				"CustomerPurchaseOrderDate": null,
				"ServiceDocGrossAmount": "1306.80",
				"ServiceDocNetAmount": "1200.00",
				"ServiceDocTaxAmount": "106.80",
				"TransactionCurrency": "USD",
				"ServiceContractIsReleased": "",
				"ServiceContractIsCompleted": "",
				"SrvcContrCreditStatus": "",
				"SalesOrganization": "1710",
				"DistributionChannel": "10",
				"Division": "00",
				"SalesOffice": "",
				"SalesGroup": "",
				"SoldToParty": "17100001",
				"ShipToParty": "17100001",
				"BillToParty": "17100001",
				"PayerParty": "17100001",
				"ContactPerson": "17910005",
				"PersonResponsible": "9980001882",
				"ServiceContractCanclnParty": "",
				"ServiceContrCancellationReason": "",
				"SrvcContrCancellationDateTime": "0",
				"ReferenceServiceContract": "",
				"ReferenceServiceQtan": "",
				"to_Item": {
					"__deferred": {
						"uri": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SERVICE_CONTRACT_SRV/A_ServiceContract('7000000000')/to_Item"
					}
				},
				"to_Text": {
					"__deferred": {
						"uri": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SERVICE_CONTRACT_SRV/A_ServiceContract('7000000000')/to_Text"
					}
				}
			}
		]
	}
}
```

## Workflow Library Example

[List Service Contracts with Sap Crm and Send Results Via Email](https://library.blinkops.com/workflows/list-service-contracts-with-sap-crm-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-service-contracts-with-sap-crm-and-send-results-via-email/canvas" />
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.