/v2/api/entity base and authenticated with a Bearer token.1) is the data level — how deeply related records are loaded — not a page or format flag. For this endpoint it has no visible effect, so /cost_center/{ID} and /cost_center/{ID}/1 return the same result.data envelope).is_primary is:| Value | Meaning |
|---|---|
| 1 | Primary (root) cost center |
| 0 | Secondary (child) cost center |
cost_center_id is the id of the parent cost center (0 for a primary/root cost center), and cost_center_ids is the comma-separated ancestor path.error happened rather than a 404.curl --location --globoff 'https://.daftara.com/v2/api/entity/cost_center/2/1' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"id": 0,
"name": "string",
"code": "string",
"is_primary": 0,
"cost_center_id": 0,
"cost_center_ids": "string",
"created": "string",
"modified": "string",
"branch_id": 0
}