Delete a Product Option Exception

Overview

This endpoint allows you to delete a product option exception from your system. Product option exceptions define special rules for option combinations that are not available for purchase.

DELETE /api/exceptions/{exception_id}

Request Format

Send a DELETE request to the exceptions endpoint with the exception ID in the URL path and the product ID as a query parameter:

DELETE /api/exceptions/10?product_id=12
Note: The product ID is required as a query parameter to verify that you have permission to delete this exception.

This request will delete the option exception with ID 10 for the product with ID 12.

Response Format

Status Code Description
204 No Content The exception has been deleted successfully.
400 Bad Request The exception couldn't be deleted (e.g., insufficient permissions).
404 Not Found The specified exception doesn't exist.
Important: Deleting an option exception will make that option combination available for purchase if no other exceptions apply to it. Make sure this is your intended behavior.