v1

latestOpenAPI 3.1.02026-07-26549156879.0 KB
Finance > CostCenterMembership

Bulk create updates a Cost center membership

What does it do? Performs an update of cost center memberships for an employee.

The action creates new memberships starting from today, terminating any pre-existing memberships for the employee. This ensures a history of cost center memberships is preserved.

What does the memberships array look like?

An array of objects with these properties:

  • cost_center_id
  • percentage: A float between 0 and 1 representing the percentage that the employee is assigned to the cost center. For multiple assignments, the sum of percentages must equal 1.0. For example, for an employee assigned to cost center 1 during 30% of their time and cost center 2 during 70% of their time, the request parameters would look like: memberships: [{"cost_center_id": 1, "percentage": 0.3} ,{"cost_center_id": 2, "percentage": 0.7}]
post/api/2026-07-01/resources/finance/cost_center_memberships/bulk_create_update

Request body

employee_idstring required
company_idstring required

Response

OK

idstring required

The unique identifier of the cost center membership

employee_idstring required

The identifier of the associated employee

cost_center_idstring required

The identifier of the associated cost center

start_datestring required

The date the employee started being assigned to the cost center

end_datestring

The date the em'ployee stopped being assigned to the cost center

percentagenumber required

The percentage allocation of the employee to the cost center

Example response

[
  {
    "id": "1",
    "employee_id": "1",
    "cost_center_id": "1",
    "start_date": "2020-01-01",
    "end_date": "2020-12-31",
    "percentage": 0.5
  }
]