Products are physical items that are for sale at a Convention.
You must have the merch
ConventionPrivilege to access this.
Products are accessed via /api/product
.
See "Object Properties" in Introduction for basic shared properties.
Complete details in ProductProperties.
See "Related Objects" in Introduction for how to use them.
The Convention this product belongs to.
A ConventionImage representing a view of the product.
See "Relationships" in Introduction for how to use them.
The list of SoldProducts of this product type that the user making this request has already purchased.
The list of ProductVariants that are for sale from this product.
The services used to fetch and manipulate products.
This will search across all conventions. To search on a single convention see "Relationships" in Convention.
GET /api/product
Searches a partial name.
Returns:
{ "paging" : {...}, "items" : [ { "id" : "xxx", "name" : "T-Shirt", ... }, ... ] }
POST /api/product
Returns the same as a normal read.
GET /api/product/xxx
Returns:
{ "id" : "xxx", "name" : "T-Shirt", ... }
PUT /api/product/xxx
Returns the same as a normal read.
DELETE /api/product/xxx
Returns:
{ "success" : 1 }
Gets any SoldProducts for the product. (These are grandchildren of the Product via its ProductVariants.)
GET /api/product/xxx/my-sold-products
Returns the list of SoldProducts.
Gets any Discounts still available to the product.
GET /api/product/xxx/available-discounts
Returns the list of Discounts.