Back to Project Sub Contract

GET Method Details for GetAllByProjectID.

Get all contracts by project ID

Definition

https://app[x].timelog.com/[account name]/api/v{version}/contract

Parameters

  • projectID integer Project ID
  • version string The requested API version

Returns

  • [200] A list of contracts
    • ContractGuid string Gets or sets the contract GUID
    • ContractID integer Gets or sets the contract ID
    • ContractModelType integer Gets or sets the contract model type
    • ContractName string Gets or sets the contract name
    • ContractStatus integer Gets or sets the contract status
    • ContractTypeID integer
    • ContractTypeName string
    • IsDefaultExpenses boolean Gets or sets whether the expenses are default
    • IsMainContract boolean Gets or sets whether the contract is a main contract
    • IsMileageBillable boolean Gets or sets whether the mileage is billable
    • ProjectID integer Gets or sets the project ID
    {
      "ContractGuid": "00000000-0000-0000-0000-000000000000",
      "ContractID": 0,
      "ContractModelType": 0,
      "ContractName": "",
      "ContractStatus": 0,
      "ContractTypeID": 0,
      "ContractTypeName": "",
      "IsDefaultExpenses": false,
      "IsMainContract": false,
      "IsMileageBillable": false,
      "ProjectID": 0
    }
  • [401] Invalid authentication token
  • [500] Request to GetAllByProjectID has failed
    • Code integer Gets the code.
    • Details array Gets the details.
    • Message string Gets the message.
    • Parameters string Gets the parameters.
    • Url string Gets the URL.
    {
      "Code": 0,
      "Details": "",
      "Message": "",
      "Parameters": "",
      "Url": ""
    }