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

order checkout

Developing
POST
order/checkout

Request

Header Params

Body Params application/json

Examples

Responses

🟢201Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'order/checkout' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc0NjU0MDQ3MCwianRpIjoiMjgwZjdkY2QtMWRlMS00M2M4LTgwZDktYTI4NWNiNTQ2YzgyIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IjE3IiwibmJmIjoxNzQ2NTQwNDcwLCJjc3JmIjoiN2Y1YWMxZjYtYzAzNS00MjZhLTllNWYtMGE1YzA3ODEwYjAwIiwidXNlcm5hbWUiOiJlY29fc2VsbGVyMTAiLCJlbWFpbCI6InNlbGxlcjEwQGV4YW1wbGUuY29tIn0.IWfaLzWFNaV-hqCpOHVnSxenOEsNb6_ZFTZskQvfxiU' \
--header 'Content-Type: application/json' \
--data-raw '{
    "shipping_address_id": 2,
    "billing_address_id": 2,
    "payment_method_id": 2,
    "notes": "end my suffering",
    "promotion_code": "HELPMEPLS3"
}'
Response Response Example
{
  "applied_promotion": {
    "discount": "1.00",
    "eligible_items_ids": [
      2
    ],
    "title": "Summer Sale"
  },
  "message": "Order checked out successfully",
  "order": {
    "created_at": "Tue, 06 May 2025 14:25:40 GMT",
    "id": 53,
    "items": "[{'name': 'Cheap item', 'image_url': None}]",
    "order_number": "250506B8BD79722AA0",
    "status": "pending",
    "status_history": "['pending']",
    "total_amount": 4.0
  },
  "success": true
}
Modified at 2025-05-06 14:29:16
Previous
pre-checkout calculation
Next
delete article
Built with