Variants
POST https://api.ecartapi.com/api/v2/products/{{productId}}/variants
Creates a Product Variant.
Important information.
* Product identifier is required.
Required Fields
* sku
* option_values
Limits
* 600 SKUs per product limit.
* 255 characters SKU length limit.
Variants need to be created one at a time using this endpoint.
More information about the ecommerce's resource.
Request Body
{"variant"=>{"price"=>"12.99", "weight"=>"1", "sku"=>"SKU_COLOR", "options"=>[{"id"=>"70", "valueId"=>"108"}, {"id"=>"10", "valueId"=>"109"}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |