BigblueDevelopers

Delete product

Remove a product from your catalogue.

POST/bigblue.storeapi.v1.PublicAPI/DeleteProduct

Deletes a product and returns an empty object.

Only delete products created by mistake. A product with stock, an open inbound shipment or orders can't be deleted. Stop selling it instead.

If the product is part of a bundle, remove it from the bundle first.

Request body

idstringrequired
Bigblue product ID.
Pattern^[A-Za-z0-9]{4}-[A-Za-z0-9]{6}-[A-Za-z0-9]{4}$

Responses

200The product was deleted.
{}
400The ID doesn't match the product ID pattern.
{
  "code": "invalid_argument",
  "msg": "id value does not match regex pattern `^[[:alnum:]]{4}-[[:alnum:]]{6}-[[:alnum:]]{4}$`",
  "meta": { "argument": "id" }
}
404No product with this ID exists.
{ "code": "not_found", "msg": "product not found" }
412The product can't be deleted, for example because it has stock.
{ "code": "failed_precondition", "msg": "product still has inventory" }
POST/bigblue.storeapi.v1.PublicAPI/DeleteProduct
Request
{ "id": "BGBL-ESPSRT-SMAL" }
200
{}