Delete Product
This operation allows you to delete an existing product from the catalog.
It follows REST principles and aligns with the OData v4.01 standard.
[DELETE] Product Endpoint
https://api2.saleslayer.com/rest/Catalog/Products({productId})Making a request
- Use the HTTP method: DELETE.
- Include the API key in the request headers for authentication.
- It does not require a body (request body).
- The productId parameter is required and indicates the product you want to delete.
Request example:
DELETE /rest/Catalog/Products(189)
Response
204 No content
The product was successfully deleted. No additional content is returned.
400 Bad Request
Common errors include:
- The provided ID is in an incorrect format (must be numeric).
- Required parameters are missing or invalid.
"The prod_id is invalid or not found"
401 Unauthorized
Missing or invalid API key.
403 Forbidden
The user does not have permission to perform this operation.
404 Not Found
The product specified by productId does not exist or its status is 'X' (already deleted).
412 Precondition Failed
System is not in a valid state to perform the operation.
500 Internal Server Error
Unexpected system failure
Limitations and considerations
- Only one product can be deleted per request.
- When a product is deleted, all related products (variants) are automatically marked as deleted.
- Deletion is not supported in environments with multi-table attributes.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article