1. Resource Central
  2. arrow-right
  3. Cost Centers

Cost Centers

Attributes

  • name string

    The name of the cost center.

  • id uuid

    The unique ID of the cost center.

  • creationDate datetime

    The date and time the cost center was created.

  • description string

    The description of the cost center. This should indicate if it is recording where the picked orders are being used, or the accounting code being charged to.

Endpoints

List Cost Centers /api/cost_centers
get

Get a list of cost centers from the Power Pick database and return a JSON response. View the guide on adding filters to List API calls.

Body Parameters

  • type string

    Cost center types are set in Power Pick's System Configuration. They can be optional or mandatory, and tracking info can be entered manually or selected from a drop-down list.

  • countOnly boolean

    When "true", will only return a count of the amount of items in the query.

    Default value:

    false

  • limit integer

    A limit on the number of objects to be returned.

    Default value:

    1000

  • page integer

    Page numbering is zero-based and uses the value of the "limit" argument. (For example, if limit=20, then page=0 will display the hits from 1 to 20.)

  • orderBy string, array

    Order the response by the selected field. Multiple values can be passed, separated by a comma.

Request with curl
curl "http://[subdomain.itempath.com or IP]/api/cost_centers" \ -X get \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]" -d '{ }'
Example Response
{ "cost_centers": [{ "name": " string ", "id": " uuid ", "creationDate": " datetime ", "description": " string ", }] }] }
Create Cost Center /api/cost_centers/
post

Create a single cost center and receive a JSON response consisting of the newly created cost center.

Body Parameters

  • name String
    REQUIRED

    The name for the cost center.

  • description String

    A description for the cost center.

Request with curl
curl "http://[subdomain.itempath.com or IP]/api/cost_centers/" \ -X post \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]" \
-d '{
    "name": "Example Cost Center",
    "description": "Description of cost center"
}'
Example Response
{
    "cost_center": {
        "id": "706970FE-0A8B-4F4E-A3EA-91D2FDF0C8B0",
        "name": "Example Cost Center",
        "creationDate": "2025-04-11T19:15:16.433000",
        "description": "Description of cost center."
    }
}
Show Cost Center /api/cost_centers/[id]
get

Request a single cost center from the PPG database, returned as a JSON response.

Request with curl
curl "http://[subdomain.itempath.com or IP]/api/cost_centers/[id]" \ -X get \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "cost_center": { "name": " string " , "id": uuid , "creationDate": datetime , "description": " string " , } }
Update Cost Center /api/cost_centers/[Cost+Center+ID]/
put

Update a single cost center and receive JSON as a response.

Body Parameters

  • name String

    The name of the cost center. This value must be unique.

  • description String

    A description of for the cost center.

Request with curl
curl "http://[subdomain.itempath.com or IP]/api/cost_centers/[Cost+Center+ID]/" \ -X put \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
-d '{"description" : "updated description"}'
Example Response
{
    "cost_center": {
        "id": "62F1218C-1DD3-4DFB-85E1-2DA360B2F96A",
        "name": "Example Cost Center",
        "creationDate": "2025-04-11T19:14:34.667000",
        "description": "updated description"
    }
Delete Cost Center /api/cost_centers/[id]/delete
delete

Delete a single cost center from the PPG database and return a JSON response.

Body Parameters

Request with curl
curl "http://[subdomain.itempath.com or IP]/api/cost_centers/[id]/delete" \ -X delete \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "deleted": "true" }