Лояльность · Чтение
Клиенты · Рефералы · Программа · Список
customer_referral_program_list
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Клиенты / Рефералы / Программа / Список» выполни чтение в текущей компании. Выведи кратко: список позиций, следующее смещение.
- items
- Список позиций
- nextOffset
- Следующее смещение
Следующая страница
- Вы указываетеПредыдущий ответ
- ПомощникПродолжение
- Вы получаетеСледующая страница
Запрос в чат
Продолжи «Клиенты / Рефералы / Программа / Список» с позиции прошлого ответа. Сохрани фильтры и размер страницы 3. Покажи новые строки отдельно.
Страница 1До 3 строк
Страница 2Продолжение
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Клиенты / Рефералы / Программа / Список» объясни список позиций, следующее смещение. Отметь отсутствующие значения.
- items
- Список позиций
- nextOffset
- Следующее смещение
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. При постраничном чтении используйте продолжение ответа с теми же фильтрами.
Описание разработчика
List configured referral programs from native customer groups. Disabled programs remain visible for history.
Параметры запроса
- offset
- Смещение из предыдущей страницы или начальное значение из схемы. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 10000
- limit
- Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
Что вернёт команда
- items
- Записи, которые вернул этот запрос. обязательно по схеме · array
- nextOffset
- Смещение для получения следующей страницы. обязательно по схеме · number / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"offset": {
"default": 0,
"description": "Offset from the preceding page.",
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"limit": {
"default": 20,
"description": "Maximum records to return.",
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"required": [
"offset",
"limit"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"groupId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Exact existing native customer group ID; this also identifies its referral program."
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Current native referral record revision."
},
"program": {
"anyOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"description": "Owner-visible program name."
},
"enabled": {
"type": "boolean",
"description": "Permit new links and new Order attribution. Existing committed conditions retain their history."
},
"attributionDays": {
"default": 30,
"description": "Days from first captured visit during which an Order can bind this referral.",
"type": "integer",
"minimum": 1,
"maximum": 90
},
"startsAt": {
"default": null,
"description": "Optional UTC Unix milliseconds when new attribution begins; null has no lower bound.",
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"endsAt": {
"default": null,
"description": "Optional UTC Unix milliseconds when new attribution ends; null has no upper bound.",
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"rewardEvent": {
"default": "paid",
"description": "Require full native payment, or both full payment and a completed native status.",
"type": "string",
"enum": [
"paid",
"completed"
]
},
"frequency": {
"default": "oncePerCustomer",
"description": "Reward only the first qualifying Order for a customer/program pair, or explicitly reward each attributed Order.",
"type": "string",
"enum": [
"oncePerCustomer",
"eachOrder"
]
},
"minimumOrderAmount": {
"default": 0,
"description": "Minimum native Order total in the exact configured currency; no currency conversion.",
"type": "number",
"minimum": 0,
"maximum": 1000000000
},
"currency": {
"type": "string",
"minLength": 1,
"maxLength": 12,
"description": "Exact native Order currency marker, for example USD or $. Must match the Order."
},
"orderTypes": {
"minItems": 1,
"maxItems": 4,
"type": "array",
"items": {
"type": "string",
"enum": [
"pickup",
"delivery",
"atplace",
"catering"
]
},
"description": "Eligible native fulfillment types."
},
"locationIds": {
"default": [],
"description": "Eligible company establishment IDs; empty means all company establishments.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Exact native company-owned record identifier."
}
},
"referrerPoints": {
"default": 0,
"description": "Bonus points for the inviting customer after conditions qualify. Zero disables this side’s reward.",
"type": "number",
"minimum": 0,
"maximum": 1000000000
},
"referredPoints": {
"default": 0,
"description": "Bonus points for the referred customer. Both rewards may be zero for attribution only.",
"type": "number",
"minimum": 0,
"maximum": 1000000000
},
"referrerRewardType": {
"description": "Inviter reward: fixed bonus points (legacy default) or a percentage of the fully paid native Order total, credited as bonus points.",
"type": "string",
"enum": [
"fixed",
"percent"
]
},
"referrerPercent": {
"description": "Inviter percentage from 0 to 100, up to two decimals. Used only with referrerRewardType percent. Excludes tips; no money payout or currency conversion.",
"type": "number",
"minimum": 0,
"maximum": 100
},
"referredRewardType": {
"description": "Buyer reward: fixed bonus points (legacy default) or a percentage of the fully paid native Order total, credited as bonus points.",
"type": "string",
"enum": [
"fixed",
"percent"
]
},
"referredPercent": {
"description": "Buyer percentage from 0 to 100, up to two decimals. Used only with referredRewardType percent.",
"type": "number",
"minimum": 0,
"maximum": 100
}
},
"required": [
"name",
"enabled",
"attributionDays",
"startsAt",
"endsAt",
"rewardEvent",
"frequency",
"minimumOrderAmount",
"currency",
"orderTypes",
"locationIds",
"referrerPoints",
"referredPoints"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Complete referral conditions; existing group loyalty settings remain unchanged."
},
"legacyRecommendationPoints": {
"description": "Existing group recomendbonus setting, or null. It is preserved by these operations.",
"type": [
"number",
"null"
]
}
},
"required": [
"groupId",
"revision",
"program",
"legacyRecommendationPoints"
],
"additionalProperties": false
},
"description": "Company-scoped records in this bounded page."
},
"nextOffset": {
"description": "Next page offset, or null when complete.",
"type": [
"number",
"null"
]
}
},
"required": [
"items",
"nextOffset"
],
"additionalProperties": false
}