This request will delete the specified product.
If the product is a reseller product, it can only be deleted if no customers are using it. If the product is a master product, then it can only be deleted if no reseller products inherits from it.
| URL | https://api.telecomx.dk/product/PRODUCT_ID | |
|---|---|---|
| Method | DELETE | |
| Access level | RESELLER if product is a reseller or customer product. RESELLER_ADMIN with FINANCE feature or ADMIN for any product, reseller or master. |
|
| Param | PRODUCT_ID | Id of the product (24-char hex string) |
DELETE https://api.telecomx.dk/product/123457890ABCDEF12345678
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
{ success: true }
| Error code | Message | Description |
|---|---|---|
| 400 | bad_request | Id not found in request URI |
| 404 | product | Product not found |
| 403 | access_denied | Insufficient access level |
| 409 | _id | Product is used as a config product for '123456780ABCDEF12345678' and cannot be deleted |
| 409 | _id | Product is inherited by X reseller products and cannot be deleted |
| 500 | internal_error | <Unspecified> |