variant_flattener_endpoint_v1_enrich_variant_flattener_post
Generate all possible SKU combinations from a base product and variant options. Flatten multiple variant attributes into a complete product list for use in E-commerce and ERP systems.
Instructions
Generates all possible combinations (Cartesian product) from a base product and lists of variant options. Useful for E-commerce platforms (Shopify, WooCommerce) and ERPs.
Cost: 2 credits per request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variants | Yes | Map of variant names to option lists. USE THIS TOOL to generate all possible SKU combinations. | |
| sku_format | No | Format string for SKU generation. | {sku_prefix}-{values} |
| base_product | Yes | Base product data common to all variants. |