Skip to main content
POST
/
webhooks
Cadastrar webhook
curl --request POST \
  --url https://api-vendas.taximachine.com.br/api/v2/integracao/webhooks \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "tipo": "<string>",
  "url": "<string>",
  "responsavel": "<string>"
}
'
{
  "success": true,
  "data": {
    "mensagem": "Webhook criado com sucesso"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

api-key
string
header
required

Obrigatório. Sua chave API.

Body

application/json
tipo
string
required

Indica o tipo de webhook. Valores aceitos: posicao ou status

url
string
required

Indica a URL que receberá o evento

responsavel
string
required

Obrigatório se o usuário autenticado não for de "empresa". Define quem é o responsável pelo evento. Valores aceitos: solicitante ou corrida. IMPORTANTE: para usuários "empresa", a responsabilidade será definida automaticamente.

Response

200 - application/json

Sucesso

The response is of type object.