Stages

GET api/v2/Organisation/{Slug}/Stages

Description: Returns a paged list of stages Example: https://api.totalsynergy.com/api/v2/Organisation/testOrg/Stages?ProjectId=30021
Required Parameters:
ProjectId long value - project Id to search for stages
Optional Parameters:
PageSize int value - amount of items to return
ShowActualCosts bool value - whether to show actual costs
ShowProfitGross bool value - whether to show gross profit
Response:

[
  {
    "id": 40080,
    "organisationId": 3,
    "name": "Conceptual Design",
    "statusId": 31,
    "status": "Proposal",
    "statusTypeId": 10,
    "feeTypeId": 50,
    "feeType": "Fixed fee",
    "wip": 10,
    "fee": 90000,
    "timeSheetsPending": true,
    "managerId": 0,
    "manager": 0,
    "transactions": [
      {
        "id": 30066,
        "date": "14/04/2016",
        "transactionTypeId": 100,
        "transactionType": "Time",
        "status": "WIP",
        "statusId": 20,
        "description": null,
        "valueTotal": 50,
        "isNotApproved": false,
        "displaySummary": null,
        "staffName": null,
        "rateName": null,
        "units": 0,
        "shortDate": null
      }
    ],
    "tasks": [
      {
        "id": 40307,
        "projectId": 30021,
        "stageId": 40080,
        "stageName": "Conceptual Design",
        "workBreakdownId": 0,
        "sort": 0,
        "number": "0.0",
        "expenseTypeId": 0,
        "expenseType": "",
        "name": "Concept designs & 3d walk throughs",
        "note": "",
        "canDelete": false,
        "canChangetask": false,
        "percent": 0,
        "color": "#b2a2c7",
        "startDate": null,
        "endDate": null,
        "startDateAsInt": 0,
        "endDateAsInt": 0,
        "blockAllDays": true,
        "budgetAmount": 0,
        "budgetUnits": 0,
        "targetSortPositionTaskId": 0,
        "tags": null,
        "unitSummary": 0,
        "totalExTaxSummary": 0,
        "noteCount": 0,
        "unAllocatedHours": 0,
        "delete": false,
        "taskRates": []
      }
    ]
  }
]
                        

Try it out

Loading...
200
        {Response body}
			
Method
GET
Request Headers
'Content-Type': 'application/json' token
URL
http://some url here.com

GET api/v2/Organisation/{Slug}/Stages/AvailableForTimesheets

Description: Returns a list of stages available for use in timesheets Example: https://api.totalsynergy.com/api/v2/Organisation/testOrg/Stages/AvailableForTimesheets?ProjectId=1
Required Parameters:
ProjectId long value - project Id to search for stages
Response:

[
  {
    "id": 1,
    "projectId": 1,
    "name": "Administration",
    "sort": 10,
    "phase": "",
    "phaseId": 0,
    "statusId": 5,
    "status": "Active",
    "wipValue": 0,
    "selected": false
  },
  {
    "id": 2,
    "projectId": 1,
    "name": "Infrastructure and IT",
    "sort": 30,
    "phase": "",
    "phaseId": 0,
    "statusId": 5,
    "status": "Active",
    "wipValue": 0,
    "selected": false
  },
  {
    "id": 3,
    "projectId": 1,
    "name": "Leave",
    "sort": 40,
    "phase": "",
    "phaseId": 0,
    "statusId": 5,
    "status": "Active",
    "wipValue": 0,
    "selected": false
  },
  {
    "id": 4,
    "projectId": 1,
    "name": "Management",
    "sort": 50,
    "phase": "",
    "phaseId": 0,
    "statusId": 5,
    "status": "Active",
    "wipValue": 0,
    "selected": false
  },
  {
    "id": 5,
    "projectId": 1,
    "name": "Marketing",
    "sort": 60,
    "phase": "",
    "phaseId": 0,
    "statusId": 5,
    "status": "Active",
    "wipValue": 0,
    "selected": false
  },
  {
    "id": 6,
    "projectId": 1,
    "name": "Professional Development",
    "sort": 70,
    "phase": "",
    "phaseId": 0,
    "statusId": 5,
    "status": "Active",
    "wipValue": 0,
    "selected": false
  }
]