1. HERO
Pai Shop
  • AUTH
    • register
      POST
    • login
      POST
    • profile info after login
      GET
    • logout
      POST
    • forgot password
      POST
    • reset password
      POST
  • PRODUCT
    • all product
      GET
    • product by slug
      GET
    • add product (admin)
      POST
    • add product image by id (admin)
      POST
    • update product by id (admin)
      PATCH
    • soft delete product by id (admin)
      DELETE
    • hard delete product by id (admin)
      DELETE
    • all trash (admin)
      GET
    • trash by id (admin)
      GET
    • restore trash (admin)
      PATCH
    • Sort by Price: Low to High
      GET
    • Sort by Name: A-Z
      GET
    • Find products within the price range of Rp 500,000 to Rp 1,500,000
      GET
    • Lowest price in a specific category and range
      GET
  • ORDER
    • stats order (admin)
      GET
    • all orders (admin)
      GET
    • orders history
      GET
    • orders history by orderNumber
      GET
    • add order
      POST
    • web hook (admin)
      POST
    • cancel order by id
      PATCH
    • update order status (admin)
      PATCH
    • soft delete orders (admin)
      DELETE
    • hard delete orders (admin)
      DELETE
    • all trash (admin)
      GET
    • trash by id (admin)
      GET
    • restore trash (admin)
      PATCH
    • Order History by status
      GET
    • orders by id (admin)
      GET
  • PROFILE
    • user profile
    • add address
    • update profile
    • update default address by id
    • hard delete address
  • USER
    • all users (admin)
    • detail user by id (admin)
    • edit user role by id (admin)
    • soft delete users (admin)
    • hard delete users (admin)
    • all trash (admin)
    • trash by id (admin)
    • restore trash (admin)
  • CATEGORY
    • all categories
    • categories by id
    • add categories (admin)
    • update categories by id (admin)
    • soft delete categories by id (admin)
    • hard delete categories by id (admin)
    • all trash categories (admin)
    • trash categories by id (admin)
    • restore trash categories by id (admin)
  • FAVORITE
    • all fav product
    • add/unadd fav product
  • HERO
    • hero banner stats
      GET
  • FAQ
    • all faqs for public
    • all faqs (admin)
    • faq by id
    • add faqs (admin)
    • edit faq by id
    • hard delete faq by id
  • COMPANY-CONTACT
    • company-contact info
    • edit company-contact
  1. HERO

hero banner stats

Developing
GET
/stats/hero

Request

None

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/stats/hero'
Response Response Example
{
    "message": "Hero data retrieved successfully",
    "data": {
        "stats": {
            "users": 6,
            "products": 6,
            "orders": 1
        },
        "carousel": [
            {
                "id": "0e47a74b-4918-4e76-9816-a8251f330d9a",
                "name": "The Daily Productivity Planner",
                "price": "120000.00",
                "imageUrl": "https://res.cloudinary.com/dloemkmnu/image/upload/v1772203633/pai_shop_ecommerce_products/aoc3wlybtvupb1loyvsx.jpg",
                "slug": "the-daily-productivity-planner-xotk"
            },
            {
                "id": "7750745c-96bc-4428-9923-dc345a0b4893",
                "name": "Luminous Vitamin C Serum",
                "price": "185000.00",
                "imageUrl": "https://res.cloudinary.com/dloemkmnu/image/upload/v1772203591/pai_shop_ecommerce_products/rfqnqpshoy11kfycx55o.png",
                "slug": "luminous-vitamin-c-serum-n1mb"
            },
            {
                "id": "e87a86ed-f1bf-4e6c-b1e7-0cc5128fe8cc",
                "name": "Nordic Ceramic Coffee Mug",
                "price": "85000.00",
                "imageUrl": "https://res.cloudinary.com/dloemkmnu/image/upload/v1772203549/pai_shop_ecommerce_products/iaekg1v95bz4y4igyejz.jpg",
                "slug": "nordic-ceramic-coffee-mug-u6im"
            },
            {
                "id": "96212179-af3a-41e0-af8f-e84fbd19a572",
                "name": "Classic Vintage Denim Jacket",
                "price": "450000.00",
                "imageUrl": "https://res.cloudinary.com/dloemkmnu/image/upload/v1772203497/pai_shop_ecommerce_products/n7m0kxaxbbdcu0obxh12.jpg",
                "slug": "classic-vintage-denim-jacket-o4fl"
            }
        ]
    }
}
Modified at 2026-02-26 02:05:31
Previous
add/unadd fav product
Next
all faqs for public
Built with