Desativar cliente
/api/open/v1/clients/{id}/deactivateEm resumo
POST /api/open/v1/clients/{id}/deactivate- Precisa de chave
read_write. - Obrigatórios:
id. - Sucesso:
200.
AuthorizationstringheaderobrigatórioChave de API no formato Bearer ttw_live_<prefixo>_<segredo>, criada em Integrações → Chaves de API. Este endpoint precisa de chave read_write.
idstringobrigatórioId do registro (UUID).
Resposta 200
application/jsonidstring<uuid>obrigatórioIdentificador único (UUID).
namestringobrigatórioNome.
phoneMobilestringobrigatórioCelular com DDD (só dígitos; aceita +55). Único entre os clientes ativos.
phoneOtherstringpode ser nuloobrigatórioOutro telefone com DDD.
phoneOtherTypeenum<string>pode ser nuloobrigatórioValores aceitos:
mobilewhatsapphomeworkmessageotheremailstringpode ser nuloobrigatórioE-mail.
emailAltstringpode ser nuloobrigatóriopadrão: nullE-mail alternativo.
birthDatestringpode ser nuloobrigatórioData de nascimento (AAAA-MM-DD). Sem ano conhecido, use 1900.
notesstringpode ser nuloobrigatórioObservações livres.
hasAccountbooleanobrigatóriopadrão: falseIndica se conta.
createdAtstring<date-time>obrigatórioData e hora em que foi criado (ISO 8601, UTC).
cpfstringpode ser nuloobrigatóriopadrão: nullCPF (11 dígitos, sem pontuação).
cnpjstringpode ser nuloobrigatóriopadrão: nullCNPJ (14 dígitos, sem pontuação).
genderenum<string>pode ser nuloobrigatórioGênero.
Valores aceitos:
femalemaleotheraddressobjectobrigatóriopadrão: {"zipCode":null,"street":null,"number":null,"complement":null,"district":null,"city":null,"state":null}Endereço.
Mostrar 7 atributosEsconder atributos
zipCodestringpode ser nuloobrigatórioCEP (8 dígitos).
streetstringpode ser nuloobrigatórioLogradouro.
numberstringpode ser nuloobrigatórioNúmero.
complementstringpode ser nuloobrigatórioComplemento.
districtstringpode ser nuloobrigatórioBairro.
citystringpode ser nuloobrigatórioCidade.
statestringpode ser nuloobrigatórioUF (2 letras).
instagramstringpode ser nuloobrigatóriopadrão: nullUsuário ou URL do Instagram.
acquisitionChannelIdstring<uuid>pode ser nuloobrigatórioId de captação canal (UUID).
communicationobjectobrigatóriopadrão: {"reminders":true,"marketing":false,"emailReminders":true,"emailMarketing":false}Mostrar 4 atributosEsconder atributos
remindersbooleanobrigatóriomarketingbooleanobrigatórioemailRemindersbooleanobrigatórioemailMarketingbooleanobrigatório
activebooleanobrigatóriopadrão: trueAtivo (`true`) ou inativo (`false`). Inativos somem das buscas e da agenda.
anonymizedAtstring<date-time>pode ser nuloobrigatórioData e hora em que foi anonymized (ISO 8601, UTC).
tagsobject[]obrigatóriopadrão: []Etiquetas.
Mostrar 3 atributosEsconder atributos
idstring<uuid>obrigatórioIdentificador único (UUID).
namestringobrigatórioNome.
colorstringobrigatórioCor em hexadecimal (#RRGGBB).
contactsHiddenbooleanobrigatóriopadrão: falsephotoUrlstringpode ser nuloobrigatóriopadrão: nullURL assinada da foto (expira; não guarde).
curl --request POST \
--url 'https://qa-tratow.ips.app.br/api/open/v1/clients/{id}/deactivate' \
--header 'Authorization: Bearer <chave>'{
"id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"name": "Maria Lima",
"phoneMobile": "11987654321",
"phoneOther": "1133334444",
"phoneOtherType": "mobile",
"email": "texto",
"emailAlt": null,
"birthDate": "2026-11-03",
"notes": "Prefere atendimento pela manhã.",
"hasAccount": false,
"createdAt": "2026-11-03T17:30:00.000Z",
"cpf": null,
"cnpj": null,
"gender": "female",
"address": {
"zipCode": null,
"street": null,
"number": null,
"complement": null,
"district": null,
"city": null,
"state": null
},
"instagram": null,
"acquisitionChannelId": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"communication": {
"reminders": true,
"marketing": false,
"emailReminders": true,
"emailMarketing": false
},
"active": true,
"anonymizedAt": "2026-11-03T17:30:00.000Z",
"tags": [],
"contactsHidden": false,
"photoUrl": null
}Os valores são ilustrativos.
