-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Estou tentando registrar um novo webhook via API (v5), porem sempre tomo erro. Eu preciso criar o webhook via API porque o sistema e um SaaS onde os clientes adicionam suas proprias chaves e monitoramos as transacoes.
request:
const createHook = await fetch('https://api.pagar.me/core/v5/hooks', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Basic ${secret}`,
},
body: JSON.stringify({
url: 'https://xyz.com.br/api/webhook',
events: ['order.paid'],
secret: '123'
}),
})
response:
{
error: {
code: 'UnsupportedApiVersion',
message: "The requested resource with API version '5' does not support HTTP method 'POST'."
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels