Create and publish a product
Create and publish a product
Publish one Copenhagen Lamp with a black variant and verify that a buyer can purchase it in your configured store. The sequence matters: creating content, pricing it, and publishing it are separate operations.
Before you begin
Complete Configure a store and retain its IDs. Use an Admin credential with the required catalog permissions. If you created the lamp in the Admin quickstart, use that product ID and skip step 1.
1. Create the product
Save the returned product ID only after checking payload errors. After an uncertain response, inspect the catalog before repeating creation.
2. Create its sellable variant
Keep the variant ID and SKU. The cart will use the variant ID; inventory setup will use the SKU. For several selectable finishes, use attributes instead of relying only on variant labels.
3. Add price and stock
Follow Configure prices, inventory, and tax with this variant ID and SKU. It supplies complete inputs for the EUR 129.00 example price and ten tracked units. Return here once those writes succeed.
4. Activate the product
The variant created above is already active. An existing draft variant needs its own status update before it can be sold.
5. Publish both levels
Replace each timestamp placeholder with an ISO 8601 UTC timestamp, such as the intended launch time. Use a time that has already arrived when verifying immediate availability. Publishing the product does not implicitly publish its variants.
Verify through Storefront
Run the product read in Your first order using the store, price channel, EUR, and DK context from setup.
Confirm SKU LAMP-BLACK, a usable price, and availableForPurchase: true.
If a condition fails, use Catalog visibility to diagnose that layer.