Returns a list of activity types.
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=activitytypelist |
Example request:
http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.9&action=activitytypelist&company=1
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 8,
"totalpages": 4,
"responsemessage": "",
"pagerows": 2,
"pagenumber": 1,
"success": true,
"data": [
{
"chargecodetypeUuid": "02D9533B13E011E39F6400155D003416",
"chargecodetypeTimestampModified": 1385819845,
"chargecodetypeRecordVersionNumber": 1,
"chargecodetypeCode": "1/ACT2",
"chargecodetypeDescription": "activity type 2"
},
{
"chargecodetypeUuid": "443472C2EF3A4B8DA7637397758A59D0",
"chargecodetypeTimestampModified": 1458058808,
"chargecodetypeRecordVersionNumber": 4,
"chargecodetypeCode": "1/COPY",
"chargecodetypeDescription": "copywritings"
}
]
}