For AI agents: markdown of this page — /docs-content-en/entities/catalog-prices/delete.md documentation index — /llms.txt
Delete a price
DELETE /v1/catalog-prices/:id
Deletes a price by identifier. A deleted price cannot be restored via the API — create a new one if needed.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id (path) |
number | yes | Price identifier |
Examples
curl — personal key
curl -X DELETE "https://vibecode.bitrix24.com/v1/catalog-prices/861" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl -X DELETE "https://vibecode.bitrix24.com/v1/catalog-prices/861" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/catalog-prices/861', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
})
if (res.status === 204) {
console.log('Price deleted')
}
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/catalog-prices/861', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
if (res.status === 204) {
console.log('Price deleted')
}
Response
On successful deletion the HTTP status 204 No Content is returned with an empty body — success is checked by the status.
Response example
HTTP/1.1 204 No Content
Error response example
404 — a price with the given id does not exist:
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "price does not exist."
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| 404 | ENTITY_NOT_FOUND |
A price with the given id does not exist (price does not exist.) — including one already deleted |
| 403 | SCOPE_DENIED |
The key lacks the catalog scope |
| 401 | TOKEN_MISSING |
The API key has no configured tokens |
The full list of common API errors — Errors.