List cost transactions against a phase
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | phases.json | |
General | Yes | Parameters described in overview | user=user&password=user | Structure of an API call |
Action | Yes | The action to perform | action=costscharges | |
Job phase | Yes | Job and phase number | jobphase=1/00000519.001 |
Example request:
http://<SERVER>/jsonapi/phases.json?jobphase=1/00000519.001&user=user&password=user&version=3.9&action=costscharges
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 26,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"costCharge": 0,
"costChargeRate": 0,
"costChargeRateOT1": 0,
"costChargeRateOT2": 0,
"costChargeCode": "1/TRA",
"costCostRate": 0,
"costCostRateOT1": 0,
"costCostRateOT2": 0,
"costCostTotal": 0,
"costCurrencyBuy": "",
"costCurrencyBuyDescription": "",
"costCurrencyBuyRate": 1,
"costCurrencyCharge": 0,
"costCurrencyChargeRate": 0,
"costCurrencyChargeRateNormal": 0,
"costCurrencyChargeRateOT1": 0,
"costCurrencyChargeRateOT2": 0,
"costCurrencyRecommendedCharge": 0,
"costCurrencyRecommendedChargeOT1": 0,
"costCurrencyRecommendedChargeOT2": 0,
"costCurrencySell": "1/EUR",
"costCurrencySellDescription": "Euro",
"costCurrencySellRate": 1.21,
"costDate": "2016-10-19",
"costDescription": "Employee Training",
"costWorkDone": "",
"costResourceName": "Michael Irving",
"costQuantity": 15,
"costQuantityOT1": 0,
"costQuantityOT2": 0,
"costRecommendedCharge": 0,
"costRecommendedChargeOT1": 0,
"costRecommendedChargeOT2": 0,
"costTaskDescription": "",
"costChargeCodeType": "T",
"costStage": ""
}
]
}