Variants Create
tiendanube_variants_createCreates a product variant in Tiendanube/Nuvemshop with SKU, price, stock, attributes, dimensions, and image data so product options can be sold and tracked.
Instructions
Create a variant (max 1000 per product). HTTP: POST /products/{product_id}/variants Required scope: write_products API version: 2025-03
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mpn | No | Manufacturer part number | |
| sku | No | SKU | |
| cost | No | Unit cost (decimal string) | |
| depth | No | Depth in cm | |
| price | No | Price as decimal string, e.g. '1999.90' | |
| stock | No | Stock quantity; null = infinite | |
| width | No | Width in cm | |
| gender | No | Gender (Google Shopping) | |
| height | No | Height in cm | |
| values | No | One i18n value per product attribute, e.g. [{"es":"M"},{"es":"Rojo"}] | |
| weight | No | Weight in kg | |
| barcode | No | Barcode (EAN/UPC) | |
| image_id | No | ID of a product image to associate | |
| age_group | No | Age group (Google Shopping) | |
| product_id | Yes | Product ID | |
| inventory_levels | No | Per-location stock for multi-location stores | |
| stock_management | No | true to track stock; false = infinite stock | |
| additional_fields | No | Extra raw API body fields not covered above; merged into the request body | |
| promotional_price | No | Promotional price (decimal string) |