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

# Get Service Contract

Retrieve the details of a service contract.

<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. |
  | 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). |
  | Service Contract | The service contract number to return. Can be obtained using `List Service Contracts` action. |
</div>

## Example Output

```json theme={"dark"}
{
	"d": {
		"__metadata": {
			"id": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SERVICE_CONTRACT_SRV/A_ServiceContract('7000000010')",
			"uri": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SERVICE_CONTRACT_SRV/A_ServiceContract('7000000010')",
			"type": "API_SERVICE_CONTRACT_SRV.A_ServiceContractType"
		},
		"ServiceContract": "7000000010",
		"ServiceContractType": "SC1",
		"ServiceContractDescription": "",
		"Language": "EN",
		"ServiceContractStartDateTime": "20190516000000",
		"ServiceContractEndDateTime": "20200516000000",
		"PurchaseOrderByCustomer": "",
		"CustomerPurchaseOrderDate": null,
		"ServiceDocGrossAmount": "1248.00",
		"ServiceDocNetAmount": "1200.00",
		"ServiceDocTaxAmount": "48.00",
		"TransactionCurrency": "USD",
		"ServiceContractIsReleased": "X",
		"ServiceContractIsCompleted": "",
		"SrvcContrCreditStatus": "",
		"SalesOrganization": "1710",
		"DistributionChannel": "10",
		"Division": "00",
		"SalesOffice": "",
		"SalesGroup": "",
		"SoldToParty": "17100003",
		"ShipToParty": "17100003",
		"BillToParty": "17100003",
		"PayerParty": "17100003",
		"ContactPerson": "17100003",
		"PersonResponsible": "9980001964",
		"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('7000000010')/to_Item"
			}
		},
		"to_Text": {
			"__deferred": {
				"uri": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_SERVICE_CONTRACT_SRV/A_ServiceContract('7000000010')/to_Text"
			}
		}
	}
}
```

## Workflow Library Example

[Get Service Contract with Sap Crm and Send Results Via Email](https://library.blinkops.com/workflows/get-service-contract-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/get-service-contract-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.