Get Cost Center Data

Describes the API specifications for retrieving all cost center data.

Request

URI: https://<SAP Fieldglass envionment URL>/api/v1/admin/v1/costcenter/<costcenterID>

HTTP Method: GET

Request Parameters

Parameter Required Data Type Description Parameter Type
costcenterID Yes String The unique ID of the cost center. Path

Request Example

GET https://company.com/api/v1/admin/v1/costcenter/z05120604383693350356154
authorization: Bearer WDXlKj3TTOn3rpg9GHnZpbKmvj1=
x-ApplicationKey: 5c91f4fdb0c6ee9992ff476f89bf6cf25e589350
content-type: application/json

Response

Response Status and Error Codes

See Common Status and Error Codes for more information.

Response Body

Response Payload Content
Element Name Data Type Description
activeFlag Boolean Indicates whether the cost center is active.
buyerCode String Buyer company code.
closedReasonId String The ID of the reason the cost center was closed.
closedTime String The date and time the cost center was closed
code String Value that uniquely describes the cost center.
costCenterId String Globally unique database-level identifier of the cost center. This is the ID used for the drill-down call. Not visible to end users.
createTime String The date and time the record was created.
displayStatus String The date and time the cost center record was created.
divisionCodeAssociationType String Indicates if multiple legal entities apply to the cost center.
divisionCodeId String The auto generated unique system ID of the legal entity associated with the cost center.
includeAllExpenseFlag Boolean Indicates whether all expense codes will automatically be associated to the cost center.
includeAllTaskFlag Boolean Indicates whether all tasks are included.
name String Value that uniquely describes the cost center in more recognizable terms than the Cost Center Code.
openToAssociateFlag Boolean Indicates if worker can associate project cost center in legal entity. When it is set to true, the worker can associate the cost center to themselves without requiring the permission of the cost center owner.
ownerId String The The SAP Fieldglass globally unique database-level identifier of the cost center's owner.
projectCCFlag Boolean Indicates if cost center applies to a project.
rebillableCostObjectFlag Boolean Indicates whether suppliers will be able to see Cost Allocation information on the Job Posting or SOW Bid.
revisionTime String The date and time the record was revised.
uploadedFlag Boolean  
Response Payload Links
Element Name Data Type Description
rel String Related sub-modules.
link String The URI of the link.
id String Globally unique database-level identifier of the cost center record.

Response Example

{
    "header": {
        "server": "Fieldglass API Server",
        "responseStatus": "OK",
        "noOfRecordsPresent": 1,
        "noOfRecordsServed": 1,
        "moreRecordsExists": false,
        "localeString": "en_US",
        "version": "v1"
    },
    "responsePayload": {
        "content": {
            "activeFlag": false,
            "buyerCode": "ANTE",
            "closedReasonId": "012504042023012458036759",
            "closedTime": "11/25/2009 12:34",
            "code": "1206",
            "costCenterId": "z05120604383693350356154",
            "createTime": "12/06/2005 16:38",
            "displayStatus": "Closed",
            "divisionCodeAssociationType": "SINGLE",
            "divisionCodeId": "z16063006595772655755983",
            "includeAllExpenseFlag": false,
            "includeAllTaskFlag": false,
            "name": "1206",
            "openToAssociateFlag": false,
            "ownerId": "012505020707270354440143",
            "projectCCFlag": false,
            "rebillableCostObjectFlag": false,
            "revisionTime": "11/25/2009 12:34",
            "uploadedFlag": false
        },
        "links": [
            {
                "rel": "self",
                "link": "api/v1/admin/v1/costcenter/z05120604383693350356154",
                "id": "z05120604383693350356154"
            }
        ]
    }
}