Objeto cliente [customer]

< Voltar para as definições do objeto principal [talk].

Definição dos campos do objeto "customer":

CamposNullableDescrição
id
int
NÃOIdentificador interno do cliente;
name
string
NÃONome do cliente;
external_id
string
SIMIdentificador externo do cliente;
document_number
string
SIMNúmero do documento do cliente;
wildcard_01
string
SIMCAMPO DEPRECIADO
wildcard_02
string
SIMCAMPO DEPRECIADO
wildcard_03
string
SIMCAMPO DEPRECIADO
wildcard_04
string
SIMCAMPO DEPRECIADO
wildcard_05
string
SIMCAMPO DEPRECIADO
wildcard_06
string
SIMCAMPO DEPRECIADO
wildcard_07
string
SIMCAMPO DEPRECIADO
wildcard_08
string
SIMCAMPO DEPRECIADO
wildcard_09
string
SIMCAMPO DEPRECIADO
wildcard_10
string
SIMCAMPO DEPRECIADO
created_at
datetime
NÃOData/hora da criação do cliente;
main_sms
int
SIMIdentificador interno do número de SMS prioritário;
main_whatsapp
int
SIMIdentificador interno do número de WhatsApp prioritário;
main_email
int
SIMIdentificador interno do endereço de e-mail prioritário;
agent_id
int
SIMIdentificador interno do agente ao qual o cliente está fidelizado;
queue_id
int
SIMIdentificador interno da fila de atendimento à qual o cliente está fidelizado;
profile_picture_url
string
SIMCAMPO DEPRECIADO
is_priority
bool
NÃOFlag para identificar se o cliente é prioritário ou não;
last_base_api
string
SIMIdentificador da base da integração do cliente no último atendimento iniciado;
OBS: Esta informação está disponível apenas para contas que possuem integração com ERP's com a funcionalidade de multi-bases;
customer_organization_id
int
SIMIdentificador interno da organização à qual o cliente pertence;
crmv_user_id
int
SIMCAMPO DEPRECIADO
crmv_person_id
int
SIMCAMPO DEPRECIADO
is_active
bool
NÃOCAMPO DEPRECIADO
cxm_user_id
int
SIMCAMPO DEPRECIADO
profile_info
<Object profileInfo>
SIMDados do perfil do cliente;
custom_fields
list <Object customerCustomField>
SIMLista de campos customizados;
telephones
list <Object customerTelephone>
SIMLista de telefones do cliente;
emails
list <Object customerEmail>
SIMLista de e-mails do cliente;

Exemplo de payload

{
    "id": 144527,
    "name": "JONAS",
    "external_id": "95238935",
    "document_number": "",
    "wildcard_01": "",
    "wildcard_02": "",
    "wildcard_03": "",
    "wildcard_04": "",
    "wildcard_05": "",
    "wildcard_06": "",
    "wildcard_07": "",
    "wildcard_08": "",
    "wildcard_09": "",
    "wildcard_10": "",
    "created_at": "2023-09-21T12: 28: 45.000000Z",
    "main_sms": 44290,
    "main_whatsapp": 44290,
    "main_email": 25396,
    "agent_id": null,
    "queue_id": null,
    "customer_group_id": null,
    "profile_picture_url": null,
    "is_priority": false,
    "last_base_api": null,
    "customer_organization_id": 15662,
    "crmv_user_id": 65886,
    "crmv_person_id": 9523893,
    "is_active": true,
    "cxm_user_id": null,
    "profile_info": {
        "name": "Jonas Schen",
        "username": "j.schen",
        "profile_pic": "https: //scontent-gru1-2.cdninstagram.com/v/t51.2885-19/136402463_253976186149719_5865312005602673050_n.jpg?stp=dst-jpg_s206x206_tt6&_nc_cat=100&ccb=1-7&_nc_sid=bf7eb4&_nc_eui2=AeHYN5VZiIc-sNtHGCgs4254feyGsovGEtd97Iayi8YS108vxDsrXCu3TL9YLx0Gt0ajlYNuFFeStw7XimoOCt8c&_nc_ohc=ZvuS5PnxbuIQ7kNvwEFvYu8&_nc_oc=Adkmlu7T1RN2lcleakngSeC_fbAhYLw5m6KANJ33KMsM1KnrjaOstylyzRgEtOt1fcc&_nc_zt=24&_nc_ht=scontent-gru1-2.cdninstagram.com&edm=ALmAK4EEAAAA&oh=00_AfSiRcadzk9IDd3dKCgN1WnE9_6TvlAdGfsDeZrsdNBMrw&oe=687F1E0E",
        "is_verified_user": false,
        "follower_count": 219,
        "is_user_follow_business": true,
        "is_business_follow_user": false,
        "id": "8215422678527800"
    },
    "custom_fields": {
        "Empresa": "Piperun",
        "Web Whatsapp - Pessoa": "(51) 99999-8888",
        "Nacionalidade": "Brasileira"
    },
    "telephones": [
        {
            "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"
        }
    ],
    "emails": [
        {
            "id": 49543,
            "customer_id": 144527,
            "email": "[email protected]",
            "level_id": "N",
            "insert_origin": "AUTO",
            "inserted_by": 2,
            "unsubscribed_at": null
        }
    ]
}

< Voltar para as definições do objeto principal [talk].