< Voltar para as definições do objeto cliente [customer].
Definição dos campos do objeto "customerTelephone":
| Campos | Nullable | Descrição |
|---|---|---|
| id string | NÃO | Identificador interno do telefone; |
| customer_id int | NÃO | Identificador interno do cliente ao qual o telefone pertence; |
| area_code string | NÃO | DDD do telefone; |
| number string | NÃO | Número do telefone |
| type enum {m, f} | NÃO | Flag para identificar o tipo do telefone: * m: Móvel; * f: Fixo; |
| level_id string | NÃO | Identificador da classificação do telefone; |
| has_sms bool | NÃO | Flag para identificar se o telefone está disponível para recebimento de mensagens via SMS; |
| has_whatsapp bool | NÃO | Flag para identificar se o telefone está disponível para recebimento de mensagens via WhatsApp; |
| has_whatsapp_api bool | NÃO | CAMPO DEPRECIADO |
| wa_is_business bool | NÃO | CAMPO DEPRECIADO |
| wa_is_enterprise bool | NÃO | CAMPO DEPRECIADO |
| wa_contact_name string | SIM | CAMPO DEPRECIADO |
| wa_pushname string | SIM | CAMPO DEPRECIADO |
| wa_verified_level string | SIM | CAMPO DEPRECIADO |
| wa_verified_name string | SIM | CAMPO DEPRECIADO |
| wa_profile_picture string | SIM | CAMPO DEPRECIADO |
| session_expires_at datetime | SIM | CAMPO DEPRECIADO |
| insert_origin enum {AUTO, HUBSTORE, MAILING, MANUAL} | NÃO | Flag para identificar a origem da inclusão do telefone: * AUTO: Inclusão automática através de um novo atendimento receptivo; * HUBSTORE: Incluído através de um atendimento oriundo do HubStore; * MAILING: Incluído através de uma importação de arquivo de mailing; * MANUAL: Incluído manualmente por um usuário através de interface do sistema; |
| inserted_by int | NÃO | Identificador interno do usuário responsável pela inclusão do telefone; |
| country_code string | NÃO | DDI do telefone; |
| country_iso2 string | NÃO | Código ISO2 do país correspondente ao DDI; |
| full_number string | NÃO | Número completo do telefone (DDD+Número); |
| full_number_cc string | NÃO | Número completo do telefone com o DDI (DDI+DDD+Número); |
Exemplo de payload
{
"id": 70994,
"customer_id": 144527,
"area_code": "51",
"number": "999887766",
"type": "m",
"level_id": "N",
"has_sms": false,
"has_whatsapp": false,
"has_whatsapp_api": false,
"wa_is_business": false,
"wa_is_enterprise": false,
"wa_contact_name": null,
"wa_pushname": null,
"wa_verified_level": null,
"wa_verified_name": null,
"wa_profile_picture": null,
"session_expires_at": null,
"insert_origin": "MAILING",
"inserted_by": 127,
"country_code": "55",
"country_iso2": "br",
"full_number": "51999887766",
"full_number_cc": "+55 51999887766"
}
