Retiring a product
Learn how to retire a product programmatically.
Last updated
Was this helpful?
Learn how to retire a product programmatically.
Last updated
Was this helpful?
You can retire a base or individual product when you no longer need it. However, you cannot delete the product. You can only delete product variations associated with a base product.
You can find a retired product by sending a request or searching for the retired product in Global Commerce. The shoppers visiting your store cannot see or purchase the retired product.
Here are a few notes regarding retired products:
The retired product remains in your catalog, where you can get the product's attributes. You can use the attributes in the response to create and deploy a new product with similar details. If you edit a retired product, it goes into a design state where you can apply the change and then deploy the updated product.
Global Commerce does not maintain the stock status for a retired product, so it does not display its current inventory number.
The following request retires the specified product. To retire a specific product, you must provide either a or .
Duplicate ERIDs are not allowed. To prevent duplicate ERIDs, when configuring company settings in Global Commerce to ensure that you won't accidentally provide an ERID that would result in duplicate products in the response if you searched for a product by ERID.
The following example retires a specific product with a productId
.
An ERID request requires the x-erid-as-pid=true
header.
When you retire an individual or base product, that product will be marked as retired in Global Commerce.
Sign in to Global Commerce.
Select Catalog, select Products, and then click Manage Products. The Products page appears.
Click the Search tab, select Product from the Search In drop-down list, and choose ID from the Search By list. Enter the product identifier or ERID in the Search For field, then click Search.
Click the link for the product under the Internal Product Name column. The Edit Product page appears, and (Retired) will appear after the product name at the top of the page.