Cost Units

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

  • List cost units
  • Create cost units
  • Update cost units
  • List transactions of the cost units

Resource information

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

List cost units

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

URL https://api.profit365.eu/1.6/catalogs/cost-units/{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-units/1

 

Search cost unit

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

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

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

Example

https://api.profit365.eu/1.6/catalogs/cost-units/?search=Administration

 

Create new cost unit

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

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

{
"code": "A05_009",
"name": "Administration",
}

Parameters for insert are listed here.

Update cost unit

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

An ID of a cost-unit.

Example

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

Cost unit parameters

Code

required

Code of the cost unit.

Type: String

request, response

Name

required

Name of the cost unit.

Type: String

request, response

List transactions

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

An ID of a cost-unit.

{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-units/830ee09f-d3c7-4170-b766-4abc26601b42/transactions/1