Removes the current projection of the Product. The staged projection is unaffected. Unpublished Products only appear in query/search results with staged=false. Produces the ProductUnpublished Message.

Unpublished Products cannot be added to a Cart. However, if a Cart contains Line Items for Products that were added before the Product was unpublished, the Cart is unaffected and can still be used to create an Order. To prevent this, in addition to unpublishing the Product you should remove the Prices from the Product using [Remove Price](ctp:api:type:ProductRemovePriceAction) for Embedded Prices or [Delete StandalonePrice](/projects/standalone-prices#delete-standaloneprice) for Standalone Prices.
interface ProductUnpublishAction {
    action: "unpublish";
}

Properties

Properties

action: "unpublish"

Generated using TypeDoc