BillsResource


Create new bill


POST https://example.com/api/statistics/enterpriseresources/{enterprise}/bills

Roles : [ROLE_BILLS_MANAGE]

Content-Type : bill Accept : bill

Error Codes

  • BILL-3 - A bill for this period already exists
  • BILL-5 - Invalid date
  • CONSTR-REQUIRED - The property 'price' must have a value.

Example

List last bills


GET https://example.com/api/statistics/enterpriseresources/{enterprise}/bills

Roles : [ROLE_BILLS_VIEW]

Parameter Type Default Value Description
provider String Specify the provider type.
startwith Integer 0 The first element to be retrieved of the filtered search
by String id Order by
has String If present filter to apply in the search.
limit Integer 25 The number of entities to retrieve
asc Boolean true If the value of the 'by' parameter must be sorted in ascending order (true) or descending order (false)

Accept : bills

Example

List bill providers


GET https://example.com/api/statistics/enterpriseresources/{enterprise}/bills/action/providers

Roles : [ROLE_BILLS_VIEW]

Accept : billproviders

Example

Delete bill consolidation


DELETE https://example.com/api/statistics/enterpriseresources/{enterprise}/bills/{bill}

Roles : [ROLE_BILLS_MANAGE]

Example

Get bill consolidation


GET https://example.com/api/statistics/enterpriseresources/{enterprise}/bills/{bill}

Roles : [ROLE_BILLS_VIEW]

Accept : bill

Error Codes

  • BILL-4 - The requested bill does not exist
  • EN-0 - The requested enterprise does not exist

Example