Criar Gatilho

Cria um gatilho

post/web_hooks

Request

  • Base URL
    https://api.iugu.com/v1
  • URL
    https://api.iugu.com/v1/web_hooks
  • Auth
    API key in query parameter api_token

Request body

eventstring required

Nome do evento desejado. Acesse a lista com todos os eventos e descrição aqui.

urlstring required

Endpoint para qual o gatilho será enviado

authorizationstring

Grave uma chave / key para usar como "Basic Authentication" na validação do recebimento dos gatilhos.

Response

200

idstring
urlstring
authorizationunknown
eventstring
activeboolean

Example response

{
  "id": "C79D36E7B6E74150B28F6CCA2EAC7707",
  "url": "https://dev.iugu.com/reference/criar-gatilho",
  "event": "invoice.created",
  "active": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.