---
title: "Webhook handle"
method: POST
path: "/api/v1/webhooks/billing/{gateway}"
tags: ["webhooks"]
---

# Webhook handle

`POST /api/v1/webhooks/billing/{gateway}`

## Request

- Base URL: `https://www.foxnfe.com.br`
- URL: `https://www.foxnfe.com.br/api/v1/webhooks/billing/{gateway}`
- Auth: none declared. Required headers: `Stripe-Signature`

Recebe webhook público de cobrança. A assinatura é verificada antes de qualquer persistência. O único gateway aceito atualmente é Stripe.

## Path parameters

- `gateway` 'stripe', required

## Headers

- `Stripe-Signature` string, required

## Request body

- object: Evento bruto do gateway; o formato varia conforme o tipo de evento Stripe.

## Response `200`

Evento verificado e processado.

## Other responses

- `400`: Gateway desconhecido.
- `401`: Assinatura ausente ou inválida.
- `429`: Limite de requisições excedido.
- `500`: Falha interna ao processar o evento já verificado.

---

[API](https://skmtc.dev/foxnfe/apis/fox-nf-e-api.md) · [All operations](https://skmtc.dev/foxnfe/apis/fox-nf-e-api/llms.txt) · [OpenAPI document](https://skmtc.dev/foxnfe/apis/fox-nf-e-api/revisions/8820a6e016b0?raw)
