--- title: "Contract details" source_url: https://dev.digicert.com/certcentral-apis/services-api/account/contract-details.html api_method: GET api_endpoint: "/services/v2/account/contract" api_url: "https://www.digicert.com/services/v2/account/contract" --- **GET** `https://www.digicert.com/services/v2/account/contract` Use this endpoint to get details on the active contract for the account. > **Info** > > If no contract exists for the account, a `not_found|contract` error is returned. ## Example requests and responses **cURL** ```bash curl -X GET \ https://www.digicert.com/services/v2/account/contract \ -H 'Content-Type: application/json' \ -H 'X-DC-DEVKEY: {{api_key}}' ``` **Python** ```python import requests url = "https://www.digicert.com/services/v2/account/contract" payload = "" headers = { 'X-DC-DEVKEY': "{{api_key}}", 'Content-Type': "application/json" } response = requests.request("GET", url, data=payload, headers=headers) print(response.text) ``` **Go** ```go package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://www.digicert.com/services/v2/account/contract" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("X-DC-DEVKEY", "{{api_key}}") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` **NodeJS** ```javascript var request = require("request"); var options = { method: 'GET', url: 'https://www.digicert.com/services/v2/account/contract', headers: { 'Content-Type': 'application/json', 'X-DC-DEVKEY': '{{api_key}}' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); }); ``` ## 200 OK ```json { "start_date": "2018-10-17", "end_date": "2019-10-16", "auto_renewal": "1", "total_cert_limit": 60, "total_ssl_cert_limit": 30, "total_client_cert_limit": 30, "total_domain_limit": 10, "total_domains_used": 2, "limit_type": "year", "pricing_model": "flatfee", "issued_certs_total": 25, "allowed_lifetime": "1" } ``` ## Response parameters
| Name | Type | Description |
|---|---|---|
| start_date | ||
| end_date | ||
| auto_renewal | ||
| total_cert_limit | ||
| total_ssl_cert_limit | ||
| total_client_cert_limit | ||
| total_domain_limit | ||
| total_domains_used | ||
| limit_type | ||
| pricing_model | ||
| issued_certs_total | ||
| product_limits | ||
| .. {{product_name}} | ||
| .. .. product_name_id | ||
| .. .. limit | ||
| .. .. issued | ||
| .. .. pending | ||
| .. .. san_limit | ||
| allowed_lifetime |