Returns the list of charge codes.
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | tspending.json | |
General | Yes | Parameters described in overview | see overview | Structure of an API call |
Company | Yes | The company number | company=1 | |
Action | Yes | The action to perform | action=chargecodelist |
Example request:
http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.9&action=chargecodelist&company=1
Example response:
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 67,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"synapiversion": 3.8,
"data": [
{
"chargecodeUuid": "8D4431FCE252674686DA4DCD3EEEFB94",
"chargecodeTimestampModified": 1594797067,
"chargecodeRecordversionnumber": 1,
"chargecodeActivityCode": "",
"chargecodeChargecode": "1/33&44",
"chargecodeDescription": "33&44",
"chargecodeUserDefault": false
},
{
"chargecodeUuid": "BEE4CB9403261845B2A23F06B16EFD1C",
"chargecodeTimestampModified": 1594797073,
"chargecodeRecordversionnumber": 11,
"chargecodeActivityCode": "",
"chargecodeChargecode": "1/AA",
"chargecodeDescription": "aa",
"chargecodeUserDefault": false
},