Detalhes do estabelecimento (site, contato)
/api/open/v1/establishments/current/detailsEm resumo
GET /api/open/v1/establishments/current/details- Chave
readouread_write. - 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 ou read_write.
Resposta 200
application/jsonslugstringobrigatórioEndereço curto usado na URL do site (letras minúsculas, números e hífen).
namestringobrigatórioNome.
legalNamestringpode ser nuloobrigatórioNome de legal (só leitura).
cnpjstringpode ser nuloobrigatórioCNPJ (14 dígitos, sem pontuação).
stateRegistrationstringpode ser nuloobrigatóriostateRegistrationExemptbooleanobrigatóriomunicipalRegistrationstringpode ser nuloobrigatóriomunicipalRegistrationExemptbooleanobrigatóriocontactEmailstringpode ser nuloobrigatóriophonesobject[]obrigatórioTelefones de contato.
Mostrar 2 atributosEsconder atributos
typeenum<string>obrigatórioTipo. Os valores aceitos estão no tipo.
Valores aceitos:
mobilelandlinewhatsapphomemessageothernumberstringobrigatórioNúmero.
typeenum<string>obrigatórioTipo. Os valores aceitos estão no tipo.
Valores aceitos:
salonbarbershopnail_salonaesthetic_clinicspapodiatryotherbusinessSizeenum<string>pode ser nuloobrigatórioValores aceitos:
singlebranchfranchiseothertimezonestringobrigatórioFuso horário IANA do estabelecimento (ex.: America/Sao_Paulo).
currencyenum<string>obrigatóriopadrão: "BRL"Valores aceitos:
BRLUSDEURpostalCodestringpode 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).
showFullAddressbooleanobrigatórioMostra full address.
aboutstringpode ser nuloobrigatóriospecialInstructionsstringpode ser nuloobrigatóriocancellationPolicystringpode ser nuloobrigatórioparkingenum<string>pode ser nuloobrigatórioValores aceitos:
freepaidnonehasSnackBarbooleanobrigatórioIndica se snack bar.
hasTvbooleanobrigatórioIndica se tv.
hasWifibooleanobrigatórioIndica se wifi.
accessiblebooleanobrigatóriochildrenPolicyenum<string>pode ser nuloobrigatórioValores aceitos:
adults_and_childrenchildren_onlyno_childrenlanguagesenum<string>[]obrigatórioValores aceitos:
ptenesotherLanguagestringpode ser nuloobrigatóriowebsitestringpode ser nuloobrigatórioSite.
ecommerceUrlstringpode ser nuloobrigatórioEndereço de ecommerce (URL).
facebookstringpode ser nuloobrigatórioURL do Facebook.
instagramstringpode ser nuloobrigatórioUsuário ou URL do Instagram.
curl --request GET \
--url 'https://qa-tratow.ips.app.br/api/open/v1/establishments/current/details' \
--header 'Authorization: Bearer <chave>'{
"slug": "studio-exemplo",
"name": "Maria Lima",
"legalName": "texto",
"cnpj": "texto",
"stateRegistration": "texto",
"stateRegistrationExempt": true,
"municipalRegistration": "texto",
"municipalRegistrationExempt": true,
"contactEmail": "texto",
"phones": [
{
"type": "mobile",
"number": "texto"
}
],
"type": "salon",
"businessSize": "single",
"timezone": "America/Sao_Paulo",
"currency": "BRL",
"postalCode": "01310100",
"street": "texto",
"number": "texto",
"complement": "texto",
"district": "texto",
"city": "São Paulo",
"state": "SP",
"showFullAddress": true,
"about": "texto",
"specialInstructions": "texto",
"cancellationPolicy": "texto",
"parking": "free",
"hasSnackBar": true,
"hasTv": true,
"hasWifi": true,
"accessible": true,
"childrenPolicy": "adults_and_children",
"languages": [
"pt"
],
"otherLanguage": "texto",
"website": "texto",
"ecommerceUrl": "texto",
"facebook": "texto",
"instagram": "texto"
}Os valores são ilustrativos.
