Products

​

Create and manage products.

A product holds what buyers see: title, description, images, category, and the options it comes in, such as Color or Size. Each variant is one purchasable version of the product, such as Red / Small, and has its own price, image, and inventory. A product with no options has exactly one variant.

Creating a product does not put it on sale. To get a new product on sale:

  1. Create the product with POST /products. Whatnot creates its variants for you: one for every combination of option values, or a single variant if the product has no options. They start with no price, image, or inventory.
  2. Get the variants with GET /products/{product_id}/variants. You need their ids for the next steps.
  3. Set each variant's price with PATCH /products/{product_id}/variants. A variant has one price. It is the buy-it-now price, or the auction start price if you sell the product at auction. You can set the variant's image (media) in the same call.
  4. Set each variant's inventory with POST /inventory/set.
  5. Put the product on sale with POST /merchandising/products/{product_id}. Set transaction_type to buy_it_now or auction, and use shows to add the product to shows. A buy-it-now product is sold on your profile shop unless reserve_for_live is true. Auctions are always reserved for live. Every variant needs a price and at least one needs inventory before this call succeeds.

If you add options or option values later, the new variants also start with no price, image, or inventory. Set them the same way.