Skip to main content

Unpublish Product

Unpublish a product in your store.

This call does not require an active Easytools plan — a live product can always be taken down. See Active plan required.

Request

POST /products/{id}/unpublish

Path Parameters

ParameterTypeRequiredDescription
idstringYesProduct UUID

Example Request

curl -X POST "https://cart.easy.tools/api/v1/products/0632bef5-c308-42cd-9cba-89a7a4f722bb/unpublish" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"

Response

Success Response (200)

Returns a success message when the product is unpublished.

{
"message": "Product unpublished successfully"
}

Error Responses

Bad Request (400)

{
"message": "Invalid product ID"
}

Product Not Found (404)

{
"message": "Product with ID 0632bef5-c308-42cd-9cba-89a7a4f722bb not found"
}