cost code allocations

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 ID

Get a cost code allocation by its ID, which is the id returned when the allocation was created. There's no read by employment.

SecuritybearerAuth
Request
path Parameters
id
required
integer

Cost code allocation ID.

Example: 1001
Responses
200

Cost Code Allocation Response

default

General Error

get/costCodeAllocations/{id}
Request samples
Response samples
application/vnd.api+json

Set an employment's cost code allocation

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.

SecuritybearerAuth
Request
path Parameters
id
required
string <guid>

Employment GUID. On this operation the path segment is the employment, not an allocation ID.

Example: 906264f1-2dff-4f72-a10b-59918cf738d7
Request Body schema: application/vnd.api+json

CostCode allocation object that needs to be added or updated

object
Responses
200

Cost Code Allocation Response

default

General Error

post/costCodeAllocations/{id}
Request samples
application/vnd.api+json
{
  • "data": {
    }
}
Response samples
application/vnd.api+json