Cost centre

URL https://api.recman.no/v2/
Scope costCentre
Operation GET

Cost centre fields

Fields Description
costCentreIdinteger ID of the specific cost centre
namestring Name of the specific cost centre
activeinteger If it is active or notValid values: 1 0
editAfterInvoiceinteger Valid values: 1 0
externalIdstring Use this if the cost centre also has an ID outside of RecMan
accessobject See fields below

Access fields

Fields Description
corporationIdsarray of integer List of IDs for alle corporations who have access
userIdsarray of integer List of IDs for alle users who have access
departmentIdsarray of integer List of IDs for alle departments who have access
allboolean If all should have access or not. If the above fields are empty it defaults to trueValid values: true false

Cost centre example

json
{
    "success": true,
    "numRows": 1,
    "data": [
        {
            "costCentreId": 185,
            "name": "Oslo dept.",
            "active": 1,
            "editAfterInvoice": 1,
            "externalId": "STH-004",
            "access": {
                "corporationIds": [
                    "360",
                    "1096"
                ],
                "userIds": [
                    "13708"
                ],
                "departmentIds": [
                    "2916"
                ],
                "all": false
            }
        }
  	]
}