FatoriPay
  1. Webhooks & Gatilhos
FatoriPay
  • Autenticação
    • Renovar Token
      POST
    • Login
      POST
  • Fatura
    • Criar Fatura
      POST
    • Criar Fatura com Captura
      POST
    • Capturar Fatura para Boleto
      POST
    • Capturar Fatura para Pix
      POST
    • Capturar Fatura para Cartão de Crédito
      POST
    • Consultar Faturas
      GET
    • Consultar Faturas por ID
      GET
    • Estornar Fatura
      POST
    • Atualizar Fatura
      PATCH
    • Cancelar Fatura
      POST
  • Clientes
    • Criar Cliente
      POST
    • Buscar Clientes
      GET
    • Consultar Clientes por ID
      GET
    • Atualizar Cliente
      PATCH
  • Merchant
    • Métodos de Pagamento Habilitados
      GET
  • Produtos
    • Criar Produtos
      POST
    • Buscar Produtos
      GET
  • Webhooks & Gatilhos
    • Criar Gatilho
      POST
    • Consultar Gatilhos
      GET
    • Remover Webhook
      DELETE
  • Utilidades
    • Consultar Parcelas do Cartão
      GET
    • Consultar Taxas
      GET
  • Login Admin Copy
    POST
  • Create Merchant Copy
    POST
  1. Webhooks & Gatilhos

Criar Gatilho

POST
http://{{app_url}}/api/v1/triggers/create
As ações disponíveis para o cadastro de uma URL de retorno são:
invoice_created
invoice_status_changed
payment_received

Requisição

Authorization
Forneça seu token bearer no cabeçalho
Authorization
ao fazer requisições para recursos protegidos.
Exemplo:
Authorization: Bearer ********************
Parâmetros Bodyapplication/json
name
string 
requerido
action
string 
requerido
notification_url
string 
requerido
Exemplo
{
  "name": "gatilho1",
  "action": "invoice_created",
  "notification_url": "https://localhost"
}

Exemplos de Requisição

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://{{app_url}}/api/v1/triggers/create' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "gatilho1",
    "action": "invoice_created",
    "notification_url": "https://localhost"
}'

Respostas

🟢200Criar Gatilho
text/plain
Body
object {0}
Exemplo
{
    "id": "203b412d-37da-40fc-b6dc-dbb2ed443638",
}
Página anterior
Buscar Produtos
Próxima página
Consultar Gatilhos
Built with