Rupa Rawi - Revou Group Project
  1. product
Rupa Rawi - Revou Group Project
  • auth
    • register user
      POST
    • login
      POST
    • refresh token
      POST
  • user
    • address
      • create address
      • get all address
      • update address
      • delete address
    • payment method
      • get all payment methods
      • delete payment method
      • update payment method
      • create payment method
    • update own profile
      PUT
    • get own profile
      GET
    • get public profile
      GET
  • product
    • category
      • get categories tree
      • get categories detail
    • wishlist
      • add item to wishlist
      • remove item to wishlist
      • get wishlist
    • promotions
      • get promotion detail (public)
      • get active promotions (public)
    • get product details (public)
      GET
    • get product list (public)
      GET
    • get public vendor products
      GET
  • admin
    • category
      • create category
      • update category
      • soft delete category
      • create subcategory
    • vendor management
      • get all vendors
      • vendor application review
    • promotions
      • get all promotions
      • create promotion
      • update promotion
    • get admin logs
      GET
  • vendor
    • product
      • soft delete product
        DELETE
      • create product
        POST
      • update product
        PUT
      • get vendor products
        GET
    • vendor apply
      POST
    • get vendor profile
      GET
    • update vendor profile
      PUT
    • vendor stats
      GET
    • Vendor recent orders
      GET
  • order
    • cart
      • add item to cart
      • update item in cart
      • delete item in cart
      • get cart
    • update order status
    • get order
    • get all orders
    • pre-checkout calculation
    • order checkout
  • article
    • delete article
    • create article
    • get article
    • get article detail
    • update article
  • product review
    • create review product
    • get product reviews by product id
    • get product review detail
    • update product review detail
    • delete product review
  • testimony
    • create testimonial
    • update testimonial
    • get testimonial
    • delete testimonial
  1. product

create product

Developing
POST
products
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'products' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc0NjEwNDM3NCwianRpIjoiMWMxYzE3MjctYzY1My00ZDU5LWExYWEtYzg3ZTc2YWY1OWYxIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IjE3IiwibmJmIjoxNzQ2MTA0Mzc0LCJjc3JmIjoiNjIzZmRkZjktYTRlOS00MDljLWIzMDctMDNjNTNhMWY4N2VhIiwidXNlcm5hbWUiOiJlY29fc2VsbGVyMTAiLCJlbWFpbCI6InNlbGxlcjEwQGV4YW1wbGUuY29tIn0.oLWt7uRKMqTufvWnPA3FrXEUFswzsVl9kBKOjQO7qDI' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "Cheap item",
  "description": "Handmade from me",
  "price": 5.00,
  "tags": ["cheap", "handmade"],
  "sustainability_attributes": ["organic", "carbon-neutral"],
  "stock_quantity": 100,
  "min_order_quantity": 1,
  "primary_image_url" : "https://example.com/primary-image.jpg",
  "images" : ["https://example.com/image.jpg", "https://example.com/image2.jpg"]
}'
Response Response Example
{
  "message": "Product created successfully",
  "product": {
    "id": 8,
    "name": "Cheap item",
    "vendor_id": 17
  },
  "success": true
}

Request

Header Params
Authorization
string 
required
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc0NjEwNDM3NCwianRpIjoiMWMxYzE3MjctYzY1My00ZDU5LWExYWEtYzg3ZTc2YWY1OWYxIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IjE3IiwibmJmIjoxNzQ2MTA0Mzc0LCJjc3JmIjoiNjIzZmRkZjktYTRlOS00MDljLWIzMDctMDNjNTNhMWY4N2VhIiwidXNlcm5hbWUiOiJlY29fc2VsbGVyMTAiLCJlbWFpbCI6InNlbGxlcjEwQGV4YW1wbGUuY29tIn0.oLWt7uRKMqTufvWnPA3FrXEUFswzsVl9kBKOjQO7qDI
Body Params application/json
name
string 
required
description
string 
required
price
integer 
required
tags
array[string]
required
sustainability_attributes
array[string]
required
stock_quantity
integer 
required
min_order_quantity
integer 
required
primary_image_url
string 
required
images
array[string]
required
Examples

Responses

🟢201Success
application/json
Body
message
string 
required
product
object 
required
id
integer 
required
name
string 
required
vendor_id
integer 
required
success
boolean 
required
Modified at 2025-05-01 14:07:23
Previous
soft delete product
Next
update product
Built with