{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brasilnfe-com-br/json-schema/brasilnfe-com-br-post-services-fiscal-enviarnotafiscalservico-request-schema.json",
  "title": "PostServicesFiscalEnviarnotafiscalservicoRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/brasilnfe-com-br-openapi-generated.yml#/components/schemas/PostServicesFiscalEnviarnotafiscalservicoRequest",
  "type": "object",
  "properties": {
    "TipoAmbiente": {
      "type": "integer"
    },
    "Lote": {
      "type": "integer"
    },
    "nFSInfo": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "SerieRps": {
            "type": "string"
          },
          "NumeroRps": {
            "type": "integer"
          },
          "IdentificadorInterno": {
            "type": "string"
          },
          "EnviarEmail": {
            "type": "boolean"
          },
          "DataCompetencia": {
            "type": "string",
            "format": "date"
          },
          "DataEmissao": {
            "type": "string",
            "format": "date"
          },
          "Tomador": {
            "type": "object",
            "properties": {
              "CpfCnpj": {
                "type": "string"
              },
              "NmTomador": {
                "type": "string"
              },
              "Im": {
                "type": "string"
              },
              "Endereco": {
                "type": "object",
                "properties": {
                  "Cep": {
                    "type": "string"
                  },
                  "Logradouro": {
                    "type": "string"
                  },
                  "Complemento": {
                    "type": "string"
                  },
                  "Numero": {
                    "type": "string"
                  },
                  "Bairro": {
                    "type": "string"
                  },
                  "CodMunicipio": {
                    "type": "string"
                  },
                  "Municipio": {
                    "type": "string"
                  },
                  "Uf": {
                    "type": "string"
                  },
                  "CodPais": {
                    "type": "integer"
                  },
                  "Pais": {
                    "type": "string"
                  }
                }
              },
              "Contato": {
                "type": "object",
                "properties": {
                  "Telefone": {
                    "type": "string"
                  },
                  "Email": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "Intermediario": {
            "type": "object",
            "properties": {
              "RzSocial": {
                "type": "string"
              },
              "CPFCNPJ": {
                "type": "string"
              },
              "InscricaoMunicipal": {
                "type": "string"
              }
            }
          },
          "ConstrucaoCivil": {
            "type": "object",
            "properties": {
              "CodObra": {
                "type": "string"
              },
              "Art": {
                "type": "string"
              },
              "Cib": {
                "type": "string"
              },
              "InscricaoImobiliaria": {
                "type": "string"
              },
              "EnderecoObra": {
                "type": "object",
                "properties": {
                  "Cep": {
                    "type": "string"
                  },
                  "Logradouro": {
                    "type": "string"
                  },
                  "Complemento": {
                    "type": "string"
                  },
                  "Numero": {
                    "type": "string"
                  },
                  "Bairro": {
                    "type": "string"
                  },
                  "CodMunicipio": {
                    "type": "string"
                  },
                  "Municipio": {
                    "type": "string"
                  },
                  "Uf": {
                    "type": "string"
                  },
                  "CodPais": {
                    "type": "integer"
                  },
                  "Pais": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "Servico": {
            "type": "object",
            "properties": {
              "Descricao": {
                "type": "string"
              },
              "InformacoesComplementares": {
                "type": "string"
              },
              "DocumentoReferencia": {
                "type": "string"
              },
              "NumeroPedido": {
                "type": "string"
              },
              "ItemListaServico": {
                "type": "string"
              },
              "CodTributacaoMunicipio": {
                "type": "string"
              },
              "CodNBS": {
                "type": "string"
              },
              "CodigoCnae": {
                "type": "string"
              },
              "RegimeEspecialTributacao": {
                "type": "integer"
              },
              "NaturezaOperacao": {
                "type": "integer"
              },
              "IncentivadorCultural": {
                "type": "boolean"
              },
              "IncentivoFiscal": {
                "type": "boolean"
              },
              "IssRetido": {
                "type": "boolean"
              },
              "ExigibilidadeISS": {
                "type": "integer"
              },
              "CodMunicipioIncidencia": {
                "type": "string"
              },
              "CodMunicipioPrestacao": {
                "type": "string"
              },
              "Valores": {
                "type": "object",
                "properties": {
                  "ValorServico": {
                    "type": "number"
                  },
                  "ValorInss": {
                    "type": "integer"
                  },
                  "Aliquota": {
                    "type": "integer"
                  },
                  "AliquotaSimplesNacional": {
                    "type": "integer"
                  },
                  "DescontoCondicionado": {
                    "type": "integer"
                  },
                  "DescontoIncondicionado": {
                    "type": "integer"
                  },
                  "OutrasRetencoes": {
                    "type": "integer"
                  },
                  "ValorDeducoes": {
                    "type": "integer"
                  },
                  "TotalTributos": {
                    "type": "integer"
                  },
                  "AliquotaIr": {
                    "type": "number"
                  }
                }
              },
              "IBSCBS": {
                "type": "object",
                "properties": {
                  "CodClassTrib": {
                    "type": "string"
                  },
                  "CodIndicadorOperacao": {
                    "type": "string"
                  },
                  "EnderecoImovel": {
                    "type": "object",
                    "properties": {
                      "Cep": {
                        "type": "string"
                      },
                      "Logradouro": {
                        "type": "string"
                      },
                      "Complemento": {
                        "type": "string"
                      },
                      "Numero": {
                        "type": "string"
                      },
                      "Bairro": {
                        "type": "string"
                      },
                      "CodMunicipio": {
                        "type": "string"
                      },
                      "Municipio": {
                        "type": "string"
                      },
                      "Uf": {
                        "type": "string"
                      },
                      "CodPais": {
                        "type": "integer"
                      },
                      "Pais": {
                        "type": "string"
                      }
                    }
                  },
                  "InscricaoImobiliariaImovel": {
                    "type": "string"
                  },
                  "IndicadorUsoFinal": {
                    "type": "integer"
                  },
                  "IndicadorDestinatario": {
                    "type": "integer"
                  },
                  "TipoOperacao": {
                    "type": "integer"
                  },
                  "AliqIbsUf": {
                    "type": "number"
                  },
                  "AliqIbsMun": {
                    "type": "integer"
                  },
                  "AliqCbs": {
                    "type": "number"
                  },
                  "BaseCalculo": {
                    "type": "number"
                  }
                }
              },
              "ComercioExterior": {
                "type": "object",
                "properties": {
                  "ModoPrestacao": {
                    "type": "integer"
                  },
                  "VinculoPrestador": {
                    "type": "integer"
                  },
                  "CodMoeda": {
                    "type": "integer"
                  },
                  "ValorMoedaEstrangeira": {
                    "type": "number"
                  },
                  "ApoioPrestador": {
                    "type": "integer"
                  },
                  "ApoioTomador": {
                    "type": "integer"
                  },
                  "MovimentacaoTemporariaBens": {
                    "type": "integer"
                  },
                  "NumeroDI": {
                    "type": "string"
                  },
                  "NumeroRE": {
                    "type": "string"
                  },
                  "CompartilharMDIC": {
                    "type": "integer"
                  }
                }
              },
              "ConfiguracaoImposto": {
                "type": "object",
                "properties": {
                  "IncidePis": {
                    "type": "boolean"
                  },
                  "IncideCofins": {
                    "type": "boolean"
                  },
                  "IncideCsll": {
                    "type": "boolean"
                  },
                  "IncideIr": {
                    "type": "boolean"
                  },
                  "ForcarIncidenciaPis": {
                    "type": "boolean"
                  },
                  "ForcarIncidenciaCofins": {
                    "type": "boolean"
                  },
                  "ForcarIncidenciaCsll": {
                    "type": "boolean"
                  },
                  "ForcarIncidenciaIr": {
                    "type": "boolean"
                  },
                  "DestacarPisCofins": {
                    "type": "boolean"
                  },
                  "RegimePisCofins": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}