Get contract
GET {{baseUrl}}/api/v1/accounts/:account_id/contracts
Getting contracts of an Account
OAuth Scope
Desk.settings.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from | string | From index,DEFAULT 1 | |
limit | string | Number of contracts to fetch, Ranges from 1-50, DEFAULT 50 | |
departmentId | string | ID of the department from which the contracts must be fetched | |
contractStatus | string | Contract Status,Indicates the Current Status of the Contract, Values are ACTIVE , EXPIRED , FUTURE |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"data":[{"slaName":"Priority-based SLAs","endDate":"2016-07-16","slaGroupId":"4000000007069","departmentId":"4000000007043","contractId":"4000000032003","contractNumber":"1212","description":"contract for all desk account","contractName":"Contract for desk account","ownerId":"4000000008692","startDate":"2016-06-16"}]}