> ## Documentation Index
> Fetch the complete documentation index at: https://docs.woovpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Criar cobrança

> Cria uma cobrança Pix e devolve o QR Code.

> [!WARNING]
>
> A API está em construção. Rotas, campos e eventos desta página são ilustrativos e podem mudar até o lançamento.

**Authorization** `string` *required*

`Bearer SUA_CHAVE`

**amount** `integer` *required*

Valor em centavos. `4990` é R\$ 49,90.

**method** `string` *required*

Meio de pagamento. Use `pix`.

**description** `string`

Texto que identifica a cobrança, como o número do pedido.

**webhook\_url** `string`

URL que recebe os eventos desta cobrança.

**id** `string`

ID da cobrança.

**status** `string`

`pending` ao criar.

**amount** `integer`

Valor em centavos.

**pix** `object`

**campos**

**qr\_code** `string`

Pix copia e cola. Use também para gerar o QR Code.

**expires\_in** `integer`

Segundos até expirar.

```bash cURL theme={null}
curl -X POST https://api.woovpay.com/v1/charges \
  -H "Authorization: Bearer $WOOVPAY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount": 4990, "method": "pix", "description": "Pedido #1042"}'
```

```json 200 theme={null}
{
  "id": "ch_7Fq2kM9xLp",
  "status": "pending",
  "amount": 4990,
  "pix": { "qr_code": "00020126...", "expires_in": 3600 }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.