Colors define the second axis of product variants alongside sizes. Each color record includes a hex code that can be used to render a color swatch in any frontend. Retrieve all available colors from this endpoint before building theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/MateoNavarroMN/Balsamoa-Backend/llms.txt
Use this file to discover all available pages before exploring further.
variantes array when creating or updating a product.
Request
| Property | Value |
|---|---|
| Method | GET |
| Path | /api/v1/admin/colores |
Example
Response
200 OK — An array of color objects.Response Fields
The unique numeric identifier for this color. Pass this value as
color_id inside each object of the variantes array when creating or updating a product.The display name of the color (e.g.,
"Blanco", "Gris Oscuro").A 7-character CSS hex color code (e.g.,
"#F5F5F5"). Use this to render color swatches in the admin panel or storefront. May be null if not set.Error Cases
| Status | Cause | Response body |
|---|---|---|
404 | The colores table contains no rows | {"mensaje": "Registros no encontrados"} |