Skip to main content

Check Product Deletability

POST 

/api/products/is-deletable

Check whether one or more products can be safely deleted. Returns deletability status with reasons and usage record samples for each product.

Authentication: Requires Bearer token.

Fields:

  • ids (required): array of product IDs (integers, must exist in DB)

For each product, returns:

  • deletable: true if safe to delete
  • reason: human-readable reason if not deletable
  • usages: array of blocking usage types with labels, counts, and sample records

Request

Responses

Successful response