Sold Product

Sold products are ProductVariants that have been sold to Badge holder. You must have the merch ConventionPrivilege to access this. Sold Products are accessed via /api/soldproduct.

Properties

See "Object Properties" in Introduction for basic shared properties.

Complete details in SoldProductProperties.

Related Objects

See "Related Objects" in Introduction for how to use them.

badge

The Badge that purchased this sold product.

convention

The Convention this sold product belongs to.

productvariant

The ProductVariant this sold product belongs to.

Includes

See "Includes" in Introduction for how to use them.

longname

A very descriptive name for this sold product. It pulls data from several objects, which is why it is not included by default.

Services

The services used to fetch and manipulate sold products.

Create Sold Product

You almost certainly want to add it to a ConventionCart instead of creating one. Or if you want to administratively create one, then use that method.

 POST /api/soldproduct
Required Params
convention_id
productvariant_id
badge_id

Returns the same as a normal read.

Administratively Create Sold Product

You almost certainly want to add it to a ConventionCart instead of creating one. Or if you want to administratively create one, then use that method.

 POST /api/soldproduct/verified
Required Params

The same as the Create Sold Product service.

Returns the same as a normal read.

Read Sold Product

 GET /api/soldproduct/xxx

Returns:

 {
   "id" : "xxx",
   "name" : "The Captain is Dead",
   ...
 }

Update Sold Product

 PUT /api/soldproduct/xxx

Returns the same as a normal read.

Delete Sold Product

 DELETE /api/soldproduct/xxx
Optional params
cashdrawer_id

You need to specify this to refund if purchased with cash in the point of sale system.

Returns:

 {
   "success" : 1
 }

Mark Picked Up

 PUT /api/soldproduct/xxx/pick-up

Returns the same as a normal read.

Unmark Picked Up

 PUT /api/soldproduct/xxx/reverse-pick-up

Returns the same as a normal read.