Получить список секционных настроек свойств catalog.productPropertySection.list
Выберите инструмент для разработки с AI-агентом:
- используйте Битрикс24 Вайбкод, чтобы создать приложение для Битрикс24 по описанию задачи без знания языков программирования. Агент напишет код и разместит приложение на сервере без ручной настройки хостинга
- используйте MCP-сервер, чтобы разрабатывать интеграцию через REST API в своем проекте. Агент будет обращаться к официальной REST-документации
Scope:
catalogКто может выполнять метод: пользователь с правом «Просмотр каталога товаров»
Метод catalog.productPropertySection.list возвращает список секционных настроек свойств товаров и вариаций по фильтру.
Параметры метода
Обязательные параметры отмечены *
|
Название |
Описание |
|
select |
Массив, содержащий список полей, которые необходимо выбрать. Доступные поля:
По умолчанию возвращаются все доступные поля |
|
filter |
Объект для фильтрации выбранных настроек в формате Возможные значения для Ключу может быть задан дополнительный префикс, уточняющий поведение фильтра. Возможные значения префикса:
Если |
|
order |
Объект для сортировки выбранных настроек в формате Возможные значения для Возможные значения для
Если параметр не передан, применяется сортировка |
|
start |
Параметр используется для управления постраничной навигацией. Размер страницы результатов всегда статичный — 50 записей. Чтобы выбрать вторую страницу результатов, передайте значение Формула расчета значения параметра Если передать значение |
Примеры кода
Как использовать примеры в документации
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"select":["propertyId","smartFilter","displayType","displayExpanded","filterHint"],"filter":{"propertyId":901},"order":{"propertyId":"ASC"}}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/catalog.productPropertySection.list
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"select":["propertyId","smartFilter","displayType","displayExpanded","filterHint"],"filter":{"propertyId":901},"order":{"propertyId":"ASC"},"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/catalog.productPropertySection.list
// This snippet is an ES module: top-level await requires type="module" or a bundler.
// $b24 is an already-initialized SDK instance (see the SDK "Get started" guide).
import { Text } from '@bitrix24/b24jssdk'
import type { B24Frame } from '@bitrix24/b24jssdk'
declare const $b24: B24Frame
// Shape of the payload returned in result (match the "response handling" section of the page)
type ProductPropertySectionListResult = {
productPropertySections: {
displayExpanded: string
displayType: string
filterHint: string
propertyId: number
smartFilter: string
}[]
}
try {
// catalog.productPropertySection.list returns a single page (max 50 records). For the whole result set
// use a list helper: $b24.actions.v2.callList.make() returns every record as one
// array, $b24.actions.v2.fetchList.make() yields them in chunks (async generator).
// NOTE: the list helpers do not accept `order` (it is excluded from their params, so
// passing it is a TS error) — keep this call.make + `start` variant when sort matters.
const response = await $b24.actions.v2.call.make<ProductPropertySectionListResult>({
method: 'catalog.productPropertySection.list',
params: {
select: ['propertyId', 'smartFilter', 'displayType', 'displayExpanded', 'filterHint'],
filter: { propertyId: 901 },
order: { propertyId: 'ASC' },
start: 0,
},
requestId: Text.getUuidRfc4122()
})
// The payload is available only on a successful response
if (!response.isSuccess) {
console.error(response.getErrorMessages().join('; '))
} else {
const result = response.getData()!.result
console.info(result.productPropertySections.length, result.productPropertySections)
}
} catch (error) {
// Thrown on transport or SDK failures (AjaxError, SdkError, etc.)
console.error(error)
}
<!-- Load the SDK (UMD build); it is exposed as the global B24Js -->
<script src="https://unpkg.com/@bitrix24/b24jssdk@1/dist/umd/index.min.js"></script>
<script>
async function listProductPropertySections() {
try {
// Initialize the SDK inside a Bitrix24 frame
const $b24 = await B24Js.initializeB24Frame()
// catalog.productPropertySection.list returns a single page (max 50 records). For the whole result set
// use a list helper: $b24.actions.v2.callList.make() returns every record as one
// array, $b24.actions.v2.fetchList.make() yields them in chunks (async generator).
// NOTE: the list helpers do not accept `order` (it is excluded from their params, so
// passing it is a TS error) — keep this call.make + `start` variant when sort matters.
const response = await $b24.actions.v2.call.make({
method: 'catalog.productPropertySection.list',
params: {
select: ['propertyId', 'smartFilter', 'displayType', 'displayExpanded', 'filterHint'],
filter: { propertyId: 901 },
order: { propertyId: 'ASC' },
start: 0,
},
requestId: B24Js.Text.getUuidRfc4122()
})
// The payload is available only on a successful response
if (!response.isSuccess) {
console.error(response.getErrorMessages().join('; '))
return
}
const result = response.getData().result
console.info(result.productPropertySections.length, result.productPropertySections)
} catch (error) {
// Thrown on transport or SDK failures (AjaxError, SdkError, etc.)
console.error(error)
}
}
document.addEventListener('DOMContentLoaded', listProductPropertySections)
</script>
try {
$response = $b24Service
->core
->call(
'catalog.productPropertySection.list',
[
'select' => ['propertyId', 'smartFilter', 'displayType', 'displayExpanded', 'filterHint'],
'filter' => [
'propertyId' => 901,
],
'order' => ['propertyId' => 'ASC'],
]
);
print_r($response->getResponseData()->getResult());
} catch (\Throwable $exception) {
echo $exception->getMessage();
}
BX24.callMethod(
'catalog.productPropertySection.list',
{
select: ['propertyId', 'smartFilter', 'displayType', 'displayExpanded', 'filterHint'],
filter: {
propertyId: 901
},
order: { propertyId: 'ASC' }
},
function(result) {
if (result.error()) {
console.error(result.error());
} else {
console.log(result.data());
}
}
);
require_once('crest.php');
$result = CRest::call(
'catalog.productPropertySection.list',
[
'select' => ['propertyId', 'smartFilter', 'displayType', 'displayExpanded', 'filterHint'],
'filter' => ['propertyId' => 901],
'order' => ['propertyId' => 'ASC'],
]
);
print_r($result);
// client и ctx уже созданы — см. раздел «SDK для Go»
res, err := client.Core().Call(ctx, "catalog.productPropertySection.list", b24.Params{
"select": []string{"propertyId", "smartFilter", "displayType", "displayExpanded", "filterHint"},
"filter": b24.Params{
"propertyId": 901,
},
"order": b24.Params{
"propertyId": "ASC",
},
}, b24.WithIdempotent())
if err != nil {
return fmt.Errorf("catalog.productPropertySection.list: %w", err)
}
// Метод заворачивает ответ в объект с ключом "productPropertySections".
raw, ok := b24.Unwrap(res.Result, "productPropertySections")
if !ok {
return fmt.Errorf("в ответе нет ключа productPropertySections")
}
var items []struct {
DisplayExpanded string `json:"displayExpanded"`
DisplayType string `json:"displayType"`
FilterHint string `json:"filterHint"`
PropertyID b24.ID `json:"propertyId"`
SmartFilter string `json:"smartFilter"`
}
if err := json.Unmarshal(raw, &items); err != nil {
return fmt.Errorf("разбор ответа: %w", err)
}
for _, it := range items {
fmt.Println(it.DisplayExpanded)
}
Обработка ответа
HTTP-статус: 200
{
"result": {
"productPropertySections": [
{
"displayExpanded": "N",
"displayType": "F",
"filterHint": "Подсказка для фильтра",
"propertyId": 901,
"smartFilter": "Y"
}
]
},
"total": 1,
"time": {
"start": 1774266816,
"finish": 1774266816.883621,
"duration": 0.8836209774017334,
"processing": 0,
"date_start": "2026-03-23T14:53:36+03:00",
"date_finish": "2026-03-23T14:53:36+03:00",
"operating_reset_at": 1774267416,
"operating": 0
}
}
Возвращаемые данные
|
Название |
Описание |
|
result |
Корневой объект ответа |
|
productPropertySections |
Массив объектов секционных настроек свойства |
|
next |
Смещение для следующей страницы. Поле возвращается, если есть еще записи |
|
total |
Общее число записей. Поле не возвращается, если запрос выполнен со |
|
time |
Информация о времени выполнения запроса |
Обработка ошибок
HTTP-статус: 400
{
"error": "0",
"error_description": "Access Denied"
}
|
Название |
Описание |
|
error |
Строковый код ошибки. Может состоять из цифр, латинских букв и знака подчеркивания |
|
error_description |
Текстовое описание ошибки. Описание не предназначено для показа конечному пользователю в необработанном виде |
Возможные коды ошибок
|
Код |
Описание |
Значение |
|
|
Access Denied |
Недостаточно прав для просмотра каталога |
|
|
Invalid value {wrong_type} to match with parameter {filter}. Should be value of type array. |
Неверный тип данных у значения параметра |
|
|
Invalid value {wrong_type} to match with parameter {select}. Should be value of type array. |
Неверный тип данных у значения параметра |
|
|
Invalid value {wrong_type} to match with parameter {order}. Should be value of type array. |
Неверный тип данных у значения параметра |
Статусы и коды системных ошибок
HTTP-статус: 20x, 40x, 50x
Описанные ниже ошибки могут возникнуть при вызове любого метода
|
Статус |
Код |
Описание |
|
|
|
Возникла внутренняя ошибка сервера, обратитесь к администратору сервера или в техническую поддержку Битрикс24 |
|
|
|
Возникла внутренняя ошибка сервера, обратитесь к администратору сервера или в техническую поддержку Битрикс24 |
|
|
|
Превышен лимит на интенсивность запросов |
|
|
|
Метод заблокирован из-за превышения лимита на ресурсоемкость запросов. Блокировка снимается автоматически через 10 минут |
|
|
|
Текущий метод не разрешен для вызова с помощью batch |
|
|
|
Превышена максимальная длина параметров, переданных в метод batch |
|
|
|
Неверный access-токен или код вебхука |
|
|
|
Для вызовов методов требуется использовать протокол HTTPS |
|
|
|
REST API заблокирован из-за перегрузки. Это ручная индивидуальная блокировка, для снятия необходимо обращаться в техническую поддержку Битрикс24 |
|
|
|
REST API доступен только на коммерческих планах |
|
|
|
У пользователя, с чьим access-токеном или вебхуком был вызван метод, не хватает прав |
|
|
|
Манифест недоступен |
|
|
|
Запрос требует более высоких привилегий, чем предоставляет токен вебхука |
|
|
|
Предоставленный access-токен доступа истек |
|
|
|
Пользователь не имеет доступа к приложению. Это означает, что приложение установлено, но администратор портала разрешил доступ к этому приложению только конкретным пользователям |
|
|
|
Публичная часть сайта закрыта. Чтобы открыть публичную часть сайта на коробочной установке отключите опцию «Временное закрытие публичной части сайта». Путь к настройке: Рабочий стол > Настройки > Настройки продукта > Настройки модулей > Главный модуль > Временное закрытие публичной части сайта |