Chargecodelist
Parameter | Type | Description |
---|---|---|
[IN] Parameters described in Overview | ||
Company | String | [IN] The users default company number for the companies list |
Action | String | [IN] Identifier for the list requested |
Resource | String | [IN] Identifier for the resource context |
Activitytype [OPTIONAL] | String | [IN] Identifier for activity type context |
Jobphase [OPTIONAL] | String | [IN] Identifier for jobphase to filter chargecodes allowed |
Response | XML/JSON | [OUT] An XML tree / JSON string containing charge codes which the user has access to |
Description
Calling the timesheets API with an action of chargecodelist retrieves a list of charge codes and descriptions.
Return Values
Response – List of charge codes and descriptions.
The structure of the response is:
<chargecodes morepages="False" totalpages="1" totalrows="1">
<chargecode chargecodes_uuid="EF2B27491C5E43AFA8AD72559DE10ACC">
<chargecodes_activitycode>1/COPY</chargecodes_activitycode>
<chargecodes_chargecode>1/CW</chargecodes_chargecode>
<array_chargecodeuserdefault__chargecodes_chargecode>
false
</array_chargecodeuserdefault__chargecodes_chargecode>
<chargecodes_description>Copy Writing</chargecodes_description>
</chargecode>
</chargecodes>
{
"errormessage": "",
"responsecode": 1,
"pagerows": 0,
"totalrows": 1,
"responsestatus": "OK",
"success": true,
"responsemessage": "",
"errorcode": 0,
"totalpages": 1,
"pagenumber": 1,
"data": [
{
"chargecodes_uuid": "EF2B27491C5E43AFA8AD72559DE10ACC",
"chargecodes_activitycode": "1/COPY",
"array_chargecodeuserdefault__chargecodes_chargecode": false
"chargecodes_chargecode": "1/CW",
"chargecodes_description": "Copy Writing"
}
]
}