Create Catalog Variant

POST {{baseUrl}}/api/catalog-variants/

Create a new variant for a related catalog item.

Rate limits:
Burst: 75/s
Steady: 700/m

Scopes: Catalogs Write

Request Body

{"data"=>{"type"=>"catalog-variant", "attributes"=>{"external_id"=>"reprehenderit", "title"=>"Excepteur sint nisi enim", "description"=>"ut ex nulla", "sku"=>"et dolor qui elit", "inventory_policy"=>2, "inventory_quantity"=>36410332.12764934, "price"=>98860602.48137483, "url"=>"adipisicing do officia sed", "catalog_type"=>"dolore quis incididunt Ut", "integration_type"=>"$custom", "image_full_url"=>"do aliqua", "image_thumbnail_url"=>"adipisicing Excepteur labore reprehenderit", "images"=>["elit com", "est"], "published"=>false}, "relationships"=>{"items"=>{"data"=>[{"type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}}}}

HEADERS

KeyDatatypeRequiredDescription
revisionstring(Required) API endpoint revision (format: YYYY-MM-DD[.suffix])
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;data&quot;:{&quot;type&quot;:&quot;catalog-variant&quot;,&quot;id&quot;:&quot;culpa ullamco eiusmod est ex&quot;,&quot;attributes&quot;:{&quot;external_id&quot;:&quot;in magna cillum&quot;,&quot;title&quot;:&quot;velit id dolor dolore&quot;,&quot;description&quot;:&quot;nisi&quot;,&quot;sku&quot;:&quot;magna&quot;,&quot;inventory_policy&quot;:2,&quot;inventory_quantity&quot;:98956036.04696697,&quot;price&quot;:-27137460.77964893,&quot;url&quot;:&quot;incididunt officia occaecat sunt&quot;,&quot;image_full_url&quot;:&quot;est&quot;,&quot;image_thumbnail_url&quot;:&quot;laborum irure adipisicing eu nisi&quot;,&quot;images&quot;:[&quot;sunt aute ullamco irure&quot;,&quot;ut&quot;],&quot;custom_metadata&quot;:{},&quot;published&quot;:false,&quot;created&quot;:&quot;1954-09-17T07:44:57.383Z&quot;,&quot;updated&quot;:&quot;1947-05-29T02:01:06.276Z&quot;},&quot;links&quot;:{&quot;self&quot;:&quot;https://DwPLnDp.kruN7Elql,CgDbrfQewWKDALEup01zlhGE7.dgz2n6ZOhBgAZng,GoVNR&quot;}}}