---
updatedAt: 2026-06-19T16:07:00.000Z
---

# Create Product Variants (Ebay)

Creates an Ebay Product Group using the given `inventoryItemGroupKey` and links previously created products as variants.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Ebay v1"
  },
  "servers": [
    {
      "url": "https://api.ecartapi.com/api/v1"
    }
  ],
  "paths": {
    "/products/{inventoryItemGroupKey}/variants": {
      "post": {
        "summary": "Create Product Variants (Ebay)",
        "description": "Creates an Ebay Product Group using the given `inventoryItemGroupKey` and links previously created products as variants.",
        "operationId": "create_products_variant_ebay_v1",
        "parameters": [
          {
            "name": "inventoryItemGroupKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Key that identifies the Ebay product group."
          }
        ],
        "responses": {
          "200": {
            "description": "Product group (variants) was successfully created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "variant": {
                      "type": "object",
                      "properties": {
                        "inventoryItemGroupKey": {
                          "type": "string",
                          "example": "testDocs"
                        },
                        "title": {
                          "type": "string"
                        },
                        "aspects": {
                          "type": "object"
                        },
                        "description": {
                          "type": "string"
                        },
                        "imageUrls": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "variesBy": {
                          "type": "object"
                        },
                        "variantSKUs": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "OK": {
                    "summary": "OK",
                    "value": {
                      "success": true,
                      "variant": {
                        "inventoryItemGroupKey": "testDocs",
                        "title": "PruebaDeTitulo",
                        "aspects": {
                          "pattern": [
                            "solid"
                          ]
                        },
                        "description": "Test for variants",
                        "imageUrls": [
                          "https://cloudinary-marketing-res.cloudinary.com/images/w_1000,c_scale/v1679921049/Image_URL_header/Image_URL_header.png"
                        ],
                        "variesBy": {
                          "specifications": [
                            {
                              "name": "Color",
                              "values": [
                                "Green",
                                "Blue",
                                "Red",
                                "Black",
                                "White"
                              ]
                            }
                          ],
                          "aspectsImageVariesBy": [
                            "Color"
                          ]
                        },
                        "variantSKUs": [
                          "testBatchD",
                          "testBatchD3",
                          "testBatchD2"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "variant": {
                    "type": "object",
                    "properties": {
                      "description": {
                        "type": "string",
                        "example": "Test for variants"
                      },
                      "aspects": {
                        "type": "object"
                      },
                      "imageUrls": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "title": {
                        "type": "string",
                        "example": "PruebaDeTitulo"
                      },
                      "variantSKUs": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "example": [
                          "testBatchD",
                          "testBatchD2",
                          "testBatchD3"
                        ]
                      },
                      "inventoryItemGroupKey": {
                        "type": "string",
                        "example": "testDocs"
                      },
                      "variesBy": {
                        "type": "object",
                        "properties": {
                          "aspectsImageVariesBy": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "example": [
                              "Color"
                            ]
                          },
                          "specifications": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "Color"
                                },
                                "values": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "New Example": {
                  "summary": "New Example",
                  "value": {
                    "variant": {
                      "description": "Test for variants",
                      "aspects": {
                        "pattern": [
                          "solid"
                        ]
                      },
                      "imageUrls": [
                        "https://cloudinary-marketing-res.cloudinary.com/images/w_1000,c_scale/v1679921049/Image_URL_header/Image_URL_header.png"
                      ],
                      "title": "PruebaDeTitulo",
                      "variantSKUs": [
                        "testBatchD",
                        "testBatchD2",
                        "testBatchD3"
                      ],
                      "inventoryItemGroupKey": "testDocs",
                      "variesBy": {
                        "aspectsImageVariesBy": [
                          "Color"
                        ],
                        "specifications": [
                          {
                            "name": "Color",
                            "values": [
                              "Green",
                              "Blue",
                              "Red",
                              "Black",
                              "White"
                            ]
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Authorization": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Used to authenticate API requests after completing the store authorization or integration process.\nThe accesstoken is generated once the e-commerce store grants access and must be included in every request header to validate the authorized connection."
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```