API: Get All Offer and Promos

Request

Retrieve all offer and promos with a GET request:

GET /offer-and-promos

Available Query Parameters:

Parameter Type Description Example
page Integer Number of page (min: 1) 1
per_page Integer Number of items per page (max: 1000) 10
search String Title, description and experience date to search Search Word

Sample Response:


{
    "status": "success",
    "message": "Offer and promos retrieved successfully",
    "data" : [
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "title": "This is a test offer and promo",
                "expired_date": null,
                "description": null,
                "image": "http://127.0.0.1:8000/uploads/offer-and-promos/1762016881_K67aahLH22AWOFDhelFs.jpeg",
                "link": null,
                "status": 1,
                "created_by": 1,
                "updated_by": null,
                "created_at": "2025-11-01T17:08:01.000000Z",
                "updated_at": "2025-11-01T17:08:01.000000Z",
                "deleted_at": null
            }
        ],
        "first_page_url": "http://127.0.0.1:8000/api/offer-and-promos?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://127.0.0.1:8000/api/offer-and-promos?page=1",
        "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "http://127.0.0.1:8000/api/offer-and-promos?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
        ],
        "next_page_url": null,
        "path": "http://127.0.0.1:8000/api/offer-and-promos",
        "per_page": 10,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    ]

}