OfficeGest
Workshop/Reports/Road tax alerts

Road tax alerts

Returns the vehicles whose road tax (IUC) expires up to the end of the window, with the last amount paid. There is no lower bound: already expired ones are returned too.

GET
/workshop/reports/road-tax-alerts
AuthorizationBearer <token>

In: header

Query Parameters

days?integer

Size of the look-ahead window, in days from now. Defaults to 30, the value the legacy dashboard widget uses.

Response Body

curl -X GET "https://og-tenant1.test:8003/api/v2/workshop/reports/road-tax-alerts?days=0"
{
  "data": [
    {
      "vehicle_ref": "string",
      "due_date": "string",
      "last_cost": 0
    }
  ]
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}