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 Req. Description
id (path) number yes Price identifier

Examples

curl — personal key

Terminal
curl -X DELETE "https://vibecode.bitrix24.com/v1/catalog-prices/5104" \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth app

Terminal
curl -X DELETE "https://vibecode.bitrix24.com/v1/catalog-prices/5104" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"

JavaScript — personal key

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/catalog-prices/5104', {
  method: 'DELETE',
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
  },
})

if (res.status === 204) {
  console.log('Price deleted')
}

JavaScript — OAuth app

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/catalog-prices/5104', {
  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
HTTP/1.1 204 No Content

Error response example

422 — a price with the given id does not exist:

JSON
{
  "success": false,
  "error": {
    "code": "BITRIX_ERROR",
    "message": "price does not exist."
  }
}

Errors

HTTP Code Description
422 BITRIX_ERROR A price with the given id does not exist (price does not exist.)
403 SCOPE_DENIED The key lacks the catalog scope
401 TOKEN_MISSING X-Api-Key was not provided

The full list of common API errors — Errors.

See also