Base URL
Authentication
Most Product API endpoints require authentication using JWT bearer tokens. Admin-specific operations (create, update, delete) require theADMIN role.
Key features
Product management
Create and manage products with detailed information including:- Product name and description
- Brand information
- Category association
- Pricing with multi-currency support
- Status tracking (ACTIVE, INACTIVE, OUT_OF_STOCK, DISCONTINUED)
- Soft delete functionality
Filtering and search
Query products using multiple criteria:- Filter by category ID
- Filter by brand name
- Filter by product status
- Search by product name or brand
- Pagination support for large result sets
Product status values
Products can have one of the following statuses:ACTIVE- Product is available for purchaseINACTIVE- Product is temporarily unavailableOUT_OF_STOCK- Product is currently out of stockDISCONTINUED- Product is no longer available
Response format
All API responses follow a consistent structure:Success response
Error response
Common HTTP status codes
200 OK- Request successful201 Created- Product created successfully400 Bad Request- Invalid request parameters or validation errors401 Unauthorized- Missing or invalid authentication token403 Forbidden- Insufficient permissions (admin role required)404 Not Found- Product not found500 Internal Server Error- Server-side error
Next steps
View endpoint documentation
Explore detailed documentation for all Products API endpoints