Discussions

Ask a Question
Back to All

Retrieve a list of charges seems to be ignoring 'fromDate' argument

request:

curl --request GET  
     --url '<https://public-api.monta.com/api/v1/charges?chargePointId=zzzzzzz&fromDate=2024-04-23T06%3A58%3A04Z&page=0&perPage=10'>  
     --header 'accept: application/json'  
     --header 'authorization: Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

result:

{
  "data": [
    {
      "id": iiiiiiii,
      "chargePointId": ccccccc,
      "createdAt": "2024-04-24T23:08:02Z",
      "updatedAt": "2024-04-25T05:38:45Z",
      "cablePluggedInAt": "2024-04-24T23:08:02Z",
      "startedAt": "2024-04-24T23:08:02Z",
      "stoppedAt": "2024-04-25T05:38:45Z",
      "fullyChargedAt": null,
      "failedAt": null,
      "timeoutAt": null,
      "state": "completed",
      "consumedKwh": 34.07,
      "kwhLimit": null,
      "startMeterKwh": 5141.459,
      "endMeterKwh": 5175.524,
      "cost": 2.81,
      "price": 0,
      "priceLimit": null,
      "averagePricePerKwh": 0,
      "averageCo2PerKwh": 0,
      "averageRenewablePerKwh": 0,
      "failureReason": null,
      "stopReason": "regular state change",
      "note": null,
      "currency": {
        "identifier": "eur",
        "name": "Euros",
        "decimals": 2
      },
      "soc": null,
      "socLimit": null
    },
    {
      "id": iiiiiiii,
      "chargePointId": ccccccc,
      "createdAt": "2024-04-22T23:08:01Z",
      "updatedAt": "2024-04-23T06:58:04Z",
      "cablePluggedInAt": "2024-04-22T23:08:01Z",
      "startedAt": "2024-04-22T23:08:01Z",
      "stoppedAt": "2024-04-23T06:58:04Z",
      "fullyChargedAt": null,
      "failedAt": null,
      "timeoutAt": null,
      "state": "completed",
      "consumedKwh": 0.06,
      "kwhLimit": null,
      "startMeterKwh": 5141.403,
      "endMeterKwh": 5141.459,
      "cost": 0,
      "price": 0,
      "priceLimit": null,
      "averagePricePerKwh": 0,
      "averageCo2PerKwh": 0,
      "averageRenewablePerKwh": 0,
      "failureReason": null,
      "stopReason": "StoppedByUser",
      "note": null,
      "currency": {
        "identifier": "eur",
        "name": "Euros",
        "decimals": 2
      },
      "soc": null,
      "socLimit": null
    },
    (...)
    {
      "id": iiiiiiii,
      "chargePointId": ccccccc,
      "createdAt": "2024-04-13T23:08:01Z",
      "updatedAt": "2024-04-14T06:58:06Z",
      "cablePluggedInAt": "2024-04-13T23:08:01Z",
      "startedAt": "2024-04-13T23:08:02Z",
      "stoppedAt": "2024-04-14T06:58:05Z",
      "fullyChargedAt": null,
      "failedAt": null,
      "timeoutAt": null,
      "state": "completed",
      "consumedKwh": 4.72,
      "kwhLimit": null,
      "startMeterKwh": 5055.616,
      "endMeterKwh": 5060.337,
      "cost": 0.68,
      "price": 0,
      "priceLimit": null,
      "averagePricePerKwh": 0,
      "averageCo2PerKwh": 0,
      "averageRenewablePerKwh": 0,
      "failureReason": null,
      "stopReason": "StoppedByUser",
      "note": null,
      "currency": {
        "identifier": "eur",
        "name": "Euros",
        "decimals": 2
      },
      "soc": null,
      "socLimit": null
    }
  ],
  "meta": {
    "itemCount": 10,
    "currentPage": 0,
    "perPage": 10,
    "totalPageCount": 31,
    "totalItemCount": 309
  }
}

It has been working fine until yesterday.