> ## 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).

## Parameters

| Parameter | Description |
| - | - |
| Expand | Select the navigation properties to return inline with the results. |
| Filter | The OData filter expression to narrow down the results. 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. 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. |

## 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"
					}
				}
			}
		]
	}
}
```
