Cost Locations: add cost location
cost_locations_createCreate a cost centre to reference in postings. Verify existing cost locations first to prevent duplicate entries.
Instructions
🟡 WRITE · creates data: Creates new records (receipts, transactions, postings, invoices, master data). Not idempotent: calling twice may create duplicates.
add cost location
Add a new cost location.
Use to create a cost centre before referencing it from a posting.
Not idempotent. Check cost_locations_list first to avoid a duplicate.
Endpoint: POST /cost-locations/add
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | An alphanumeric identifier for the cost location (max 10 chars) | |
| name | Yes | The name/description of the cost location |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | blank | |
| message | No | blank | |
| success | Yes | Success boolean |