BillRegistersResource


Create a bill


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

Roles : [ROLE_BILLS_MANAGE]

Content-Type : bill Accept : bill

Error Codes

  • BILL-5 - Invalid date
  • BILL_REGISTER-0 - The bill register for the given date, enterprise and provider already exists
  • BILL_REGISTER-3 - The bill register of a day must be inside the specified period
  • CONSTR-REQUIRED - The property 'price' must have a value.

Example

List bills of last period


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

Roles : [ROLE_BILLS_VIEW]

Parameter Type Default Value Description
provider String Specify the provider type.

Accept : bills

Example

Calculate bill estimation


GET https://example.com/api/statistics/enterpriseresources/{enterprise}/billregisters/action/estimate

Roles : [ROLE_BILLS_VIEW]

Parameter Type Default Value Description
provider String Required. Specify the provider type.

Accept : text/plain

Error Codes

  • BILL-0 - Invalid provider

Example

Delete a bill


DELETE https://example.com/api/statistics/enterpriseresources/{enterprise}/billregisters/{billregister}

Roles : [ROLE_BILLS_MANAGE]

Example

Get a bill


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

Roles : [ROLE_BILLS_VIEW]

Accept : bill

Error Codes

  • BILL_REGISTER-1 - The requested bill register does not exist
  • EN-0 - The requested enterprise does not exist

Example