Cost Centers

The Cost centers API is a background functionality of a web client at Profit365 > Cost Centers. With this resource you can:

  • List cost centers
  • Create cost center
  • Update cost center
  • List transactions of the cost center

Resource information

Url https://api.profit365.eu/1.6/catalogs/cost-centers
Authentication required
Access level company
Response JSON / XML

List cost centers

A view is currently only way how to list cost centers. A pagination is used.

URL https://api.profit365.eu/1.6/catalogs/cost-centers/{page}
Method GET
{page}

A page number of result set. Default page number is 1 and default page size is 50.

Example

https://api.profit365.eu/1.6/catalogs/cost-centers/1

 

Search cost center

It is possible to search through all the parameters of a cost center with this search.

URL https://api.profit365.eu/1.6/catalogs/cost-centers/?search={query}
Method GET
{query}

String which should be searched for through all the parameters of cost centers.

Example

https://api.profit365.eu/1.6/catalogs/cost-centers/?search=Office

 

Create new cost center

URL https://api.profit365.eu/1.6/catalogs/cost-centers
Method POST
Example POST https://api.profit365.eu/1.6/catalogs/cost-centers

Authorization: Basic *** hidden credentials ***
ClientID: C7A36D...
ClientSecret: j7896WnI0U1...
CompanyID: CCA256B...
Content-Type: application/json

{
"code": "CC003",
"name": "Office",
}

Parameters for insert are listed here.

Update cost center

URL https://api.profit365.eu/1.6/catalogs/cost-centers/{id}
Method PUT
{id}

An ID of a cost-center.

Example

https://api.profit365.eu/1.6/catalogs/cost-centers/830ee09f-d3c7-4170-b766-4abc26601b42

Cost center parameters

Code

required

Code of the cost center.

Type: String

request, response

Name

required

Name of the cost center.

Type: String

request, response

List transactions

URL https://api.profit365.eu/1.6/catalogs/cost-centers/{id}/transactions/{page}
Method GET
{id}

An ID of a cost-center.

{page}

A page number of result set. Default page number is 1 and default page size is 50.

Example

https://api.profit365.eu/1.6/catalogs/cost-centers/830ee09f-d3c7-4170-b766-4abc26601b42/transactions/1