Skip to main content

Delete Product

DELETE 

/api/products/:id

Delete a product by ID. Deletion fails if the product (or, for a matrix parent, any of its variations) is still referenced by a RESTRICT foreign key: sales order lines, bundle sales order lines, purchase order lines, inventory movements, FIFO layers, inventory adjustments, assembly lines, warehouse transfer lines, return receipt lines, RMA lines, sales credit lines, inbound shipment lines, blemished products, or subscription editions.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Returns 400 Bad Request with reason details if the product is in use.

Request

Responses

OK

Response Headers
    Content-Type