Activity
Return, update, create and delete a list of time billing activities
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/TimeBilling/Activity |
Attribute Details
Paging: default page size is set to 400 with a maximum of 1000 results.
| Attribute | Type | Notes |
|---|---|---|
UID | Guid (36) | Unique guid identifier created for an activity. ONLY required for updating an existing activity. NOT required when creating a new activity. |
DisplayID | String (30) | The Activity ID |
Name | String (30) | The Activity name. |
Description | String (255) | Description of the activity. |
IsActive | Boolean | True indicates the activity is active. False indicates the activity is inactive. |
Type | String (255) | Type indicates if activity is tracked with units of time: Hourly NonHourly |
UnitOfMeasurement | String (255) | Hourly - If Type = Hourly then UnitOfMeasurement = Hour NonHourly - specify the type of measurement |
Status | String (255) | Can consist of the following: Chargeable used to include on time billing invoices. NonChargeable used when not charging customers but still wanting to include on activity slip. |
ChargeableDetails | object | The following set of information pulls through details for chargeable activity information. Required if Status = Chargeable |
ChargeableDetails.UseDescriptionOnSales | Boolean | True indicates the activity description is to be used in the notes field of time billing invoices. False indicates the description is not to be used on the notes field of time billing invoices. |
ChargeableDetails.IncomeAccount | object | The following set of information pulls through details for the Income Account |
ChargeableDetails.IncomeAccount.UID | Guid (36) | Foreign Key : Unique identifier for the account in the form of a guid. |
ChargeableDetails.IncomeAccount.Name | String (30) | Account name belonging to the account record. |
ChargeableDetails.IncomeAccount.DisplayID | String (6) | Account code format includes separator ie 1-1100 { 'DisplayID': '1-1100' } |
ChargeableDetails.IncomeAccount.URI | String | Uniform resource identifier associated with the account object. |
ChargeableDetails.TaxCode | object | The following set of information pulls through details for the Tax Code |
ChargeableDetails.TaxCode.UID | GUID (36) | Foreign Key : Unique tax code identifier in the form of a guid |
ChargeableDetails.TaxCode.Code | String (3) | 3 digit code assigned to the tax code. |
ChargeableDetails.TaxCode.URI | String | Uniform resource identifier associated with the tax code object. |
ChargeableDetails.Rate | String | Rate which can consit of the following: EmployeeBillingRate - sourced from the employee contact card CustomerBillingRate - sourced from the customer contact card ActivityRate - entered on activity and is exclusive of tax |
ChargeableDetails.ActivityRateExcludingTax | Decimal (13.2) | Only available If Rate = ActivityRate Amount charged for one unit of the activity. |
LastModified | DateTime | DateTime of the last time this resource was modified through a direct action to the object. eg a field was updated. |
URI | String | Uniform resource identifier encompasses all types of names and addresses that refer to objects on the web. |
RowVersion | String | Incrementing number that can be used for change control but does does not preserve a date or a time. ONLY required for updating an existing activity. NOT required when creating a new activity. |
Example json GET response
Example
{
"UID": "a6a6239d-b051-49cb-979c-8d850e4bfdcb",
"DisplayID": "Service01",
"Name": "Service-VIC",
"Description": "VIC service department",
"IsActive": "true",
"Type": "Hourly",
"UnitOfMeasurement": "Hour",
"Status": "Chargeable",
"LastModified": "2019-05-01T00:47:43.757",
"URI": "{cf_uri}/TimeBilling/Activity/a6a6239d-b051-49cb-979c-8d850e4bfdcb",
"RowVersion": "-6180064588659163136"
}The {cf_uri} is provided by the businessId parameter as described here.