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 Cost Code Allocation by Employment ID
Cost Code Allocation Response
Bad Request
Unauthorized - Authorization Required
Not Found
Unprocessable Entity
General Error
{- "data": {
- "0": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "type": "costCodeAllocations",
- "attributes": {
- "percentage": 66.66
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
}
Add or update a cost code allocation
Cost Code Allocation Response
Bad Request
Unauthorized - Authorization Required
Unprocessable Entity
General Error
{- "data": {
- "type": "costCodeAllocations",
- "attributes": {
- "percentage": 66.66
}, - "relationships": {
- "0": null,
- "costCodes": {
- "data": [
- {
- "id": "285f0a36-9ff3-4399-a47a-80e9bce56921",
- "type": "costCodeStructurePartValues"
}, - {
- "id": "d57ea6c7-6d47-42bc-b34a-9468a2c2a65d",
- "type": "costCodeStructurePartValues"
}
]
}
}
}
}
{- "data": {
- "0": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "type": "costCodeAllocations",
- "attributes": {
- "percentage": 66.66
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
}