Webhooks

Finance > CostCenter > Edits

Subscription_type: finance/cost_center/edit

postWebhookWebhooks > Finance > CostCenter > Edits

Payload

idstring required

Factorial id of the cost center.

namestring required

Name of the cost center.

company_idstring required

Company id the cost center belongs to.

legal_entity_idstring

Legal entity id the cost center belongs to.

codestring

Optional unique code of the cost center.

descriptionstring

Optional free text describing the cost center.

active_employees_countinteger required

Number of employees currently assigned to the cost center.

historical_employees_countinteger required

Number of employees ever assigned to the cost center.

statusstring required

Whether the cost center is active or inactive.

deactivation_datestring

Date the cost center was deactivated, if inactive.

Example payload

{
  "id": "1",
  "name": "Marketing",
  "company_id": "1",
  "legal_entity_id": "125",
  "code": "CC-001",
  "description": "Cost center for the marketing department",
  "status": "active"
}

Response

Return a 200 status to indicate that the data was received successfully

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.