Configurar webhook
Webhooks Config
Configurar webhook
Requer Bearer JWT. URL HTTPS + lista de eventos (1-5) + secret opcional para assinatura HMAC. Se secret for omitido, o NTX Pay gera um automaticamente e retorna na resposta — guarde com segurança.
POST
Configurar webhook
Autorizações
JWT obtido em POST /api/auth/token
Corpo
application/json
URL HTTPS que receberá os webhooks
Exemplo:
"https://example.com/webhooks/mx"
Required array length:
1 - 5 elementsOpções disponíveis:
cash_in, cash_out, refund_in, refund_out, internal_transfer Exemplo:
["cash_in", "cash_out"]Secret HMAC para assinatura. Se omitido, o NTX Pay gera automaticamente.
Required string length:
8 - 128Exemplo:
"whsec_abc123"