---
title: "Record View"
method: POST
path: "/api/v1/banners/{banner_id}/view"
tags: ["banners"]
---

# Record View

`POST /api/v1/banners/{banner_id}/view`

## Request

- Base URL: `https://api.food24.kz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.food24.kz/api/v1/banners/{banner_id}/view`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/v1/auth/login`
- TypeScript: <https://skmtc.dev/food24/apis/goodfood/docs/api/v1/banners/:banner_id/view/post.ts> (a function with typed inputs; its response is checked against the schema)

Записывает факт просмотра баннера покупателем.

## Path parameters

- `banner_id` integer, required

## Request body

- BannerViewCreate
  - `status` string, required
  - `view_duration_seconds` number, nullable
  - `location_id` integer, nullable

## Response `201`

Successful Response

- BannerViewRead
  - `id` integer, required
  - `banner_id` integer, required
  - `customer_id` integer, nullable
  - `visitor_id` string, nullable
  - `location_id` integer, nullable
  - `status` string, required
  - `view_duration_seconds` number, nullable
  - `viewed_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/food24/apis/goodfood.md) - [All operations](https://skmtc.dev/food24/apis/goodfood/llms.txt) - [OpenAPI document](https://skmtc.dev/food24/apis/goodfood/revisions/f75c731597d3?raw)
