Home Screen

Home screen includes 1 layout for categories 5 layout for products and 4 layout for banners.

Home Page API

The Home Screen API is a country-specific endpoint that provides essential data to create a personalized and relevant home screen experience for users in a particular country. It has critical endpoint that provides essential data for the e-commerce application's home or landing page. This API offers information about product categories, product listings, and banner layouts to create an engaging and personalized user experience.

Home page layout

Endpoint

  • {{baseurl}}/api/v1/homepage-layout

Method

  • GET

Request Parameters

  • lang_code (optional): A two-letter language code (e.g., "en" for English, "es" for Spanish, etc.) to support language-based localization. If provided, the API returns content in the specified language.

Request Body

  • None

Response Format

The API responds with a JSON object containing data related to categories, products, and banners. The data is structured as follows:

Authorization

The API requires a valid Bearer token in the request headers to authorize the user.

Features

  • The API provides a list of product categories with their respective names and images.

  • It offers a variety of product listings in different layouts to showcase products effectively.

  • The API includes banner layouts to display promotional offers and seasonal sales.

  • The Home Screen API allows the platform to deliver a country-specific and localized home screen experience to users.

Usage

The Home Page API is used when users visit the home or landing page of the e-commerce application. It fetches the necessary data for rendering the page content dynamically.

Last updated