Delete product

What is it for?

{productId} in the URL → the number of the product you want to delete

Conditions

  • Requires authentication.
  • Validations:
    • ───────────────────────────────────────────────────────────
    • The product CANNOT be deleted if it is being used in orders or merchandise:
    • Error: PRODUCT_IN_USE (HTTP 409)
    • Message: "The product: {id} is in use and cannot be deleted."
    • Si el producto no existe:
    • Error: PRODUCT_NOT_FOUND (HTTP 404)
    • Message: "No product found with ID {id}."

Parameters

Fill in the fields in Query Params and/or Path Params as applicable.

Expected response

HTTP 204 → No content (eliminado correctamente)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

How to obtain it: use List products.

Responses
204

Product deleted successfully

400

Invalid ID or malformed request

404

Product not found

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json