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 PPG 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 PowerPick'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. Limit can range between 1 and 1000.

    Default value:

    250

  • page integer

    Page-numbering is based on the value of the "limit" argument. If limit=20, then page=0 will display the hits from 1 to 20. (Page numbers are zero-based.) Using page without a limit returns all items.

  • 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 ", }] }] }
Show Cost Center /api/cost_centers/[id]
get

Get a single cost center from the PPG database and return 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 " , } }