---
title: "Get Next Banner"
method: GET
path: "/api/v1/banners/next"
tags: ["banners"]
---

# Get Next Banner

`GET /api/v1/banners/next`

## 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/next`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/v1/auth/login`
- TypeScript: <https://skmtc.dev/food24/apis/goodfood/docs/api/v1/banners/next/get.ts> (a function with typed inputs; its response is checked against the schema)

Возвращает следующий поп-ап баннер для показа покупателю или null.

## Query parameters

- `location_id` integer, nullable

## Response `200`

Successful Response

- BannerRead
  - `id` integer, required
  - `title` string, required
  - `image_url` string, required
  - `placement` string, required
  - `location_id` integer, nullable
  - `is_active` boolean, required
  - `sort_order` integer, required
  - `duration_seconds` integer, required
  - `show_limit` integer, required
  - `show_period` string, required
  - `starts_at` string, date-time, nullable
  - `ends_at` string, date-time, nullable
  - `details` string, nullable
  - `feed_position` integer, nullable
  - `link_type` string, required
  - `link_url` string, nullable
  - `categories` CategoryRef[]
    - `id` integer, required
    - `name` string, required
  - `created_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)
