Create product
POST/api/v2/products
Creates a new product with at least one variant. Business logic (FK resolution, supplier-price denormalisation, stock initialisation, default-variant linkage) runs in the legacy WAR via the internal commands gateway. Returns the full graph of the created product with all assigned IDs.
Request
Responses
- 201
- 400
- 401
- 403
- 500
Product created
Validation error ÔÇö the request body or a query parameter failed constraint validation. The response payload includes a errors array with field-level details.
Missing or invalid JWT (Bearer token).
Authenticated user is missing the CREAR_MODELOS permission
Unexpected server error. Includes legacy WAR failures that are not classified as 502 / 503 / 504.