1. PROFILE
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
      GET
    • add address
      POST
    • update profile
      PATCH
    • update default address by id
      PATCH
    • hard delete address
      DELETE
  • 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
  • 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. PROFILE

user profile

Developing
GET
/users/profile

Request

None

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/users/profile'
Response Response Example
{
    "id": "533290d0-5ad9-42c1-aaf2-22ecbaabed70",
    "email": "elgafarma@gmail.com",
    "role": "user",
    "name": "Elga",
    "phone": "081234567890",
    "addresses": [
        {
            "id": "915edeef-88dd-4aa5-a690-21b9bde4a97e",
            "recipient_name": "Elga (Rumah)",
            "phone": "081234567890",
            "full_address": "Jl. Mawar No. 15, RT 01 RW 02",
            "city": "Jakarta",
            "postal_code": "76543",
            "is_default": true,
            "createdAt": "2026-03-09T06:59:13.397Z",
            "updatedAt": "2026-03-09T06:59:13.397Z"
        },
        {
            "id": "f2008776-476a-4038-87a0-9683d7ea4316",
            "recipient_name": "Elga (Kantor)",
            "phone": "081234567890",
            "full_address": "Jl. Tulip No. 15, RT 01 RW 02",
            "city": "Jakarta",
            "postal_code": "76543",
            "is_default": false,
            "createdAt": "2026-03-09T07:02:12.660Z",
            "updatedAt": "2026-03-09T07:02:12.660Z"
        }
    ],
    "createdAt": "2026-03-08T01:38:55.070Z"
}
Modified at 2026-02-24 00:19:35
Previous
orders by id (admin)
Next
add address
Built with