For AI agents: markdown of this page — /docs-content-en/entities/addresses/delete.md documentation index — /llms.txt
Delete address
DELETE /v1/addresses/:typeId/:entityTypeId/:entityId
Deletes an address by the three key values: typeId, entityTypeId, entityId. A deleted address cannot be restored via the API — create a new one if needed.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
typeId (path) |
number | yes | Address type. Examples: 1 — registered, 8 — delivery, 9 — actual, 11 — beneficiary |
entityTypeId (path) |
number | yes | Owner type: 8 — requisite, 3 — contact, 4 — company, 1 — lead |
entityId (path) |
number | yes | ID of the address owner. For a requisite — the ID from GET /v1/requisites |
Examples
curl — personal key
curl -X DELETE "https://vibecode.bitrix24.com/v1/addresses/11/8/1" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth app
curl -X DELETE "https://vibecode.bitrix24.com/v1/addresses/11/8/1" \
-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/addresses/11/8/1', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
})
const { success, data } = await res.json()
if (success && data.deleted) {
console.log('Address deleted')
}
JavaScript — OAuth app
const res = await fetch('https://vibecode.bitrix24.com/v1/addresses/11/8/1', {
method: 'DELETE',
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success, data } = await res.json()
Response fields
| Field | Type | Description |
|---|---|---|
success |
boolean | Always true on success |
data |
object | Deletion confirmation with an echo of the key |
data.typeId |
number | Address type from the path |
data.entityTypeId |
number | Owner type from the path |
data.entityId |
number | Owner ID from the path |
data.deleted |
boolean | Always true on successful deletion |
Response example
{
"success": true,
"data": {
"typeId": 11,
"entityTypeId": 8,
"entityId": 1,
"deleted": true
}
}
Error response example
403 — no crm scope:
{
"success": false,
"error": {
"code": "SCOPE_DENIED",
"message": "This endpoint requires 'crm' scope"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| 400 | INVALID_COMPOSITE_KEY |
One or more of the path parameters typeId, entityTypeId, entityId is not a positive integer |
| 404 | NOT_FOUND |
An address with this composite key was not found |
| 422 | BITRIX_ERROR |
Bitrix24 rejected the deletion of an existing address |
| 403 | SCOPE_DENIED |
The key lacks the crm scope. This endpoint requires 'crm' scope |
| 401 | TOKEN_MISSING |
X-Api-Key is missing or the key has no configured tokens |
Full list of common API errors — Errors.
Known specifics
The response is 200 JSON, not 204. Deleting an address returns 200 OK with a JSON body where data.deleted equals true, not 204 No Content.
A company's or contact's address is stored on its requisite. For a company (4) and a contact (3), the address is attached to their requisite. A deletion by the company or contact composite key automatically removes the address from the matching requisite, so you can delete the address by the same key you created and read it with. For a requisite (8) and a lead (1), the key matches the storage location.
Address not found — 404. If no address exists for the composite key, the endpoint returns 404 NOT_FOUND and does not perform the deletion.