TratowAPI
API aberta · Agenda

Configurações da agenda

get/api/open/v1/agenda/settings

Em resumo

  • GET /api/open/v1/agenda/settings
  • 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
  • slotMinutesintegerobrigatório

    Intervalo entre os horários da agenda, em minutos.

    -9007199254740991 a 9007199254740991

  • initialStatusenum<string>obrigatório

    Valores aceitos:pendingconfirmed

  • onlyBusinessHoursbooleanobrigatório
  • patEnabledbooleanobrigatóriopadrão: false
  • selfServiceEnabledbooleanobrigatóriopadrão: false
  • reminderFirstMinutesintegerpode ser nuloobrigatório

    5 a 10080

  • reminderSecondMinutesintegerpode ser nuloobrigatório

    5 a 10080

  • reminderThirdMinutesintegerpode ser nuloobrigatório

    5 a 10080

  • checkoutWholeDaybooleanobrigatóriopadrão: false
curl --request GET \  --url 'https://qa-tratow.ips.app.br/api/open/v1/agenda/settings' \  --header 'Authorization: Bearer <chave>'
Resposta
{  "slotMinutes": 1,  "initialStatus": "pending",  "onlyBusinessHours": true,  "patEnabled": false,  "selfServiceEnabled": false,  "reminderFirstMinutes": 5,  "reminderSecondMinutes": 5,  "reminderThirdMinutes": 5,  "checkoutWholeDay": false}

Os valores são ilustrativos.