{
"url": "https://meu-sistema.com/webhooks/boh",
"events": ["inventory_transaction.completed"],
"secret": "meu_segredo_webhook"
}
{
"id": "wep_01j5k...",
"url": "https://meu-sistema.com/webhooks/boh",
"events": ["inventory_transaction.completed"],
"status": "ACTIVE"
}
Webhooks
Criar webhook
Registra um novo endpoint webhook para receber notificações de eventos.
POST
/
api
/
v1
/
public
/
admin
/
webhooks
{
"url": "https://meu-sistema.com/webhooks/boh",
"events": ["inventory_transaction.completed"],
"secret": "meu_segredo_webhook"
}
{
"id": "wep_01j5k...",
"url": "https://meu-sistema.com/webhooks/boh",
"events": ["inventory_transaction.completed"],
"status": "ACTIVE"
}
string
obrigatório
API key do BOH com escopo
admin:webhooks.string
obrigatório
URL HTTPS de destino.
string[]
obrigatório
Array de tipos de evento a subscrever. Use
["*"] para todos.string
Segredo para assinar os payloads (recomendado).
{
"url": "https://meu-sistema.com/webhooks/boh",
"events": ["inventory_transaction.completed"],
"secret": "meu_segredo_webhook"
}
{
"id": "wep_01j5k...",
"url": "https://meu-sistema.com/webhooks/boh",
"events": ["inventory_transaction.completed"],
"status": "ACTIVE"
}

