Base URL
All API requests should be made to:HTTP Methods
The API supports standard HTTP methods:GET- Retrieve resourcesPOST- Create new resourcesPUT- Update existing resourcesDELETE- Delete resourcesOPTIONS- CORS preflight requests
Request Format
All POST, PUT, and DELETE requests must:- Use
Content-Type: application/jsonheader - Send data as JSON in the request body
- Use UTF-8 encoding
Response Format
All API responses return JSON with the following structure:Success Response
Error Response
Response Fields
Indicates whether the request was successful
Contains the requested data (for GET requests or successful CREATE operations)
Success message for POST, PUT, DELETE operations
Error message when success is false
The ID of the newly created resource (for POST requests)
CORS Support
The API supports Cross-Origin Resource Sharing (CORS) with the following headers:Caching
Some endpoints include cache-control headers:Common Error Messages
| Error Message | Description |
|---|---|
Datos inválidos | Invalid or malformed JSON in request body |
ID inválido | Invalid or missing ID parameter |
Método no permitido | HTTP method not supported for this endpoint |
Error del servidor: [details] | Server-side exception occurred |
Available Endpoints
Warehouses
Manage warehouse locations
Categories
Manage product categories
Subcategories
Manage product subcategories
Suppliers
Manage supplier information
Parameters
Manage system parameters and statuses
Data Ordering
All GET endpoints return data ordered byid DESC (newest first) unless otherwise specified.