ruleIdpath · integerRequiredInteger rule ID, returned on creation and in listings.
Constraints
{
"type": "integer",
"minimum": 1
}Parameters, data structure and responses from the versioned contract.
/fiscal/regras-tributacao/{ruleId}Technical descriptions are translated from the versioned contract. Original identifiers and JSON are preserved; data examples are omitted.
Deletes a rule belonging to the authenticated carrier. A nonexistent rule or a rule belonging to another carrier returns 404 regra_nao_encontrada — the gateway never uses 403 to confirm the existence of a resource that does not belong to the credential.
[
{
"oauth2": []
},
{
"chaveApi": []
}
]ruleIdpath · integerRequiredInteger rule ID, returned on creation and in listings.
{
"type": "integer",
"minimum": 1
}200 HTTP ResponseRule removed.
application/jsondataobjectRequiredenvironmentobjectRequiredX-Request-IdCall correlation identifier.
401 HTTP ResponseFleetPay API key missing or invalid.
X-Request-IdCall correlation identifier.
403 HTTP ResponseFiscal scope disabled for the key, or no active carrier associated with the key.
X-Request-IdCall correlation identifier.
404 HTTP Responseregra_nao_encontrada — the rule does not exist or belongs to another carrier. Both cases deliberately return the same response.
X-Request-IdCall correlation identifier.
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": [
"Regras de tributação"
],
"summary": "Remover regra de tributação",
"operationId": "deleteFiscalTaxRule",
"description": "Remove uma regra da transportadora autenticada. Regra inexistente ou regra de outra\ntransportadora respondem `404 regra_nao_encontrada` — o gateway nunca confirma por `403`\naquilo que não pertence à credencial.\n",
"parameters": [
{
"name": "ruleId",
"in": "path",
"required": true,
"description": "ID inteiro da regra, devolvido na criação e na listagem.",
"schema": {
"type": "integer",
"minimum": 1
}
}
],
"responses": {
"200": {
"$ref": "#/components/responses/FiscalTaxRuleDeleted"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/FiscalTaxRuleNotFound"
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
},
"method": "DELETE",
"path": "/fiscal/regras-tributacao/{ruleId}"
}