Документы · Чтение
Документы · Список · Для · Заказы
documents_list_for_order
Попробуйте три запроса
Получить данные
- Вы указываетеЗаказ
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Документы / Список / Для / Заказы» выполни чтение по выбранной записи (заказ). Выведи кратко: список позиций, nextId.
- items
- Список позиций
- nextId
- Поле ответа
Задать параметры
- Вы указываетеЗаказ
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Документы / Список / Для / Заказы» на учебном примере с orderId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- orderId
- DEMO-101
- limit
- 3
- afterId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Документы / Список / Для / Заказы» объясни список позиций, nextId. Отметь отсутствующие значения.
- items
- Список позиций
- nextId
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
List native documents linked exactly to one accessible order. The server verifies its company and current access before querying document metadata. Use the returned document IDs and revisions for editing, PDF export, or an explicitly confirmed deletion.
Параметры запроса
- orderId
- Идентификатор выбранного заказа. обязательно по схеме · string · до символов 128
- limit
- Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
- afterId
- Last document ID from the previous page of this same parent. необязательно · string · до символов 128
Что вернёт команда
- items
- Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 50
- nextId
- Last returned document ID when another page exists, otherwise null. обязательно по схеме · string / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical existing order identifier."
},
"limit": {
"default": 20,
"description": "Maximum document summaries returned.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"afterId": {
"description": "Last document ID from the previous page of this same parent.",
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
}
},
"required": [
"orderId",
"limit"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"documentId": {
"type": "string",
"description": "Canonical Companies/{company}/Documents document identifier."
},
"names": {
"maxItems": 3,
"type": "array",
"items": {
"type": "object",
"properties": {
"language": {
"type": "string",
"maxLength": 20,
"description": "Stored language code preview."
},
"name": {
"type": "string",
"maxLength": 300,
"description": "Stored localized template name preview."
}
},
"required": [
"language",
"name"
],
"additionalProperties": false
},
"description": "Preview of up to three existing document names; the complete name array is available in native layout reads."
},
"namesTruncated": {
"type": "boolean",
"description": "True when names or their preview strings were shortened; read the native layout chunks for complete names."
},
"totalNameCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Total number of stored localized names before preview limits."
},
"itemCount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Number of native layout items."
},
"template": {
"type": "boolean",
"description": "True when this record is not linked to an order or task."
},
"revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Content revision token. Pass unchanged when updating or deleting to detect concurrent edits."
}
},
"required": [
"documentId",
"names",
"namesTruncated",
"totalNameCount",
"itemCount",
"template",
"revision"
],
"additionalProperties": false
},
"description": "Documents linked exactly to the selected order or task."
},
"nextId": {
"description": "Last returned document ID when another page exists, otherwise null.",
"type": [
"string",
"null"
]
}
},
"required": [
"items",
"nextId"
],
"additionalProperties": false
}