Momentum Energi External Web Api (/api/external)

External REST API for customers and suppliers to Momentum Software AB.

/api/external/v2/statistics

Controller for delivering statistics data upon requests

APIDescription
GET /api/external/v2/statistics/bykey/{key}/{periodStart}/{periodEnd}/groupbymedia

Get monthly statistics data for certain item in the structure and period grouped by media type.

GET /api/external/v2/statistics/bykey/{key}/{periodStart}/{periodEnd}/groupbyusage

Get monthly statistics data for certain item in the structure and period grouped by usage type. If there are multiple media types in the result set with different units, the result set will also be grouped by media type unit.

GET /api/external/v2/statistics/bykey/{key}/updatedAfter/{updatedAfter}/groupbymedia

Get monthly statistics data of any time period for a certain item in the structure that has one or more media types that are updated after a certain date. The result includes only the media types for each item that have been updated. For a full set of statistics for each item, please use the end points where you can specify a date interval instead. The result is grouped by media type.

GET /api/external/v2/statistics/bykey/{key}/updatedAfter/{updatedAfter}/groupbyusage

Get monthly statistics data of any time period for a certain item in the structure and that has one or more usage types that are updated after a certain date. The result includes only usage types for each structure item that have been updated. For a full set of statistics for each item, please use the end points where you can specify a date interval instead.

GET /api/external/v2/statistics/bylevel/{level}/{periodStart}/{periodEnd}/groupbymedia

Get monthly statistics data for certain structure level and period grouped by media type.

GET /api/external/v2/statistics/bylevel/{level}/{periodStart}/{periodEnd}/groupbyusage

Get monthly statistics data for certain structure level and period grouped by usage type. If there are multiple media types in the result set with different units, the result set will also be grouped by media type unit.

GET /api/external/v2/statistics/bylevel/{level}/updatedAfter/{updatedAfter}/groupbymedia

Get monthly statistics data of any time period and for a certain level in the structure that has one or more media types that are updated after a certain date. The result includes only media types for each structure item that have been updated. For a full set of statistics for each item, please use the end points where you can specify a date interval instead. The statistics are grouped by media type.

GET /api/external/v2/statistics/bylevel/{level}/updatedAfter/{updatedAfter}/groupbyusage

Get monthly statistics data of any time period and for a certain level in the structure that has one or more usage types that are updated after a certain date. The result includes only usage types for each structure item that have been updated. For a full set of statistics for each item, please use the end points where you can specify a date interval instead. The statistics are grouped by usage type. If there are multiple media types in the result set with different units, the result set will also be grouped by media type unit.

/api/external/v2/structure

Controller for delivering structure data upon requests.

APIDescription
GET /api/external/v2/structure/{level}

Get all items in structure matching requested level.