Criar cobranca
criar_cobrancaReserves an exclusive address/QR to buy your access with USDC on Base. Check GET /geracao and send cotacao. Each buyer pays, even when the text is ready. The service confirms USDC in the safe block of Base; safe waits for the inclusion on L1, without absolute finality. Send within 30 min; observation for 24 h. A late payment, a wrong network/currency or a failed extraction requires support. A wallet/exchange can charge a fee. The same X-Cobranca keeps the charge/address. A paid GET returns acesso.codigo and a cookie; to keep it in the account, POST /api/documento/:id/vincular with this code (the site does this by itself for signed-in people). The simulated payment of the development environment is not valid for a deposit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Positive document ID. | |
| cotacao | Yes | Quote received in GET /geracao: paginas, source_sha256 and preco_total_usd. | |
| cobranca_token | Yes | 32 random bytes in 64 lowercase hex characters. Generate and keep it before the POST; reuse it in the GET and in retries. Secret for access to your charge. |