The cost code structure is a user defined structure of named fields which represents the finacial coding structure in use in an organisation. For example: Nominal Account, Department, Project. This end point enables the name, data type and sequence of these fields to be queried
Cost Code Structure Part Response - Array
Bad Request
Unauthorized - Authorization Required
Unprocessable Entity
General Error
{- "data": [
- {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03",
- "type": "costCodeStructureParts",
- "attributes": {
- "name": "Location",
- "sequence": 1
}, - "relationships": {
- "partValues": {
- "links": {
}, - "data": [
- {
- "type": "costCodeStructurePartValues",
- "id": 123
}, - {
- "type": "costCodeStructurePartValues",
- "id": 124
}
]
}
},
}
]
}
Get Cost Code Structure Part by ID
Cost Code Structure Part Response
Bad Request
Unauthorized - Authorization Required
Not Found
Unprocessable Entity
General Error
{- "data": {
- "0": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "type": "costCodeStructureParts",
- "attributes": {
- "name": "Location",
- "sequence": 1
}, - "relationships": {
- "partValues": {
- "links": {
}, - "data": [
- {
- "type": "costCodeStructurePartValues",
- "id": 123
}, - {
- "type": "costCodeStructurePartValues",
- "id": 124
}
]
}
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
}