Лояльность · Чтение
Клиенты · Рефералы · Ссылки · Просмотр
customer_referral_link_get
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Клиенты / Рефералы / Ссылки / Просмотр» выполни чтение в текущей компании. Выведи кратко: companyId, code.
- companyId
- Поле ответа
- code
- Поле ответа
- groupId
- Поле ответа
Уточнить условия
- Вы указываетеЗадача
- ПомощникСхема входа
- Вы получаетеУсловия чтения
Запрос в чат
Для «Клиенты / Рефералы / Ссылки / Просмотр» перечисли допустимые параметры code. Уточни, какие значения нужны для моей задачи, до запроса данных.
- code
- Параметр чтения
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Клиенты / Рефералы / Ссылки / Просмотр» объясни companyId, code. Отметь отсутствующие значения.
- companyId
- Поле ответа
- code
- Поле ответа
- groupId
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read an owned company referral link, including its current revision and disabled status.
Параметры запроса
- code
- Public customer referral code returned by link creation. обязательно по схеме · string
Что вернёт команда
- companyId
- Authenticated company owning this record. обязательно по схеме · string
- code
- Public customer referral code returned by link creation. обязательно по схеме · string
- groupId
- Exact existing native customer group ID; this also identifies its referral program. обязательно по схеме · string
- customerId
- Exact active native customer ID in this company. обязательно по схеме · string
- url
- Shareable destination including the public customer_ref code. обязательно по схеме · string
- expiresAt
- UTC Unix milliseconds when the link expires, or null for no link-specific expiration. обязательно по схеме · number / null
- disabled
- Whether new attribution from this link is blocked. обязательно по схеме · boolean
- revision
- Current native referral record revision. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
- createdAt
- Creation time in UTC Unix milliseconds. обязательно по схеме · number
- programRevision
- Program revision observed when this link was created. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"code": {
"type": "string",
"pattern": "^cr_[A-Za-z0-9_-]{32}$",
"description": "Public customer referral code returned by link creation."
}
},
"required": [
"code"
],
"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": "Authenticated company owning this record."
},
"code": {
"type": "string",
"pattern": "^cr_[A-Za-z0-9_-]{32}$",
"description": "Public customer referral code returned by link creation."
},
"groupId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Exact existing native customer group ID; this also identifies its referral program."
},
"customerId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Exact active native customer ID in this company."
},
"url": {
"type": "string",
"format": "uri",
"description": "Shareable destination including the public customer_ref code."
},
"expiresAt": {
"description": "UTC Unix milliseconds when the link expires, or null for no link-specific expiration.",
"type": [
"number",
"null"
]
},
"disabled": {
"type": "boolean",
"description": "Whether new attribution from this link is blocked."
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Current native referral record revision."
},
"createdAt": {
"type": "number",
"description": "Creation time in UTC Unix milliseconds."
},
"programRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Program revision observed when this link was created."
}
},
"required": [
"companyId",
"code",
"groupId",
"customerId",
"url",
"expiresAt",
"disabled",
"revision",
"createdAt",
"programRevision"
],
"additionalProperties": false
}