Rupa Rawi - Revou Group Project
  1. order
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
      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
      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. order

update order status

Developing
PUT
/order/250430EA4615A55DB2
class OrderStatus(Enum):
PENDING = "pending"
PROCESSING = "processing"
SHIPPED = "shipped"
DELIVERED = "delivered"
CANCELLED = "cancelled"
RETURNED = "returned"
COMPLETED = "completed"
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/order/250430EA4615A55DB2' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc0NjA0OTMzOCwianRpIjoiMzM5ZTMxODAtZmEzMi00OGRlLWFmMjktMDMzNmMxZTdlNGJkIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IjE3IiwibmJmIjoxNzQ2MDQ5MzM4LCJjc3JmIjoiYjI2NjE4NzQtZmQzMS00YzEzLWIzOTItYTgxMmI1YTU0NjE5IiwidXNlcm5hbWUiOiJlY29fc2VsbGVyMTAiLCJlbWFpbCI6InNlbGxlcjEwQGV4YW1wbGUuY29tIn0.0burqwSTKKRCBrupvnS9bf6ac33oZo1qAKwOriIMR9s' \
--header 'Content-Type: application/json' \
--data-raw '{
   "status": "processing",
    "notes": "end my suffering pls"
}'
Response Response Example
{
  "message": "Order status updated successfully",
  "order": {
    "created_at": "Wed, 30 Apr 2025 21:51:33 GMT",
    "id": 14,
    "items": "[1]",
    "order_number": "250430EA4615A55DB2",
    "status": "processing",
    "status_history": "['pending', 'processing', 'processing', 'processing']",
    "total_amount": 50.0
  },
  "success": true
}

Request

Header Params
Authorization
string 
required
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc0NjA0OTMzOCwianRpIjoiMzM5ZTMxODAtZmEzMi00OGRlLWFmMjktMDMzNmMxZTdlNGJkIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IjE3IiwibmJmIjoxNzQ2MDQ5MzM4LCJjc3JmIjoiYjI2NjE4NzQtZmQzMS00YzEzLWIzOTItYTgxMmI1YTU0NjE5IiwidXNlcm5hbWUiOiJlY29fc2VsbGVyMTAiLCJlbWFpbCI6InNlbGxlcjEwQGV4YW1wbGUuY29tIn0.0burqwSTKKRCBrupvnS9bf6ac33oZo1qAKwOriIMR9s
Body Params application/json
status
string 
required
notes
string 
optional
Examples

Responses

🟢200Success
application/json
Body
message
string 
required
order
object 
required
created_at
string 
required
id
integer 
required
items
string 
required
order_number
string 
required
status
string 
required
status_history
string 
required
total_amount
integer 
required
success
boolean 
required
Modified at 2025-05-02 12:28:36
Previous
get cart
Next
get order
Built with