Autorizar BP-e (bpeRecepcao)
bpe_autorizarSubmits a BP-e XML for SEFAZ authorization by validating and signing the document, compressing it with GZip+Base64, and sending it; blocks after 30 identical rejections.
Instructions
Envia um BP-e para autorização: minifica, verifica forma do XML (namespace, prefixos, espaços, UTF-8, 1024 KB), assina (se houver certificado), compacta em GZip+Base64 e envia. Um BP-e por requisição. Bloqueia após 30 rejeições iguais (CI01).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"xml": "<xml>"
},
"name": "bpe_autorizar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | XML do BP-e (<BPe xmlns="http://www.portalfiscal.inf.br/bpe"><infBPe Id="BPe...">...) | |
| assinar | No |