{"type":"api","title":"List Contracts","meta":{"id":"/apps/pubhub/media/cx-cloud-apis/987ccbfd309f978191d5f9ff79fe93a2865583d0/cbe9e4eb-3b67-3d77-bde8-9a8275c07620","info":{"title":"CX Cloud API","version":"2.0.0","description":"APIs to access CX Cloud data","contact":{"name":"CX Cloud Community","url":"https://community.cisco.com/t5/cx-cloud/bd-p/CX-Cloud-Discussions"},"license":{"name":"Cisco API License","url":"https://developer.cisco.com/site/license/cisco-api-license/"},"termsOfService":"https://www.cisco.com/c/dam/en_us/about/doing_business/legal/seula/cx-cloud-seula.pdf"},"security":[{"Oauth2":["apis:read"]}],"tags":[{"name":"customer","description":"API operations to get customer details from entitled CX Cloud accounts"},{"name":"inventory","description":"API operations to get inventory details from entitled CX Cloud accounts"},{"name":"contract","description":"API operations to get contract details from entitled CX Cloud accounts"},{"name":"productAlert","description":"API operations to get alerts details from entitled CX Cloud accounts"}],"x-parser-conf":{"overview":{"markdownPath":"reference/overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://apix.cisco.com/cs/api/v2","description":"Cisco API Console"}],"securitySchemes":{"Oauth2":{"type":"oauth2","description":"OAuth2 authentication with authorization code flow.","flows":{"authorizationCode":{"authorizationUrl":"https://id.cisco.com/oauth2/default/v1/token","tokenUrl":"https://id.cisco.com/oauth2/default/v1/token","scopes":{"apis:read":"Grants read access"}}}}}},"spec":{"summary":"List Contracts","operationId":"getContractDetails","description":"Returns the Cisco service contracts connected to a CX Cloud account.","tags":["contract"],"parameters":[{"name":"customerId","in":"query","required":true,"description":"A CX Cloud customer identifier","schema":{"type":"string","example":"abc123def"},"$$ref":"#/components/parameters/customerId_param"},{"name":"contractNumber","in":"query","description":"A Cisco service contract number","schema":{"type":"string","example":"123456789"},"$$ref":"#/components/parameters/contractNumber_param"},{"name":"contractStartDate","in":"query","description":"Limits the results to contracts that start on or after this date","schema":{"type":"string","example":"2021-03-31"},"$$ref":"#/components/parameters/contractStartDate_param"},{"name":"contractEndDate","in":"query","description":"Limits the results to contracts that end on or before this date","schema":{"type":"string","example":"2024-03-30"},"$$ref":"#/components/parameters/contractEndDate_param"},{"name":"contractStatus","in":"query","description":"Status of the service contract","schema":{"type":"string","example":"ACTIVE","enum":["ACTIVE","OVERDUE","SIGNED"]},"$$ref":"#/components/parameters/contractStatus_param"},{"name":"serviceLevel","in":"query","description":"Alphanumeric code that denotes the purchased support service","schema":{"type":"string","example":"L1NBD"},"$$ref":"#/components/parameters/serviceLevel_param"},{"name":"format","in":"query","description":"Output format of the API response","schema":{"type":"string","default":"JSON","enum":["JSON","CSV","TSV"]},"$$ref":"#/components/parameters/format_param"},{"name":"fields","in":"query","description":"Restricts API response to the specific fields.","schema":{"type":"string","example":"field1,field2"},"$$ref":"#/components/parameters/fields_param"},{"name":"page","in":"query","description":"The page to return in a paginated API response.","schema":{"type":"integer","minimum":1,"default":1},"$$ref":"#/components/parameters/page_param"},{"name":"rows","in":"query","description":"The size of the page in the API response.","schema":{"type":"integer","default":20},"$$ref":"#/components/parameters/rows_param"},{"name":"sort","in":"query","description":"The sort order (ASC or DESC) for a field in the API response. Can be specified multiple times for multi-field sorting. If order is not specified for a field, it defaults to ASC. Example with multi-field sorting: sort=field&sort=field2:DESC","schema":{"type":"array","items":{"type":"string"}},"explode":true,"$$ref":"#/components/parameters/sort_param"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Contract Details schema","type":"object","properties":{"data":{"description":"Contains array of contract details","type":"array","items":{"properties":{"customerId":{"description":"A CX Cloud customer identifier.","type":"string","example":"abc123def"},"contractNumber":{"description":"A Cisco service contract number.","type":"string","example":"123456789"},"contractEndDate":{"description":"End date of the service contract. GMT date format YYYY-MM-DD","type":"string","nullable":true,"example":"2024-03-30"},"contractStartDate":{"description":"Start date of the service contract. GMT date format YYYY-MM-DD","type":"string","nullable":true,"example":"2021-03-31"},"contractStatus":{"description":"Status of the service contract","type":"string","nullable":true,"example":"ACTIVE","enum":["ACTIVE","OVERDUE","SIGNED"]},"serviceProgram":{"description":"A Cisco Services program","type":"string","nullable":true,"example":"CX LEVEL 2"},"serviceLevel":{"description":"Alphanumeric code that denotes the purchased support service","type":"string","nullable":true,"example":"L1NBD"},"baseProductId":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoSiteId":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoSiteName":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoAddressLine1":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoAddressLine2":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoAddressLine3":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoAddressLine4":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoCity":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoState":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoPostalCode":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoProvince":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoCountry":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoGuName":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"billtoGuid":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"siteUseName":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"siteUseId":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"siteAddress1":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"siteCity":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"siteStateProvince":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"sitePostalCode":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true},"siteCountry":{"description":"Field not available in CX Cloud.","type":"string","nullable":true,"example":"null","deprecated":true}}}},"pagination":{"description":"Pagination details","type":"object","properties":{"page":{"description":"Current page","type":"integer","format":"int32","example":1},"pages":{"description":"Total number of pages","type":"integer","format":"int32","example":3},"rows":{"description":"Number of records on each page","type":"integer","format":"int32","example":20},"total":{"description":"Total number of records","type":"integer","format":"int64","example":56}},"$$ref":"#/components/schemas/Pagination"}},"$$ref":"#/components/schemas/ContractDetails"}}},"headers":{"Cache-Control":{"description":"Cache Control Header","schema":{"type":"string"},"example":"no-cache","$$ref":"#/components/headers/CacheControl"},"TrackingID":{"description":"Tracking ID","schema":{"type":"string"},"example":"1234","$$ref":"#/components/headers/TrackingID"},"Date":{"description":"Timestamp the response was processed","schema":{"type":"string","format":"E, dd MMM yyyy HH:mm:ss z"},"example":"Fri, 27 Jun 2025 09:07:36 GMT","$$ref":"#/components/headers/Date"}},"$$ref":"#/components/responses/ContractDetailsResponse"},"400":{"description":"Bad Request","$$ref":"#/components/responses/BadRequestResponse"},"401":{"description":"Unauthorized","$$ref":"#/components/responses/UnauthorizedResponse"},"403":{"description":"Forbidden","$$ref":"#/components/responses/ForbiddenResponse"},"404":{"description":"Not Found","$$ref":"#/components/responses/NotFoundResponse"},"500":{"description":"Internal Server Error","$$ref":"#/components/responses/InternalServerErrorResponse"}},"security":[{"Oauth2":["apis:read"]}],"__originalOperationId":"getContractDetails","method":"get","path":"/contracts/contract-details"}}