1. CATEGORY
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)
    • all orders (admin)
    • orders history
    • orders history by orderNumber
    • add order
    • web hook (admin)
    • cancel order by id
    • update order status (admin)
    • soft delete orders (admin)
    • hard delete orders (admin)
    • all trash (admin)
    • trash by id (admin)
    • restore trash (admin)
    • Order History by status
    • orders by id (admin)
  • 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
      GET
    • categories by id
      GET
    • add categories (admin)
      POST
    • update categories by id (admin)
      PATCH
    • soft delete categories by id (admin)
      DELETE
    • hard delete categories by id (admin)
      DELETE
    • all trash categories (admin)
      GET
    • trash categories by id (admin)
      GET
    • restore trash categories by id (admin)
      PATCH
  • FAVORITE
    • all fav product
    • add/unadd fav product
  • HERO
    • hero banner stats
  • 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. CATEGORY

all categories

Developing
GET
/categories

Request

None

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/categories'
Response Response Example
{
    "data": [
        {
            "id": "1a153fce-bb07-4673-90be-cbc7a3e376a3",
            "name": "Apparel & Fashion",
            "description": "Trendy clothing, comfortable activewear, and stylish accessories for men and women.",
            "createdAt": "2026-02-27T14:36:05.979Z",
            "updatedAt": "2026-02-27T14:36:05.979Z",
            "deletedAt": null,
            "totalProducts": 1,
            "imageUrl": "https://res.cloudinary.com/dloemkmnu/image/upload/v1772203497/pai_shop_ecommerce_products/n7m0kxaxbbdcu0obxh12.jpg"
        },
        {
            "id": "c16cdc3b-f935-44e9-ac81-dc0260114bd2",
            "name": "Books & Stationery",
            "description": "Inspiring novels, productivity planners, and premium office supplies for students and professionals.",
            "createdAt": "2026-02-27T14:37:05.608Z",
            "updatedAt": "2026-03-08T07:31:31.973Z",
            "deletedAt": null,
            "totalProducts": 1,
            "imageUrl": "https://res.cloudinary.com/dloemkmnu/image/upload/v1772203633/pai_shop_ecommerce_products/aoc3wlybtvupb1loyvsx.jpg"
        },
        {
            "id": "97357965-19bd-4188-b8ed-572ca03e55c6",
            "name": "Electronics",
            "description": "Latest gadgets, smart devices, and premium electronic accessories to elevate your daily tech experience.",
            "createdAt": "2026-02-27T14:35:04.832Z",
            "updatedAt": "2026-02-27T14:35:04.832Z",
            "deletedAt": null,
            "totalProducts": 2,
            "imageUrl": "https://res.cloudinary.com/dloemkmnu/image/upload/v1772203436/pai_shop_ecommerce_products/v9oku7yqwctgcoqliulc.png"
        },
        {
            "id": "337cb55c-cbc7-4aec-a1be-ca328f9f67b6",
            "name": "Health & Beauty",
            "description": "Organic skincare, wellness supplements, and daily personal care products for a healthier you.",
            "createdAt": "2026-02-27T14:36:45.237Z",
            "updatedAt": "2026-02-27T14:36:45.237Z",
            "deletedAt": null,
            "totalProducts": 1,
            "imageUrl": "https://res.cloudinary.com/dloemkmnu/image/upload/v1772203591/pai_shop_ecommerce_products/rfqnqpshoy11kfycx55o.png"
        },
        {
            "id": "e830d0ba-98f6-45bc-8a9b-443ec734ad99",
            "name": "Home & Lifestyle",
            "description": "Minimalist decor, essential furniture, and smart appliances to make your living space more comfortable.",
            "createdAt": "2026-02-27T14:36:24.504Z",
            "updatedAt": "2026-02-27T14:36:24.504Z",
            "deletedAt": null,
            "totalProducts": 1,
            "imageUrl": "https://res.cloudinary.com/dloemkmnu/image/upload/v1772203549/pai_shop_ecommerce_products/iaekg1v95bz4y4igyejz.jpg"
        }
    ],
    "meta": {
        "totalItems": 5,
        "itemCount": 5,
        "itemsPerPage": 10,
        "totalPages": 1,
        "currentPage": 1
    }
}
Modified at 2026-02-24 09:47:39
Previous
restore trash (admin)
Next
categories by id
Built with