TratowAPI
API aberta · Checkout: comandas

Próximo número de comanda

get/api/open/v1/tabs/next-number

Em resumo

  • GET /api/open/v1/tabs/next-number
  • 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
  • numberintegerobrigatório

    Número.

    -9007199254740991 a 9007199254740991

curl --request GET \  --url 'https://qa-tratow.ips.app.br/api/open/v1/tabs/next-number' \  --header 'Authorization: Bearer <chave>'
Resposta
{  "number": 1}

Os valores são ilustrativos.