Клиенты · Отзывы · Отправка · Мои · Заказы
customer_reviews_submit_own_order
Попробуйте три запроса
- Вы указываетеЗаказ
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Подготовь «Клиенты / Отзывы / Отправка / Мои / Заказы». Для изменения нужны заказ, текст. Покажи объект и ожидаемый эффект до выполнения.
- orderId
- Заказ
- text
- Текст
- rating
- Параметр
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
На учебной записи подготовь «Клиенты / Отзывы / Отправка / Мои / Заказы» с параметром orderId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- orderId
- DEMO-101
- text
- Учебный текст
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Проверь результат «Клиенты / Отзывы / Отправка / Мои / Заказы» по исходному ответу. Покажи reviewId, заказ. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Publish your own review for an existing archived order linked to your authenticated account. An explicit target selects that order's establishment, its recorded courier, or an existing company-owned product on its lines; omit target to retain the original untargeted submission. The server verifies company, location, target and author and records the review atomically with a retry receipt. The server snapshots your own public profile name and avatar for targeted reviews. An explicit native integer rating from 0 to 5 requires a selected target; omission remains unrated. No arbitrary author, unrelated target, photos, reply or external provider event is accepted.
Параметры запроса
- orderId
- Идентификатор выбранного заказа. обязательно по схеме · string · до символов 160
- text
- Your own review text to publish in the native customer review record. Do not supply someone else's review, a provider reply or private support correspondence. обязательно по схеме · string · до символов 4000
- rating
- Explicit native whole-star score from 0 to 5 for the selected establishment, product or courier. Requires an explicit target. Omit to keep the review unrated; no score is inferred. необязательно · integer · минимум 0 · максимум 5
- target
- Explicit native review target. Omit to retain the original untargeted own-order submission. Target IDs never establish company authority. A courier target is resolved only from the own archived order; no external provider is inferred. необязательно
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- reviewId
- Canonical stored customer_reviews identifier for this self-authored review. обязательно по схеме · string · до символов 160
- orderId
- Existing archived order checked for ownership when the review was submitted. обязательно по схеме · string · до символов 160
- locationId
- Company-owned establishment resolved from the order by the server. обязательно по схеме · string · до символов 160
- publishedAt
- Server publication timestamp in the native review record. обязательно по схеме · string
- provider
- Native feedback provider. This action does not publish to Google or any external review service. обязательно по схеме · string
- rating
- The explicitly supplied native whole-star score, or null when no rating was supplied. обязательно по схеме · integer / null
- target
- Present only for an explicitly requested business-target review; legacy untargeted results retain their original shape. необязательно · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"orderId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Exact archived_orders identifier for an existing order whose stored customer is your authenticated Firebase account. Other customers and active Firestore-only orders are not accepted."
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 4000,
"description": "Your own review text to publish in the native customer review record. Do not supply someone else's review, a provider reply or private support correspondence."
},
"rating": {
"description": "Explicit native whole-star score from 0 to 5 for the selected establishment, product or courier. Requires an explicit target. Omit to keep the review unrated; no score is inferred.",
"type": "integer",
"minimum": 0,
"maximum": 5
},
"target": {
"description": "Explicit native review target. Omit to retain the original untargeted own-order submission. Target IDs never establish company authority. A courier target is resolved only from the own archived order; no external provider is inferred.",
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "establishment",
"description": "Review the company-owned establishment resolved from this own order."
}
},
"required": [
"kind"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "product",
"description": "Review one existing product or service recorded on this own order."
},
"productId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical product ID from the own order. The server verifies its order-line association and current company ownership."
}
},
"required": [
"kind",
"productId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "courier",
"description": "Review the courier ID recorded in this own archived order. The server resolves the target; no employee or user ID can be supplied."
}
},
"required": [
"kind"
],
"additionalProperties": false
}
]
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable unique identifier for this exact submission. Preserve the order and text when retrying or recovering its result."
}
},
"required": [
"orderId",
"text",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"reviewId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical stored customer_reviews identifier for this self-authored review."
},
"orderId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Existing archived order checked for ownership when the review was submitted."
},
"locationId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Company-owned establishment resolved from the order by the server."
},
"publishedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "Server publication timestamp in the native review record."
},
"provider": {
"type": "string",
"const": "sabsus",
"description": "Native feedback provider. This action does not publish to Google or any external review service."
},
"rating": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 5
},
{
"type": "null"
}
],
"description": "The explicitly supplied native whole-star score, or null when no rating was supplied."
},
"target": {
"description": "Present only for an explicitly requested business-target review; legacy untargeted results retain their original shape.",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"establishment",
"product",
"courier"
],
"description": "Verified native business target kind; no external provider rating scale is inferred."
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Native target identifier resolved through the own order. This native review target is not a parent review ID."
}
},
"required": [
"kind",
"id"
],
"additionalProperties": false
}
},
"required": [
"reviewId",
"orderId",
"locationId",
"publishedAt",
"provider",
"rating"
],
"additionalProperties": false
}