OfficeGest
Workshop/Reports/Brands served current month

Brands served in the current month

Returns how many service orders the current calendar month has per vehicle brand, plus the window that was queried. Takes no parameters: the window is the server month, there is no filter and no pagination. Cancelled, draft, invoiced and appointment service orders are excluded; delivered ones are counted. Counting is per service order, so the same vehicle in two service orders counts twice. Brands are keyed by name, so brands sharing a name are one row and brands differing only in case are separate rows. Rows come in first-seen order and always carry a count of 1 or more; brands is empty when no service order survives in the month.

GET
/workshop/reports/brands-served-current-month
AuthorizationBearer <token>

In: header

Response Body

curl -X GET "https://og-tenant1.test:8003/api/v2/workshop/reports/brands-served-current-month"
{
  "data": {
    "month": "string",
    "brands": [
      {
        "brand": "string",
        "count": 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"
  }
}