Get a List of Recurring Deal Template Settings crm.deal.recurring.list
Scope:
crmWho can execute the method: user with "read" access permission for deals
The method crm.deal.recurring.list returns a list of recurring deal template settings based on the provided filter.
Method Parameters
|
Name |
Description |
|
order |
Object format:
where:
The list of fields available for sorting can be obtained using the method crm.deal.recurring.fields |
|
filter |
Filter object format:
where:
You can add a prefix to the keys
The list of fields available for filtering can be obtained using the method crm.deal.recurring.fields. The |
|
start |
Pagination parameter. The page size is fixed: The formula for obtaining the N-th page: |
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"order":{"deal_id":"ASC"},"filter":{">COUNTER_REPEAT":0}}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/crm.deal.recurring.list
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"order":{"deal_id":"ASC"},"filter":{">COUNTER_REPEAT":0},"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/crm.deal.recurring.list
// callListMethod: retrieves all data at once. Suitable for small selections.
try {
const response = await $b24.callListMethod(
'crm.deal.recurring.list',
{
order: { deal_id: 'ASC' },
filter: { '>COUNTER_REPEAT': 0 }
}
);
const items = response.getData() || [];
for (const item of items) {
console.log(item);
}
} catch (error) {
console.error('Request failed', error);
}
// fetchListMethod: retrieves data in parts (iterator).
try {
const iterator = $b24.fetchListMethod(
'crm.deal.recurring.list',
{
order: { deal_id: 'ASC' },
filter: { '>COUNTER_REPEAT': 0 }
},
'id'
);
for await (const page of iterator) {
for (const item of page) {
console.log(item);
}
}
} catch (error) {
console.error('Request failed', error);
}
// callMethod: manual pagination using the start parameter.
try {
const response = await $b24.callMethod(
'crm.deal.recurring.list',
{
order: { deal_id: 'ASC' },
filter: { '>COUNTER_REPEAT': 0 }
},
0
);
const result = response.getData().result || [];
for (const item of result) {
console.log(item);
}
} catch (error) {
console.error('Request failed', error);
}
try {
$response = $b24Service
->core
->call(
'crm.deal.recurring.list',
[
'order' => ['deal_id' => 'ASC'],
'filter' => ['>COUNTER_REPEAT' => 0],
]
);
$result = $response
->getResponseData()
->getResult();
if ($result->error()) {
error_log($result->error());
echo 'Error: ' . $result->error();
} else {
echo 'Success: ' . print_r($result->data(), true);
}
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error fetching recurring deals: ' . $e->getMessage();
}
BX24.callMethod(
'crm.deal.recurring.list',
{
order: { deal_id: 'ASC' },
filter: { '>COUNTER_REPEAT': 0 }
},
function(result)
{
if (result.error())
console.error(result.error());
else
{
console.info(result.data());
if (result.more())
result.next();
}
}
);
require_once('crest.php');
$result = CRest::call(
'crm.deal.recurring.list',
[
'order' => ['deal_id' => 'ASC'],
'filter' => ['>COUNTER_REPEAT' => 0],
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Response Handling
HTTP Status: 200
{
"result": [
{
"id": "1",
"deal_id": "575",
"based_id": "573",
"ACTIVE": "N",
"category_id": "1",
"IS_LIMIT": "T",
"COUNTER_REPEAT": "2",
"LIMIT_REPEAT": "2",
"LIMIT_DATE": "",
"START_DATE": "2020-06-15T03:00:00+02:00",
"NEXT_EXECUTION": "",
"LAST_EXECUTION": "2020-06-17T01:00:00+02:00",
"PARAMS": {
"MODE": "multiple",
"SINGLE_BEFORE_START_DATE_TYPE": "day",
"SINGLE_BEFORE_START_DATE_VALUE": 0,
"MULTIPLE_TYPE": "day",
"MULTIPLE_INTERVAL": 1,
"OFFSET_BEGINDATE_TYPE": "day",
"OFFSET_BEGINDATE_VALUE": 1,
"OFFSET_CLOSEDATE_TYPE": "day",
"OFFSET_CLOSEDATE_VALUE": 1
}
},
{
"id": "5",
"deal_id": "6555",
"based_id": "6531",
"ACTIVE": "Y",
"category_id": "9",
"IS_LIMIT": "N",
"COUNTER_REPEAT": "471",
"LIMIT_REPEAT": null,
"LIMIT_DATE": "",
"START_DATE": "2024-11-21T03:00:00+02:00",
"NEXT_EXECUTION": "2026-03-07T01:00:00+02:00",
"LAST_EXECUTION": "2026-03-06T01:00:00+02:00",
"PARAMS": {
"MODE": "multiple",
"SINGLE_BEFORE_START_DATE_TYPE": "day",
"SINGLE_BEFORE_START_DATE_VALUE": 0,
"MULTIPLE_TYPE": "day",
"MULTIPLE_INTERVAL": 1,
"OFFSET_BEGINDATE_TYPE": "day",
"OFFSET_BEGINDATE_VALUE": 0,
"OFFSET_CLOSEDATE_TYPE": "day",
"OFFSET_CLOSEDATE_VALUE": 0
}
}
],
"total": 5,
"time": {
"start": 1772757008,
"finish": 1772757008.649235,
"duration": 0.6492350101470947,
"processing": 0,
"date_start": "2026-03-06T03:30:08+02:00",
"date_finish": "2026-03-06T03:30:08+02:00",
"operating_reset_at": 1772757608,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
Array of recurring deal template settings. Field descriptions are provided in the method crm.deal.recurring.get |
|
total |
Total number of records found |
|
next |
Offset for the next page request. This field is present if there is a next page of results |
|
time |
Information about the request execution time |
Error Handling
HTTP Status: 400
{
"error": "",
"error_description": "Access denied."
}
|
Name |
Description |
|
error |
String error code. It may consist of digits, Latin letters, and underscores |
|
error_description |
Textual description of the error. The description is not intended to be shown to the end user in its raw form |
Possible Error Codes
|
Code |
Description |
|
|
Insufficient permissions to read deals |
|
|
The |
|
|
The |
|
|
Unable to retrieve the list due to an internal error |
Statuses and System Error Codes
HTTP Status: 20x, 40x, 50x
The errors described below may occur when calling any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred, please contact the server administrator or Bitrix24 technical support |
|
|
|
An internal server error has occurred, please contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The current method is not allowed to be called using batch |
|
|
|
The maximum length of parameters passed to the batch method has been exceeded |
|
|
|
Invalid access token or webhook code |
|
|
|
The methods must be called using the HTTPS protocol |
|
|
|
The REST API is blocked due to overload. This is a manual individual block, to remove it you need to contact Bitrix24 technical support |
|
|
|
The REST API is available only on commercial plans |
|
|
|
The user whose access token or webhook was used to call the method lacks permissions |
|
|
|
The manifest is not available |
|
|
|
The request requires higher privileges than those provided by the webhook token |
|
|
|
The provided access token has expired |
|
|
|
The user does not have access to the application. This means that the application is installed, but the account administrator has allowed access to this application only for specific users |
|
|
|
The public part of the site is closed. To open the public part of the site on an on-premise installation, disable the option "Temporary closure of the public part of the site". Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site |
Continue Learning
- Get the List of Fields for the Recurring Deal Template crm.deal.recurring.fields
- Get Recurring Deal Template Settings by ID crm.deal.recurring.get
- Create a Template for Recurring Deal crm.deal.recurring.add
- Update the Recurring Deal Template Settings `crm.deal.recurring.update`
- Delete the Recurring Deal Template Setting crm.deal.recurring.delete
- Create a New Deal from the Template crm.deal.recurring.expose