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:
- 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. - Get the variants with
GET /products/{product_id}/variants. You need their ids for the next steps. - Set each variant's
pricewithPATCH /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. - Set each variant's inventory with
POST /inventory/set. - Put the product on sale with
POST /merchandising/products/{product_id}. Settransaction_typetobuy_it_noworauction, and useshowsto add the product to shows. A buy-it-now product is sold on your profile shop unlessreserve_for_liveis 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.