cnpjpath · stringRequiredContracting company's CNPJ (with or without punctuation).
Constraints
{
"type": "string"
}Parameters, data structure and responses from the versioned contract.
/fiscal/cte-subcontratacao/autorizacoes/{cnpj}Technical descriptions are translated from the versioned contract. Original identifiers and JSON are preserved; data examples are omitted.
Immediately revokes access: the contracting carrier's next batch with subcontratada.cnpj returns 403 emissao_nao_autorizada. Existing batches are unchanged. The revoked record is retained for audit.
[
{
"oauth2": []
},
{
"chaveApi": []
}
]cnpjpath · stringRequiredContracting company's CNPJ (with or without punctuation).
{
"type": "string"
}200 HTTP ResponseAuthorization revoked.
application/json403 HTTP ResponseFiscal scope disabled for the key, or no active carrier associated with the key.
X-Request-IdCall correlation identifier.
404 HTTP Responseautorizacao_nao_encontrada — no active authorization exists for this contracting carrier.
429 HTTP ResponsePer-carrier limit exceeded.
X-Request-IdCall correlation identifier.
Retry-AfterSeconds until another attempt.
500 HTTP ResponseInternal failure without operational integration details.
X-Request-IdCall correlation identifier.
{
"tags": [
"CT-e de subcontratação"
],
"summary": "Revogar a autorização de uma contratante",
"operationId": "revokeEmissionGrant",
"description": "Fecha a porta na hora: o próximo lote da contratante com `subcontratada.cnpj` responde\n`403 emissao_nao_autorizada`. Lotes já criados não mudam. A linha revogada fica para auditoria.\n",
"parameters": [
{
"name": "cnpj",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "CNPJ da contratante (com ou sem pontuação)."
}
],
"responses": {
"200": {
"description": "Autorização revogada.",
"content": {
"application/json": {}
}
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"description": "`autorizacao_nao_encontrada` — não há autorização ativa para essa contratante."
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
},
"method": "DELETE",
"path": "/fiscal/cte-subcontratacao/autorizacoes/{cnpj}"
}