Skip to content

Product Promotion(Discount Banner) APIs

This section provides the API endpoints related to discount offered.


1. List product promotion(discount offered)

Endpoint

  • URL: /api/v1/catalog/product/promotion/list/
  • Method: GET
  • Permission Required: AllowAny

Description

This API endpoint provides a list of active product promotions(discount offered). It allows filtering by product promotion ID or title. Pagination is applied for large datasets, and users can search for promotions based on title or description.

Response Examples

Success

{
    "pageSize": 10,
    "count": 2,
    "page_count": 1,
    "active_page": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 2,
            "title": "GOT Special: Winter Is Coming",
            "description": "Up to 50% OFF",
            "discount_percent": "50.00",
            "banner_image": "https://api.kurtasari.com/media/product/promotion/banner_image/got.png",
            "thumbnail_image": "https://api.kurtasari.com/media/product/promotion/thumbnail_image/got.png",
            "start_date": "12-10-2024 05:46:39",
            "end_date": "01-30-2025 05:46:44",
            "is_active": true,
            "created_at": "12-10-2024 05:48:00",
            "updated_at": "12-10-2024 05:48:00"
        },
        {
            "id": 1,
            "title": "Collection For Wedding Season",
            "description": "Up to 40% OFF",
            "discount_percent": "40.00",
            "banner_image": "https://api.kurtasari.com/media/product/promotion/banner_image/discount1.png",
            "thumbnail_image": "https://api.kurtasari.com/media/product/promotion/thumbnail_image/discount1.png",
            "start_date": "12-10-2024 05:43:07",
            "end_date": "01-30-2025 05:43:16",
            "is_active": true,
            "created_at": "12-10-2024 05:43:27",
            "updated_at": "12-10-2024 05:43:27"
        }
    ]
}