For AI agents: markdown of this page — /docs-content-en/entities/recurring-deals/batch.md documentation index — /llms.txt
Batch operations
POST /v1/recurring-deals/batch
Use action create/update/delete with items or ids. Read-only keys refuse writes. Global /v1/batch also supports this entity.
Response fields
| Field | Type | Meaning |
|---|---|---|
success |
boolean | Success flag |
data |
object | Results under the generic contract |
Example
curl — personal key
curl -X POST "https://vibecode.bitrix24.com/v1/recurring-deals/batch" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"update","items":[{"id":11,"active":false}]}'
curl — OAuth application
curl -X POST "https://vibecode.bitrix24.com/v1/recurring-deals/batch" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{"action":"update","items":[{"id":11,"active":false}]}'
JavaScript — personal key
const response = await fetch('https://vibecode.bitrix24.com/v1/recurring-deals/batch', {
method: 'POST',
headers: { 'X-Api-Key': 'YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({"action":"update","items":[{"id":11,"active":false}]}),
})
const result = await response.json()
if (!result.success) throw new Error(result.error.message)
console.log(result.data)
JavaScript — OAuth application
const response = await fetch('https://vibecode.bitrix24.com/v1/recurring-deals/batch', {
method: 'POST',
headers: { 'X-Api-Key': 'YOUR_APP_KEY', 'Authorization': 'Bearer USER_SESSION_TOKEN', 'Content-Type': 'application/json' },
body: JSON.stringify({"action":"update","items":[{"id":11,"active":false}]}),
})
const result = await response.json()
if (!result.success) throw new Error(result.error.message)
console.log(result.data)
Errors
| HTTP | Code | Condition |
|---|---|---|
| 401 | MISSING_API_KEY |
API key missing |
| 403 | SCOPE_DENIED |
crm scope missing |
| 400 | INVALID_PARAMS |
Invalid ID, enum or value shape |
| 403 | BITRIX_ACCESS_DENIED |
Bitrix24 refused access |
| 422 | BITRIX_ERROR |
Original Bitrix24 business refusal or plan limitation |
| 403 | WRITE_BLOCKED_READONLY_KEY |
Write using a read-only key |
System errors. Batch sub-call errors are returned within the batch result.
MCP: generic entity tools with entity: "recurring-deals"; expose uses call_api with POST and this path.