- Resource Central
- 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
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.
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.
-d '{ "name": "Example Cost Center", "description": "Description of cost center" }'
{ "cost_center": { "id": "706970FE-0A8B-4F4E-A3EA-91D2FDF0C8B0", "name": "Example Cost Center", "creationDate": "2025-04-11T19:15:16.433000", "description": "Description of cost center." } }
Request a single cost center from the PPG database, returned as a JSON response.
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.
-d '{"description" : "updated description"}'
{ "cost_center": { "id": "62F1218C-1DD3-4DFB-85E1-2DA360B2F96A", "name": "Example Cost Center", "creationDate": "2025-04-11T19:14:34.667000", "description": "updated description" }
Delete a single cost center from the PPG database and return a JSON response.
Body Parameters
{ "deleted": "true" }