# Схема: list\_customers: outputSchema

Source: <https://telegafirst.com/docs/schema-9f0abda9f93f8d9ecf0352fd5fd4e18993a05e9e167c1c95a015412f83fb1ba3>
Locale: ru
releaseGitSha: fc570c76ffc9cb87e2462d45b14f5c1b52fbaf0d
sourceContentDigest: 5021fda699b5ad8c330d8dcb0d0ce1de938cce45396c2abe45afa8b9cc7969ee
Version: 3

# Схема: list\_customers: outputSchema

| Поле | Значение |
| - | - |
| $schema | "<https://json-schema.org/draft/2020-12/schema>" |
| additionalProperties | false |
| properties.customers.items.additionalProperties | false |
| properties.customers.items.properties.channel.enum | \["telegram","max","vk"] |
| properties.customers.items.properties.channel.type | "string" |
| properties.customers.items.properties.channel\_user\_id.maxLength | 128 |
| properties.customers.items.properties.channel\_user\_id.minLength | 1 |
| properties.customers.items.properties.channel\_user\_id.type | "string" |
| properties.customers.items.properties.chat\_status.description | "Who answers the customer now: the bot, an AI agent or a human manager" |
| properties.customers.items.properties.chat\_status.enum | \["bot","ai\_qualifier","ai\_manager","ai\_coach","manager"] |
| properties.customers.items.properties.chat\_status.type | "string" |
| properties.customers.items.properties.created\_at.format | "date-time" |
| properties.customers.items.properties.created\_at.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))$" |
| properties.customers.items.properties.created\_at.type | "string" |
| properties.customers.items.properties.email.type | \["string","null"] |
| properties.customers.items.properties.first\_name.type | \["string","null"] |
| properties.customers.items.properties.has\_coach\_access.type | "boolean" |
| properties.customers.items.properties.id.maximum | 2147483647 |
| properties.customers.items.properties.id.minimum | 1 |
| properties.customers.items.properties.id.type | "integer" |
| properties.customers.items.properties.invite\_code.anyOf.0.maxLength | 64 |
| properties.customers.items.properties.invite\_code.anyOf.0.minLength | 1 |
| properties.customers.items.properties.invite\_code.anyOf.0.type | "string" |
| properties.customers.items.properties.invite\_code.anyOf.1.type | "null" |
| properties.customers.items.properties.invite\_code.description | "The customer personal invitation code when they have one" |
| properties.customers.items.properties.invited\_at.anyOf.0.format | "date-time" |
| properties.customers.items.properties.invited\_at.anyOf.0.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))$" |
| properties.customers.items.properties.invited\_at.anyOf.0.type | "string" |
| properties.customers.items.properties.invited\_at.anyOf.1.type | "null" |
| properties.customers.items.properties.inviter\_id.anyOf.0.maximum | 2147483647 |
| properties.customers.items.properties.inviter\_id.anyOf.0.minimum | 1 |
| properties.customers.items.properties.inviter\_id.anyOf.0.type | "integer" |
| properties.customers.items.properties.inviter\_id.anyOf.1.type | "null" |
| properties.customers.items.properties.inviter\_id.description | "Who invited the customer (the referral program); set once and never changed; null when none" |
| properties.customers.items.properties.is\_banned.type | "boolean" |
| properties.customers.items.properties.is\_bot\_blocked.description | "The customer blocked the bot; messages to them are not delivered" |
| properties.customers.items.properties.is\_bot\_blocked.type | "boolean" |
| properties.customers.items.properties.is\_premium.type | "boolean" |
| properties.customers.items.properties.is\_restricted.type | "boolean" |
| properties.customers.items.properties.language\_code.type | \["string","null"] |
| properties.customers.items.properties.last\_activity\_at.anyOf.0.format | "date-time" |
| properties.customers.items.properties.last\_activity\_at.anyOf.0.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))$" |
| properties.customers.items.properties.last\_activity\_at.anyOf.0.type | "string" |
| properties.customers.items.properties.last\_activity\_at.anyOf.1.type | "null" |
| properties.customers.items.properties.last\_message\_at.anyOf.0.format | "date-time" |
| properties.customers.items.properties.last\_message\_at.anyOf.0.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))$" |
| properties.customers.items.properties.last\_message\_at.anyOf.0.type | "string" |
| properties.customers.items.properties.last\_message\_at.anyOf.1.type | "null" |
| properties.customers.items.properties.last\_name.type | \["string","null"] |
| properties.customers.items.properties.last\_paid\_at.anyOf.0.format | "date-time" |
| properties.customers.items.properties.last\_paid\_at.anyOf.0.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))$" |
| properties.customers.items.properties.last\_paid\_at.anyOf.0.type | "string" |
| properties.customers.items.properties.last\_paid\_at.anyOf.1.type | "null" |
| properties.customers.items.properties.marketing\_consent.description | "The newest answer to the marketing consent: true granted, false refused, null never asked. A refusal excludes the customer from broadcasts only" |
| properties.customers.items.properties.marketing\_consent.type | \["boolean","null"] |
| properties.customers.items.properties.partner\_assigned\_at.anyOf.0.format | "date-time" |
| properties.customers.items.properties.partner\_assigned\_at.anyOf.0.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))$" |
| properties.customers.items.properties.partner\_assigned\_at.anyOf.0.type | "string" |
| properties.customers.items.properties.partner\_assigned\_at.anyOf.1.type | "null" |
| properties.customers.items.properties.partner\_id.anyOf.0.maximum | 2147483647 |
| properties.customers.items.properties.partner\_id.anyOf.0.minimum | 1 |
| properties.customers.items.properties.partner\_id.anyOf.0.type | "integer" |
| properties.customers.items.properties.partner\_id.anyOf.1.type | "null" |
| properties.customers.items.properties.partner\_id.description | "The partner the customer is attached to now for payouts (the partner program); null when none" |
| properties.customers.items.properties.phone.type | \["string","null"] |
| properties.customers.items.properties.stat\_payments\_amount.description | "Decimal string, sum of paid amounts" |
| properties.customers.items.properties.stat\_payments\_amount.type | "string" |
| properties.customers.items.properties.stat\_payments\_count.maximum | 9007199254740991 |
| properties.customers.items.properties.stat\_payments\_count.minimum | 0 |
| properties.customers.items.properties.stat\_payments\_count.type | "integer" |
| properties.customers.items.properties.stat\_referrals\_count.maximum | 9007199254740991 |
| properties.customers.items.properties.stat\_referrals\_count.minimum | 0 |
| properties.customers.items.properties.stat\_referrals\_count.type | "integer" |
| properties.customers.items.properties.tags.items.type | "string" |
| properties.customers.items.properties.tags.type | "array" |
| properties.customers.items.properties.topic\_url.anyOf.0.format | "uri" |
| properties.customers.items.properties.topic\_url.anyOf.0.type | "string" |
| properties.customers.items.properties.topic\_url.anyOf.1.type | "null" |
| properties.customers.items.properties.topic\_url.description | "Link to the customer topic in the Open Lines supergroup; null until the topic exists" |
| properties.customers.items.properties.updated\_at.format | "date-time" |
| properties.customers.items.properties.updated\_at.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))$" |
| properties.customers.items.properties.updated\_at.type | "string" |
| properties.customers.items.properties.username.type | \["string","null"] |
| properties.customers.items.required | \["id","channel","channel\_user\_id","username","first\_name","last\_name","language\_code","email","phone","is\_premium","chat\_status","is\_banned","is\_restricted","is\_bot\_blocked","has\_coach\_access","tags","stat\_payments\_count","stat\_payments\_amount","stat\_referrals\_count","partner\_id","partner\_assigned\_at","inviter\_id","invited\_at","marketing\_consent","topic\_url","invite\_code","last\_message\_at","last\_activity\_at","last\_paid\_at","created\_at","updated\_at"] |
| properties.customers.items.type | "object" |
| properties.customers.type | "array" |
| properties.next\_after\_id.anyOf.0.maximum | 2147483647 |
| properties.next\_after\_id.anyOf.0.minimum | 1 |
| properties.next\_after\_id.anyOf.0.type | "integer" |
| properties.next\_after\_id.anyOf.1.type | "null" |
| required | \["customers","next\_after\_id"] |
| type | "object" |
