A cost code allocation can be assigned to an employee in order to track financial costs and produce journals destined for your accounting system
Get a cost code allocation by its ID, which is the id returned when the allocation was created. There's no read by employment.
Cost Code Allocation Response
General Error
{- "data": {
- "type": "costCodeAllocations",
- "id": "1001",
- "attributes": {
- "percentage": 66.66
},
}
}Sets the cost code allocation for the employment whose GUID is in the path. Any existing allocation for that employment is replaced, so the response carries a new id each time. Send between 1 and 11 cost code values in the costCodes relationship.
Cost Code Allocation Response
General Error
{- "data": {
- "type": "costCodeAllocations",
- "attributes": {
- "percentage": 66.66
}, - "relationships": {
- "costCodes": {
- "data": [
- {
- "id": "1001",
- "type": "costCodeStructurePartValues"
}, - {
- "id": "1002",
- "type": "costCodeStructurePartValues"
}
]
}
}
}
}{- "data": {
- "type": "costCodeAllocations",
- "id": "1001",
- "attributes": {
- "percentage": 66.66
},
}
}