# Схема: UserDetail

Source: <https://telegafirst.com/docs/schema-81d3f51274e3efd1fc31ee7875194896dafd36e57243465464124a2447df4d3b>
Locale: ru
releaseGitSha: fc570c76ffc9cb87e2462d45b14f5c1b52fbaf0d
sourceContentDigest: c24f76af2d0a20c91be901a6ee6e6b76ed2759360a5b19b2a4f8bcebcb391b0a
Version: 2

# Схема: UserDetail

| Поле | Значение |
| - | - |
| additionalProperties | false |
| properties.bookings.items.$ref | [Booking](https://telegafirst.com/docs/schema-8f35d7760457d93594ae1e9139f10acb25fc18883508a60e990086440bad99e1) |
| properties.bookings.type | "array" |
| properties.channel.enum | \["telegram","max","vk"] |
| properties.channel.type | "string" |
| properties.channel\_user\_id.maxLength | 128 |
| properties.channel\_user\_id.minLength | 1 |
| properties.channel\_user\_id.type | "string" |
| properties.chat\_status.description | "Who answers the customer now: the bot, an AI agent or a human manager" |
| properties.chat\_status.enum | \["bot","ai\_qualifier","ai\_manager","ai\_coach","manager"] |
| properties.chat\_status.type | "string" |
| properties.created\_at.format | "date-time" |
| properties.created\_at.type | "string" |
| properties.email.type | \["string","null"] |
| properties.first\_name.type | \["string","null"] |
| properties.has\_coach\_access.type | "boolean" |
| properties.id.maximum | 2147483647 |
| properties.id.minimum | 1 |
| properties.id.type | "integer" |
| properties.invite\_code.description | "The customer personal invitation code when they have one" |
| properties.invite\_code.maxLength | 64 |
| properties.invite\_code.minLength | 1 |
| properties.invite\_code.type | \["string","null"] |
| properties.invite\_links.description | "The site invite page (invite/index.html) on behalf of this user: one invite code in the ref parameter of the page address, the universal link, the mini app and the bot of each connected messenger. Present with include=invite\_links." |
| properties.invite\_links.items.additionalProperties | false |
| properties.invite\_links.items.properties.channel.enum | \["telegram","max","vk"] |
| properties.invite\_links.items.properties.channel.type | "string" |
| properties.invite\_links.items.properties.description.minLength | 1 |
| properties.invite\_links.items.properties.description.type | "string" |
| properties.invite\_links.items.properties.kind.enum | \["web","universal","mini\_app","bot"] |
| properties.invite\_links.items.properties.kind.type | "string" |
| properties.invite\_links.items.properties.url.minLength | 1 |
| properties.invite\_links.items.properties.url.type | "string" |
| properties.invite\_links.items.required | \["kind","url","description"] |
| properties.invite\_links.items.type | "object" |
| properties.invite\_links.type | "array" |
| properties.invite\_links\_recovery.description | "What to do while invite\_links is empty; null while it lists links." |
| properties.invite\_links\_recovery.type | \["string","null"] |
| properties.invited\_at.format | "date-time" |
| properties.invited\_at.type | \["string","null"] |
| properties.inviter\_id.description | "Who invited the customer (the referral program); set once and never changed; null when none" |
| properties.inviter\_id.maximum | 2147483647 |
| properties.inviter\_id.minimum | 1 |
| properties.inviter\_id.type | \["integer","null"] |
| properties.is\_banned.type | "boolean" |
| properties.is\_bot\_blocked.description | "The customer blocked the bot; messages to them are not delivered" |
| properties.is\_bot\_blocked.type | "boolean" |
| properties.is\_premium.type | "boolean" |
| properties.is\_restricted.type | "boolean" |
| properties.language\_code.type | \["string","null"] |
| properties.last\_activity\_at.format | "date-time" |
| properties.last\_activity\_at.type | \["string","null"] |
| properties.last\_message\_at.format | "date-time" |
| properties.last\_message\_at.type | \["string","null"] |
| properties.last\_name.type | \["string","null"] |
| properties.last\_paid\_at.format | "date-time" |
| properties.last\_paid\_at.type | \["string","null"] |
| 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.marketing\_consent.type | \["boolean","null"] |
| properties.orders.items.$ref | [PullOrderProjection](https://telegafirst.com/docs/schema-bd5599e8f66b8299c18fb691619fb2a9d46fb3c2c91b800e83b2eadd36e57400) |
| properties.orders.type | "array" |
| properties.partner\_assigned\_at.format | "date-time" |
| properties.partner\_assigned\_at.type | \["string","null"] |
| properties.partner\_id.description | "The partner the customer is attached to now for payouts (the partner program); null when none" |
| properties.partner\_id.maximum | 2147483647 |
| properties.partner\_id.minimum | 1 |
| properties.partner\_id.type | \["integer","null"] |
| properties.phone.type | \["string","null"] |
| properties.registrations.items.$ref | [EventRegistration](https://telegafirst.com/docs/schema-e9b4571b362cffb72f105c0b269962ba3f669e838f92b59d53ac2f2ad91049e0) |
| properties.registrations.type | "array" |
| properties.registrations\_next\_cursor.type | \["string","null"] |
| properties.stat\_payments\_amount.description | "Decimal string, sum of paid amounts" |
| properties.stat\_payments\_amount.type | "string" |
| properties.stat\_payments\_count.minimum | 0 |
| properties.stat\_payments\_count.type | "integer" |
| properties.stat\_referrals\_count.minimum | 0 |
| properties.stat\_referrals\_count.type | "integer" |
| properties.subscription.$ref | [PullSubscriptionProjection](https://telegafirst.com/docs/schema-13a0c11b60a436f81b88ffb16d47899133fc270898db56bb18c1b8accbb0d69f) |
| properties.tags.items.type | "string" |
| properties.tags.type | "array" |
| properties.topic\_url.description | "Link to the customer topic in the Open Lines supergroup; null until the topic exists" |
| properties.topic\_url.format | "uri" |
| properties.topic\_url.type | \["string","null"] |
| properties.updated\_at.format | "date-time" |
| properties.updated\_at.type | "string" |
| properties.username.type | \["string","null"] |
| 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"] |
| type | "object" |
