TratowAPI
API aberta · Estabelecimentos

Dados do estabelecimento

get/api/open/v1/establishments/current

Em resumo

  • GET /api/open/v1/establishments/current
  • Chave read ou read_write.
  • Sucesso: 200.
  • Authorizationstringheaderobrigatório

    Chave 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/json
  • idstring<uuid>obrigatório

    Identificador único (UUID).

  • namestringobrigatório

    Nome.

  • slugstringobrigatório

    Endereço curto usado na URL do site (letras minúsculas, números e hífen).

  • typeenum<string>obrigatório

    Tipo. Os valores aceitos estão no tipo.

    Valores aceitos:salonbarbershopnail_salonaesthetic_clinicspapodiatryother

  • timezonestringobrigatório

    Fuso horário IANA do estabelecimento (ex.: America/Sao_Paulo).

  • phonestringpode ser nuloobrigatório

    Telefone com DDD (só dígitos; aceita +55).

  • logostringpode ser nuloobrigatório
  • logoUrlstringpode ser nuloobrigatóriopadrão: null

    URL assinada da logo (expira; não guarde).

  • currencyenum<string>obrigatóriopadrão: "BRL"

    Valores aceitos:BRLUSDEUR

  • createdAtstring<date-time>obrigatório

    Data e hora em que foi criado (ISO 8601, UTC).

curl --request GET \  --url 'https://qa-tratow.ips.app.br/api/open/v1/establishments/current' \  --header 'Authorization: Bearer <chave>'
Resposta
{  "id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",  "name": "Maria Lima",  "slug": "studio-exemplo",  "type": "salon",  "timezone": "America/Sao_Paulo",  "phone": "11987654321",  "logo": "texto",  "logoUrl": null,  "currency": "BRL",  "createdAt": "2026-11-03T17:30:00.000Z"}

Os valores são ilustrativos.