For AI agents: markdown of this page — /docs-content-en/entities/recurring-deals/fields.md documentation index — /llms.txt
Recurring deal fields
GET /v1/recurring-deals/fields
Returns field definitions for deal recurrence settings. Use it to check types, required fields and whether a field can be written.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
Parameterrefresh (query) |
Typestring | Defaultfalse |
DescriptionSupply true to refresh field metadata, for example ?refresh=true |
Examples
curl — personal key
curl -X GET "https://vibecode.bitrix24.com/v1/recurring-deals/fields" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl -X GET "https://vibecode.bitrix24.com/v1/recurring-deals/fields" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const response = await fetch('https://vibecode.bitrix24.com/v1/recurring-deals/fields', {
method: 'GET',
headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})
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/fields', {
method: 'GET',
headers: { 'X-Api-Key': 'YOUR_APP_KEY', 'Authorization': 'Bearer USER_SESSION_TOKEN' },
})
const result = await response.json()
if (!result.success) throw new Error(result.error.message)
console.log(result.data)
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionWhether the request succeeded |
Fielddata.fields |
Typeobject | DescriptionComplete field definitions: type, readonly, required, createOnly, nullable, enum, properties when present |
Fielddata.batch |
Typestring[] | DescriptionEntity operations listed for batch processing: create, update, delete |
Fieldmeta.warnings |
Typeobject[] | DescriptionA fields_partial warning may be returned when field definitions are partially loaded |
| Field | Type | RO | Description |
|---|---|---|---|
Fieldid |
Typenumber | ROYes | DescriptionSetting ID. See get a setting. |
FielddealId |
Typenumber | RONo | DescriptionTemplate deal ID. Required and writable only on creation. A regular source deal is copied. See the deal. |
FieldbasedId |
Typenumber | ROYes | DescriptionSource deal ID. See the deal. May be null. |
Fieldactive |
Typeboolean | RONo | DescriptionWhether automatic recurrence is active |
FieldnextExecution |
Typedatetime | ROYes | DescriptionNext execution date. May be null. |
FieldlastExecution |
Typedatetime | ROYes | DescriptionLast execution date. May be null. |
FieldcounterRepeat |
Typenumber | ROYes | DescriptionExecution count. May be null. |
FieldstartDate |
Typedate | RONo | DescriptionSchedule start date. May be null. |
FieldcategoryId |
Typenumber | RONo | DescriptionPipeline for created deals. See the pipeline. May be null. |
FieldisLimit |
Typestring | RONo | DescriptionLimit mode: N — unlimited, T — repetition count, D — end date |
FieldlimitRepeat |
Typenumber | RONo | DescriptionMaximum repetitions in mode T. May be null. |
FieldlimitDate |
Typedate | RONo | DescriptionLast allowed date in mode D. May be null. |
Fieldparams |
Typeobject | RONo | DescriptionComplete schedule parameters. Replaced in full on update |
Fieldparams.mode |
Typestring | RONo | DescriptionSchedule mode. May be null. |
Fieldparams.singleBeforeStartDateValue |
Typenumber | RONo | DescriptionSingle execution offset value |
Fieldparams.singleBeforeStartDateType |
Typestring | RONo | DescriptionSingle execution offset type. May be null. |
Fieldparams.multipleType |
Typestring | RONo | DescriptionRecurrence period type. May be null. |
Fieldparams.multipleInterval |
Typenumber | RONo | DescriptionRecurrence interval |
Fieldparams.offsetBeginDateType |
Typestring | RONo | DescriptionStart date offset type. May be null. |
Fieldparams.offsetBeginDateValue |
Typenumber | RONo | DescriptionStart date offset value |
Fieldparams.offsetCloseDateType |
Typestring | RONo | DescriptionEnd date offset type. May be null. |
Fieldparams.offsetCloseDateValue |
Typenumber | RONo | DescriptionEnd date offset value |
RO means the field is read-only.
Response example
{
"success": true,
"data": {
"fields": {
"id": {
"type": "number",
"readonly": true,
"label": "Recurring settings ID",
"description": "Recurring settings ID."
},
"dealId": {
"type": "number",
"readonly": false,
"createOnly": true,
"required": true,
"label": "Template deal ID; ordinary source deals are copied on creation",
"description": "Template deal ID; ordinary source deals are copied on creation."
},
"basedId": {
"type": "number",
"readonly": true,
"nullable": true,
"label": "Source deal ID",
"description": "Source deal ID."
},
"active": {
"type": "boolean",
"readonly": false,
"label": "Whether automatic repetition is active",
"description": "Whether automatic repetition is active."
},
"nextExecution": {
"type": "datetime",
"readonly": true,
"nullable": true,
"label": "Next execution date",
"description": "Next execution date."
},
"lastExecution": {
"type": "datetime",
"readonly": true,
"nullable": true,
"label": "Last execution date",
"description": "Last execution date."
},
"counterRepeat": {
"type": "number",
"readonly": true,
"nullable": true,
"label": "Executed repetitions",
"description": "Executed repetitions."
},
"startDate": {
"type": "date",
"readonly": false,
"nullable": true,
"label": "Schedule start date",
"description": "Schedule start date."
},
"categoryId": {
"type": "number",
"readonly": false,
"nullable": true,
"label": "Pipeline for newly generated deals",
"description": "Pipeline for newly generated deals."
},
"isLimit": {
"type": "string",
"readonly": false,
"label": "Repetition limit mode",
"description": "Repetition limit mode.",
"enum": [
{
"value": "N",
"label": "Unlimited"
},
{
"value": "T",
"label": "Repetition count"
},
{
"value": "D",
"label": "End date"
}
]
},
"limitRepeat": {
"type": "number",
"readonly": false,
"nullable": true,
"label": "Maximum repetition count for T",
"description": "Maximum repetition count for T."
},
"limitDate": {
"type": "date",
"readonly": false,
"nullable": true,
"label": "Last allowed date for D",
"description": "Last allowed date for D."
},
"params": {
"type": "object",
"readonly": false,
"label": "Complete schedule parameters; replace as a whole on update",
"description": "Complete schedule parameters; replace as a whole on update.",
"properties": {
"mode": {
"type": "string",
"nullable": true
},
"singleBeforeStartDateValue": {
"type": "number"
},
"singleBeforeStartDateType": {
"type": "string",
"nullable": true
},
"multipleType": {
"type": "string",
"nullable": true
},
"multipleInterval": {
"type": "number"
},
"offsetBeginDateType": {
"type": "string",
"nullable": true
},
"offsetBeginDateValue": {
"type": "number"
},
"offsetCloseDateType": {
"type": "string",
"nullable": true
},
"offsetCloseDateValue": {
"type": "number"
}
}
}
},
"batch": [
"create",
"update",
"delete"
]
}
}
Error response example
401 — API key missing:
{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "API key required. Pass via X-Api-Key header."
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP401 | CodeMISSING_API_KEY |
DescriptionThe X-Api-Key header is missing |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionNo Bitrix24 access tokens are configured |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe API key lacks the crm scope |
| HTTP403 | CodeBITRIX_ACCESS_DENIED |
DescriptionBitrix24 denied access, including a missing required scope |
| HTTP422 | CodeBITRIX_ERROR |
DescriptionBitrix24 rejected the operation or a plan restriction applies. See error.message |
| HTTP503 | CodeBITRIX_TIMEOUT |
DescriptionBitrix24 did not respond in time. Retry after the interval in Retry-After |
| HTTP502 | CodeBITRIX_UNAVAILABLE |
DescriptionA connection to Bitrix24 could not be established |
| HTTP429 | CodeRATE_LIMITED |
DescriptionThe request rate limit was exceeded. The effective limit is in the x-ratelimit-limit header. Retry after the interval in the Retry-After header |
For the full list of common API errors, see Error codes.