---
title: "Daily KPI"
canonical: "https://kb.webcockpit.app/en/customer-api/sales/getdailykpi"
updatedDate: 2026-10-16T00:00:00.000Z
description: "Get the daily KPI values for a restaurant with the specified Total View Layout structure"
tags: ["api", "sales"]
---

## Endpoint URL

<Endpoint
  method="GET"
  path="/api/Sales/getdailykpi"
/>

### Authentication

This endpoint requires the `X-Api-Key` header for authentication.
*Example:* `X-Api-Key 12345abcdef`

### Parameters

| Name | Type | Position | Description |
| ---- | ---- | -------- | ----------- |
| `storeNumber` | integer (int32) | query | Restaurant number |
| `countryCode` | string | query | ISO Country code |
| `businessDay` | string | query | Date with the "yyyy-MM-dd" format |
| `totalViewUniqueIdentifier` | string | query | Total view layout unique identifier |
| `localization` | string | query | Optional: The KPI items localization language. If none is specified then the english language is the default |



### Responses

#### 200 — OK

**Media type:** `application/json`

```json
{
  "success": true,
  "message": "string",
  "warnings": [
    {
      "title": "string",
      "body": "string"
    }
  ],
  "totalViewLayoutGroups": [
    {
      "localizedName": "string",
      "items": [
        {
          "localizedName": "string",
          "unit": "string",
          "value": 0.0,
          "uniqueIdentifier": "string"
        }
      ]
    }
  ],
  "period": {
    "start": "string",
    "end": "string",
    "startDate": "string",
    "endDate": "string"
  },
  "comparisonPeriod": {
    "start": "string",
    "end": "string",
    "startDate": "string",
    "endDate": "string"
  }
}
```
