1. USER
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)
      GET
    • detail user by id (admin)
      GET
    • edit user role by id (admin)
      PATCH
    • soft delete users (admin)
      DELETE
    • hard delete users (admin)
      DELETE
    • all trash (admin)
      GET
    • trash by id (admin)
      GET
    • restore trash (admin)
      PATCH
  • 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
  • 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. USER

all trash (admin)

Developing
GET
/users/trash

Request

None

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/users/trash'
Response Response Example
{
    "data": [
        {
            "id": "533290d0-5ad9-42c1-aaf2-22ecbaabed70",
            "email": "elgafarma@gmail.com",
            "role": "admin",
            "name": "Elga",
            "phone": "081234567890",
            "deletedAt": "2026-03-09T07:14:49.643Z"
        },
        {
            "id": "0a1fa9f6-d696-4017-80cb-ebc9681f3c7d",
            "email": "b@example.com",
            "role": "user",
            "name": "b",
            "phone": null,
            "deletedAt": "2026-02-27T11:44:56.510Z"
        }
    ],
    "meta": {
        "totalItems": 2,
        "itemCount": 2,
        "itemsPerPage": 10,
        "totalPages": 1,
        "currentPage": 1
    }
}
Modified at 2026-02-24 09:20:16
Previous
hard delete users (admin)
Next
trash by id (admin)
Built with