In Duett Økonomi, the collective term Carriers is used for both cost and income carriers. Carriers are utilized to allocate costs and income to entities such as departments or projects.
A carrier can be of the following types:
The most commonly used types in the API are:
There are dedicated endpoints for details and creation of Employee and Project. The Free type can be created directly under the Carrier endpoint.
It is only possible to create carriers of type Free from this endpoint.
Property | Description | Default | Create |
---|---|---|---|
carrierTypeId | Required. The id of the carrier type of this carrier | x | |
name | Required: Name used to identify this carrier | x | |
key | Required: depending on the type of carrier, this is an identifier for that type. For example, this would be an employee number for an employee, a project id for a project etc. | True | x |
carrierType | add ?extend=CarrierType to your request to populate this field with carrierType details. See here for carrierType details | ||
employee | Returns employee details if the carrierType is employee | ||
project | Returns project details if the carrierType is project | ||
department | Returns department details if the carrierType is department | ||
wageType | You can specify the wageType of the carrier here (for carrierType that has usedInHour only). The wageType object should contain the id, typeId, typeName, and usedInHour fields. See below on how to find wageTypes | ||
hourRegistration | |||
show | Returns false if record has been soft deleted | true |
{
"carrierType.carrierTypeKind": {
"EQ": [
"wagetype"
]
},
"wageType.usedInHour": {
"EQ": [
"true"
]
}
}
As url:
extend=CarrierType&filter[carrierType.carrierTypeKind][EQ]=wagetype&filter[wageType.usedInHour][EQ]=trueWarning: Not all wage types are valid for use in hour registration.