Overview
The Products API allows you to manage your product catalog, including simple products and products with variants. The system automatically generates SKUs and EAN-13 barcodes when not provided.Auto-Generation Features
- SKU Generation: Automatically generates SKUs in format
PROD-00001,PROD-00002, etc. - EAN-13 Barcode: Generates valid EAN-13 barcodes using the GS1 prefix
200(reserved for internal use)
Create Product
Creates a new product in the catalog. SKU and barcode are auto-generated if not provided.Request Body
Product name
Internal SKU code. If not provided, auto-generates in format
PROD-00001Product description
Net price (before tax)
Unit of measure (e.g., “unidad”, “kg”, “lt”)
Barcode (EAN-13/UPC). Auto-generated if not provided
Whether to track inventory for this product
Current stock level
Minimum stock threshold for reorder alerts
Brand ID to associate with this product
Tax ID to apply to this product
Parent product ID (for variants)
Response
Unique product identifier
Internal SKU code
Product name
Product description
Net price (before tax)
Gross price (including tax)
Unit cost for margin calculation
Product barcode
Whether inventory is tracked
Current stock level
Minimum stock threshold
Whether the product is active
Associated brand information
Associated tax information
Child product variants
Example
Create Product with Variants
Creates a parent product and its variants in a single request. Useful for products with multiple sizes, colors, or configurations.Request Body
Parent product name
Parent SKU. Auto-generated if not provided
Parent product description
Base price for the parent (typically 0 for variant-only products)
Whether variants should track inventory
Minimum stock threshold for variants
Brand ID for the product family
Tax ID to apply to all variants
Array of variant objects
Variant name (e.g., “Talla 42”, “Rojo XL”)
Variant price
Variant SKU. Auto-generated as
{parent_sku}-V01, {parent_sku}-V02, etc.Variant barcode. Auto-generated if not provided
Current stock for this variant
Example
List Products
Returns all active (non-deleted) products, ordered by most recent first.Response
Returns an array of product objects with the same structure as the Create Product response.Example
Get Product by SKU
Retrieves a product by its internal SKU code.Path Parameters
The product’s internal SKU code (e.g., “PROD-00001”)
Response
Returns a single product object.Example
Update Product
Updates an existing product. All fields are optional (partial update).Path Parameters
The product ID to update
Request Body
All fields from the Create Product endpoint are available as optional parameters.Internal SKU code (must be unique)
Product name
Net price
Unit cost
Current stock level
Active status
Example
Delete Product
Performs a soft delete of the product and all its variants. The product is marked as deleted and deactivated but not removed from the database.Path Parameters
The product ID to delete
Response
Returns204 No Content on success.
Example
Notes
- SKU Auto-Generation: The system uses the highest existing numeric suffix and increments it. If
PROD-00005exists, the next auto-generated SKU will bePROD-00006. - EAN-13 Format: Auto-generated barcodes use format
200{product_id:09d}{check_digit}with a valid check digit calculation. - Variants: Parent products with variants typically don’t control stock directly; stock is tracked at the variant level.
- Soft Deletes: Deleted products remain in the database with
is_deleted=trueandis_active=false.