Product variants are variations on a Product,
such as size or color.
You cannot add a product to your ConventionCart,
but you can add a product variant.
You must have the merch
ConventionPrivilege to access this.
Product Variants are accessed via /api/productvariant
.
See "Object Properties" in Introduction for basic shared properties.
Complete details in ProductVariantProperties. It also has these extra read-only properties:
The number of units still available for this variant.
Fields quantity_sold
is deprecated and replaced in use by taken_count
.
See "Related Objects" in Introduction for how to use them.
The Convention this product variant belongs to.
The Product this product variant belongs to.
See "Relationships" in Introduction for how to use them.
The services used to fetch and manipulate product variants.
Searching all product variants across conventions is no longer supported. To search on a single convention see "Relationships" in Convention.
POST /api/productvariant
Returns the same as a normal read.
GET /api/productvariant/xxx
Returns:
{ "id" : "xxx", "name" : "T-Shirt, Large", ... }
PUT /api/productvariant/xxx
Returns the same as a normal read.
DELETE /api/productvariant/xxx
Returns:
{ "success" : 1 }