Delete an item
Permanently delete a catalogue item.
DELETE
{BASE_URL}/catalog/items/{externalId}Deletes the item permanently, together with its link to a bookable. Requires the UPDATE scope.
Path parameters
externalIdstringrequired- Your ID for the item, URL-encoded as a path segment.
The response has no data.
Status codes#
| Status | Code | Meaning |
|---|---|---|
200 | — | The item was deleted. |
404 | open_network_item_not_found | You have no item with that externalId — including one you already deleted. |
Side effects#
Sends catalog.item.deleted, carrying the item as it was, to your webhook endpoints of the key's
environment.
cURL
curl -X DELETE "$LOCALOY_BASE_URL/catalog/items/sku-4471" \
-H "Authorization: Bearer $LOCALOY_API_KEY"Response · 200
{ "success": true, "message": "Catalog item deleted" }