Склад · Чувствительное действие
Склад · Поставщики · Создание
inventory_supplier_create
Попробуйте три запроса
Подготовить
- Вы указываетеФилиал
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Склад / Поставщики / Создание». Для изменения нужны филиал, название. Покажи объект и ожидаемый эффект до выполнения.
- locationId
- Филиал
- name
- Название
- phone
- Телефон
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Склад / Поставщики / Создание» с параметром language = ru. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- language
- ru
- locationId
- DEMO-101
- name
- Осенняя коллекция
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Склад / Поставщики / Создание» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Create a canonical supplier through the same Storage handler as the interface. Native management authority and customer-create permission are required. No authentication account, invitation, email, payment or supplier message is created. After uncertainty use inventory_supplier_get_create_result with these exact arguments and original requestId.
Параметры запроса
- locationId
- Идентификатор точки из текущего подключения. обязательно по схеме · string
- name
- Native name value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 120
- phone
- Native phone value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 40
- Native email value; use the value and type returned by the corresponding service. обязательно по схеме · string / string · по умолчанию ""
- address
- Native address value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 1000
- description
- Native description value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 4000
- language
- Язык результата или локализуемого значения согласно схеме. обязательно по схеме · string · по умолчанию "ru" · варианты ru, en
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- companyId
- Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- result
- Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"locationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native locationId value; use the value and type returned by the corresponding service."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Native name value; use the value and type returned by the corresponding service."
},
"phone": {
"default": "",
"description": "Native phone value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 40
},
"email": {
"default": "",
"description": "Native email value; use the value and type returned by the corresponding service.",
"anyOf": [
{
"type": "string",
"format": "email",
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
{
"type": "string",
"const": ""
}
]
},
"address": {
"default": "",
"description": "Native address value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 1000
},
"description": {
"default": "",
"description": "Native description value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 4000
},
"language": {
"default": "ru",
"description": "Native language value; use the value and type returned by the corresponding service.",
"type": "string",
"enum": [
"ru",
"en"
]
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
}
},
"required": [
"locationId",
"name",
"phone",
"email",
"address",
"description",
"language",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native companyId value; use the value and type returned by the corresponding service."
},
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native result value; use the value and type returned by the corresponding service."
}
},
"required": [
"companyId",
"result"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
}
}