API Documentation

Authentication

All requests must include an Authorization: Bearer {token} header.

Available Endpoints

Example Request


POST /api/v1/ecommerce/orders HTTP/1.1
Authorization: Bearer {token}
Content-Type: application/json

{
  "customerId": 5,
  "items": [
    { "productId": 12, "quantity": 2, "unitPrice": 199.99, "discountPercentage": 0 }
  ]
}
  

Example Response


HTTP/1.1 201 Created
Content-Type: application/json

{ "orderId": 27 }
  

Demo User Credentials

Username: ecom_client

Password: P@ssw0rd!