Please note that in order to get Services Usage Report you will need to run multiple API commands:
{
Newly created Report Template ID
}
{
"message": "string"
}
curl -X POST \
--url "https://console.monogoto.io/report-template/" \
-H "accept: application/json" \
-H "Authorization: Bearer {YOUR_TOKEN}" \
-d "{ \"Name\": \"{REPORT_NAME}\", \"Description\": \"{REPORT_DESCRIPTION}\", \"GroupBy\": \"servingNetwork\", \"rateByCurrentPricePlan\": true, \"ReportType\": \"rating\", \"ReportPeriod\": { \"startDate\": {START_DATE}, \"endDate\": {END_DATE}}}" \
curl -X POST \
--url "https://console.monogoto.io/report-template/" \
-H "accept: application/json" \
-H "Authorization: Bearer eyJhb6IkpXVCJ9.eyJSb2xlIjoiVXN4lclByb2ZpbGVJZF9kZGM2MThhNC0wNTI1LTQ2MmUtYWN3NzhhMGQxYmbSI6Im4zgFkbWluIiwiQ3VzdG9tsbCwiVXNlcklkIjoiVklkXzg5Yj5Y2OGEyUtNDQThhLTEzZjA0MzJhZDE3YyINTAzgZmUtZGI51My00ZjRiLTktN2U5Yjc0ZWU1ZThlIiwiaWNzM3MjI5L2MDY3NTE2Mjl9.99aSLzP7kTgK6TZGW-xalrMu0GkW6viunt3XxbNng" \
-d "{ \"Name\": \"September_report\", \"Description\": \"September_report\", \"GroupBy\": \"servingNetwork\", \"rateByCurrentPricePlan\": true, \"ReportType\": \"rating\", \"ReportPeriod\": { \"startDate\": 1661979600000, \"endDate\": 1664571599000}}" \
ReportTemplateId_a14901d4b-7691-4548-8110-72abcba0be22
Newly generated Report History ID
{
"message": "string"
}
{
"message": "string"
}
curl -X POST \
--url "https://console.monogoto.io/report-history/{REPORT_TEMPLATE_ID}" \
-H "accept: application/json" \
-H "Authorization: Bearer {YOUR_TOKEN}" \
curl -X POST \
--url "https://console.monogoto.io/report-history/ReportTemplateId_a14901d4b-7691-4548-8110-72abcba0be22" \
-H "accept: application/json" \
-H "Authorization: Bearer eyJhb6IkpXVCJ9.eyJSb2xlIjoiVXN4lclByb2ZpbGVJZF9kZGM2MThhNC0wNTI1LTQ2MmUtYWN3NzhhMGQxYmbSI6Im4zgFkbWluIiwiQ3VzdG9tsbCwiVXNlcklkIjoiVklkXzg5Yj5Y2OGEyUtNDQThhLTEzZjA0MzJhZDE3YyINTAzgZmUtZGI51My00ZjRiLTktN2U5Yjc0ZWU1ZThlIiwiaWNzM3MjI5L2MDY3NTE2Mjl9.99aSLzP7kTgK6TZGW-xalrMu0GkW6viunt3XxbNng" \
ReportHistoryId_611bac7b-abc9-4c18-9cbb-a497889180b7
[
{
"Name": "string",
"ReportTemplateDescription": "string",
"ReportTemplateName": "string",
"FilterBy": "string",
"FilterByItems": {
"CustomerId": [
null
],
"ThingsGroupId": [
null
],
"ThingId": [
null
],
"TagId": [
null
]
},
"GroupBy": "string",
"GroupByInterval": "string",
"ReportType": "string",
"ReportPeriod": {
"startDate": "2022-10-04T12:56:06.957Z",
"endDate": "2022-10-04T12:56:06.957Z"
},
"CustomerId": "string",
"OrganizationId": "string",
"ReportTemplateId": "string",
"ReportHistoryId": "string",
"DateCreated": "2022-10-04T12:56:06.957Z",
"DateModified": "2022-10-04T12:56:06.957Z",
"Type": "string"
}
]
{
"message": "string"
}
{
"message": "string"
}
curl -X GET \
--url "https://console.monogoto.io/report-history/report-history/byTemplate" \
-H "accept: application/json" \
-H "Authorization: Bearer {YOUR_TOKEN}" \
curl -X GET \
--url "https://console.monogoto.io/report-history/report-history/byTemplate" \
-H "accept: application/json" \
-H "Authorization: Bearer eyJhb6IkpXVCJ9.eyJSb2xlIjoiVXN4lclByb2ZpbGVJZF9kZGM2MThhNC0wNTI1LTQ2MmUtYWN3NzhhMGQxYmbSI6Im4zgFkbWluIiwiQ3VzdG9tsbCwiVXNlcklkIjoiVklkXzg5Yj5Y2OGEyUtNDQThhLTEzZjA0MzJhZDE3YyINTAzgZmUtZGI51My00ZjRiLTktN2U5Yjc0ZWU1ZThlIiwiaWNzM3MjI5L2MDY3NTE2Mjl9.99aSLzP7kTgK6TZGW-xalrMu0GkW6viunt3XxbNng" \
{
"dbResponse": [
{
"ReportHistoryId": "ReportHistoryId_611bac7b-abc9-4c18-9cbb-a497889180b7",
"ReportTemplateId": "ReportTemplateId_a14901d4b-7691-4548-8110-72abcba0be22",
"ReportType": "rating",
"FilterBy": "none",
"FilterByItems": {},
"OrganizationId": "OrganizationId_2ds578d7d-abc9-4123-acbb-1ec67a98b01a",
"CustomerId": "cid_eb426486-488a-4f44-9c6d-3627a66150cb",
"GroupBy": "servingNetwork",
"GroupByInterval": "d",
"ReportTemplateName": "September_report",
"ReportTemplateDescription": "September_report",
"ReportPeriod": {
"startDate": 1661979600000,
"endDate": 1664571599000
},
"csvPath": "/efs/reports/csv/2022/10/4/Report_September_report_#8d351.csv",
"pdfPath": "/efs/reports/pdf/2022/10/4/Report_September_report_#8d351.pdf",
"ReportData": null,
"Name": "Report September_report #8d351",
"rateByCurrentPricePlan": false,
"Type": "ReportHistory",
"DateCreated": 1664887341012
}
The CSV contents of the reports
{
"message": "string"
}
{
"message": "string"
}
curl -X GET \
--url "https://console.monogoto.io/https://console.monogoto.io /report-history/downloadReport/csv/{csvPath}" \
-H "accept: application/json" \
-H "Authorization: Bearer {YOUR_TOKEN}" \
curl -X GET \
--url "https://console.monogoto.io/https://console.monogoto.io /report-history/downloadReport/csv/%2Fefs%2Freports%2Fcsv%2F2022%2F10%2F4%2FReport_September_report_%238d351.csv" \
-H "accept: application/json" \
-H "Authorization: Bearer eyJhb6IkpXVCJ9.eyJSb2xlIjoiVXN4lclByb2ZpbGVJZF9kZGM2MThhNC0wNTI1LTQ2MmUtYWN3NzhhMGQxYmbSI6Im4zgFkbWluIiwiQ3VzdG9tsbCwiVXNlcklkIjoiVklkXzg5Yj5Y2OGEyUtNDQThhLTEzZjA0MzJhZDE3YyINTAzgZmUtZGI51My00ZjRiLTktN2U5Yjc0ZWU1ZThlIiwiaWNzM3MjI5L2MDY3NTE2Mjl9.99aSLzP7kTgK6TZGW-xalrMu0GkW6viunt3XxbNng" \
Thing Name,IMSI,MSISDN,Roaming Partner,Data,SMS,MO SMS,MT SMS,Voice,MO VOICE,MT VOICE,Total Before Credit,Credit,Total
"ICCID 8912372646888991, 8912372646888991",1234567891011,+420123456789,Bite , 140.25 MB,,,,,,,,,0.9677
"ICCID 8912372646888991, 8912372646888991",1234567891011,+420123456789,,140.25 MB,,,,,,,0.9677,0.0000,0.9677
"ICCID 8912372646888992, 8912372646888992",1234567891012,+420123456790,OMNITEL , 64.34 MB,,,,,,,,,0.4504
"ICCID 8912372646888992, 8912372646888992",1234567891012,+420123456790,,64.34 MB,,,,,,,0.4504,0.0000,0.4504
"ICCID 8912372646888993, 8912372646888993",1234567891013,+420123456791,Bite , 28.9 MB, 2,,,,,,,,0.1994
"ICCID 8912372646888993, 8912372646888993",1234567891013,+420123456791,,28.9 MB,,,2,,,,0.1994,0.0000,0.1994