Rupa Rawi - Revou Group Project
  1. cart
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
      • create product
      • update product
      • get vendor products
    • vendor apply
    • get vendor profile
    • update vendor profile
    • vendor stats
    • Vendor recent orders
  • order
    • cart
      • add item to cart
        POST
      • update item in cart
        PUT
      • delete item in cart
        DELETE
      • get cart
        GET
    • update order status
      PUT
    • get order
      GET
    • get all orders
      GET
    • pre-checkout calculation
      POST
    • order checkout
      POST
  • 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. cart

update item in cart

Developing
PUT
order/cart/item/<int:product_id>
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'order/cart/item/<int:product_id>' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "product_id" : 1,
    "quantity" : 100
}'
Response Response Example
{
  "cart_item": {
    "product_id": 1,
    "quantity": 100
  },
  "message": "Cart item updated successfully",
  "success": true
}

Request

Header Params
Authorization
string 
required
Example:
Bearer
Body Params application/json
product_id
integer 
required
quantity
integer 
required
Examples

Responses

🟢200Success
application/json
Body
cart_item
object 
required
product_id
integer 
required
quantity
integer 
required
message
string 
required
success
boolean 
required
Modified at 2025-05-01 09:05:28
Previous
add item to cart
Next
delete item in cart
Built with