Rev 182 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 179 | espaco | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- PL_006f versao com correcoes no xServ para tornar a literal CONS-CAD obrigatoria 21/05/2010 --> |
||
| 3 | <!-- PL_006c versao com correcoes 24/12/2009 --> |
||
| 4 | <xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified"> |
||
| 5 | <xs:include schemaLocation="tiposBasico_v1.03.xsd"/> |
||
| 6 | <xs:complexType name="TConsCad"> |
||
| 7 | <xs:annotation> |
||
| 8 | <xs:documentation>Tipo Pedido de Consulta de cadastro de contribuintes</xs:documentation> |
||
| 9 | </xs:annotation> |
||
| 10 | <xs:sequence> |
||
| 11 | <xs:element name="infCons"> |
||
| 12 | <xs:annotation> |
||
| 13 | <xs:documentation>Dados do Pedido de Consulta de cadastro de contribuintes</xs:documentation> |
||
| 14 | </xs:annotation> |
||
| 15 | <xs:complexType> |
||
| 16 | <xs:sequence> |
||
| 17 | <xs:element name="xServ"> |
||
| 18 | <xs:annotation> |
||
| 19 | <xs:documentation>Serviço Solicitado</xs:documentation> |
||
| 20 | </xs:annotation> |
||
| 21 | <xs:simpleType> |
||
| 22 | <xs:restriction base="TServ"> |
||
| 23 | <xs:enumeration value="CONS-CAD"/> |
||
| 24 | </xs:restriction> |
||
| 25 | </xs:simpleType> |
||
| 26 | </xs:element> |
||
| 27 | <xs:element name="UF" type="TUfCons"> |
||
| 28 | <xs:annotation> |
||
| 29 | <xs:documentation>sigla da UF consultada, utilizar SU para SUFRAMA</xs:documentation> |
||
| 30 | </xs:annotation> |
||
| 31 | </xs:element> |
||
| 32 | <xs:choice> |
||
| 33 | <xs:annotation> |
||
| 34 | <xs:documentation>argumento de pesquisa</xs:documentation> |
||
| 35 | </xs:annotation> |
||
| 36 | <xs:element name="IE" type="TIe"> |
||
| 37 | <xs:annotation> |
||
| 38 | <xs:documentation>Inscrição Estadual do contribuinte </xs:documentation> |
||
| 39 | </xs:annotation> |
||
| 40 | </xs:element> |
||
| 41 | <xs:element name="CNPJ" type="TCnpjVar"> |
||
| 42 | <xs:annotation> |
||
| 43 | <xs:documentation>CNPJ do contribuinte</xs:documentation> |
||
| 44 | </xs:annotation> |
||
| 45 | </xs:element> |
||
| 46 | <xs:element name="CPF" type="TCpfVar"> |
||
| 47 | <xs:annotation> |
||
| 48 | <xs:documentation>CPF do contribuinte</xs:documentation> |
||
| 49 | </xs:annotation> |
||
| 50 | </xs:element> |
||
| 51 | </xs:choice> |
||
| 52 | </xs:sequence> |
||
| 53 | </xs:complexType> |
||
| 54 | </xs:element> |
||
| 55 | </xs:sequence> |
||
| 56 | <xs:attribute name="versao" type="TVerConsCad" use="required"/> |
||
| 57 | </xs:complexType> |
||
| 58 | <xs:complexType name="TRetConsCad"> |
||
| 59 | <xs:annotation> |
||
| 60 | <xs:documentation>Tipo Retorno Pedido de Consulta de cadastro de contribuintes</xs:documentation> |
||
| 61 | </xs:annotation> |
||
| 62 | <xs:sequence> |
||
| 63 | <xs:element name="infCons"> |
||
| 64 | <xs:annotation> |
||
| 65 | <xs:documentation>Dados do Resultado doDados do Pedido de Consulta de cadastro de contribuintes</xs:documentation> |
||
| 66 | </xs:annotation> |
||
| 67 | <xs:complexType> |
||
| 68 | <xs:sequence> |
||
| 69 | <xs:element name="verAplic" type="TVerAplic"> |
||
| 70 | <xs:annotation> |
||
| 71 | <xs:documentation>Versão do Aplicativo que processou o pedido de consulta de cadastro</xs:documentation> |
||
| 72 | </xs:annotation> |
||
| 73 | </xs:element> |
||
| 74 | <xs:element name="cStat" type="TStat"> |
||
| 75 | <xs:annotation> |
||
| 76 | <xs:documentation>Código do status da mensagem enviada.</xs:documentation> |
||
| 77 | </xs:annotation> |
||
| 78 | </xs:element> |
||
| 79 | <xs:element name="xMotivo" type="TMotivo"> |
||
| 80 | <xs:annotation> |
||
| 81 | <xs:documentation>Descrição literal do status do serviço solicitado.</xs:documentation> |
||
| 82 | </xs:annotation> |
||
| 83 | </xs:element> |
||
| 84 | <xs:element name="UF" type="TUfCons"> |
||
| 85 | <xs:annotation> |
||
| 86 | <xs:documentation>sigla da UF consultada, utilizar SU para SUFRAMA</xs:documentation> |
||
| 87 | </xs:annotation> |
||
| 88 | </xs:element> |
||
| 89 | <xs:choice> |
||
| 90 | <xs:annotation> |
||
| 91 | <xs:documentation>argumento de pesquisa</xs:documentation> |
||
| 92 | </xs:annotation> |
||
| 93 | <xs:element name="IE" type="TIe"> |
||
| 94 | <xs:annotation> |
||
| 95 | <xs:documentation>Inscrição Estadual do contribuinte </xs:documentation> |
||
| 96 | </xs:annotation> |
||
| 97 | </xs:element> |
||
| 98 | <xs:element name="CNPJ" type="TCnpjVar"> |
||
| 99 | <xs:annotation> |
||
| 100 | <xs:documentation>CNPJ do contribuinte</xs:documentation> |
||
| 101 | </xs:annotation> |
||
| 102 | </xs:element> |
||
| 103 | <xs:element name="CPF" type="TCpfVar"> |
||
| 104 | <xs:annotation> |
||
| 105 | <xs:documentation>CPF do contribuinte</xs:documentation> |
||
| 106 | </xs:annotation> |
||
| 107 | </xs:element> |
||
| 108 | </xs:choice> |
||
| 109 | <xs:element name="dhCons" type="xs:dateTime"> |
||
| 110 | <xs:annotation> |
||
| 111 | <xs:documentation>Data da Consulta</xs:documentation> |
||
| 112 | </xs:annotation> |
||
| 113 | </xs:element> |
||
| 114 | <xs:element name="cUF" type="TCodUfIBGE"> |
||
| 115 | <xs:annotation> |
||
| 116 | <xs:documentation>código da UF de atendimento</xs:documentation> |
||
| 117 | </xs:annotation> |
||
| 118 | </xs:element> |
||
| 119 | <xs:element name="infCad" minOccurs="0" maxOccurs="unbounded"> |
||
| 120 | <xs:annotation> |
||
| 121 | <xs:documentation>Informações cadastrais do contribuinte consultado</xs:documentation> |
||
| 122 | </xs:annotation> |
||
| 123 | <xs:complexType> |
||
| 124 | <xs:sequence> |
||
| 125 | <xs:element name="IE" type="TIe"> |
||
| 126 | <xs:annotation> |
||
| 127 | <xs:documentation>Número da Inscrição Estadual do contribuinte</xs:documentation> |
||
| 128 | </xs:annotation> |
||
| 129 | </xs:element> |
||
| 130 | <xs:choice> |
||
| 131 | <xs:element name="CNPJ" type="TCnpjVar"> |
||
| 132 | <xs:annotation> |
||
| 133 | <xs:documentation>Número do CNPJ do contribuinte</xs:documentation> |
||
| 134 | </xs:annotation> |
||
| 135 | </xs:element> |
||
| 136 | <xs:element name="CPF" type="TCpfVar"> |
||
| 137 | <xs:annotation> |
||
| 138 | <xs:documentation>Número do CPF do contribuinte</xs:documentation> |
||
| 139 | </xs:annotation> |
||
| 140 | </xs:element> |
||
| 141 | </xs:choice> |
||
| 142 | <xs:element name="UF" type="TUf"> |
||
| 143 | <xs:annotation> |
||
| 144 | <xs:documentation>Sigla da UF de localização do contribuinte. Em algumas situações, a UF de localização pode ser diferente da UF consultada. Ex. IE de Substituto Tributário.</xs:documentation> |
||
| 145 | </xs:annotation> |
||
| 146 | </xs:element> |
||
| 147 | <xs:element name="cSit"> |
||
| 148 | <xs:annotation> |
||
| 149 | <xs:documentation>Situação cadastral do contribuinte: |
||
| 150 | |||
| 151 | 1 - habilitado</xs:documentation> |
||
| 152 | </xs:annotation> |
||
| 153 | <xs:simpleType> |
||
| 154 | <xs:restriction base="xs:token"> |
||
| 155 | <xs:enumeration value="0"/> |
||
| 156 | <xs:enumeration value="1"/> |
||
| 157 | </xs:restriction> |
||
| 158 | </xs:simpleType> |
||
| 159 | </xs:element> |
||
| 160 | <xs:element name="indCredNFe"> |
||
| 161 | <xs:annotation> |
||
| 162 | <xs:documentation>Indicador de contribuinte credenciado a emitir NF-e. |
||
| 163 | |||
| 164 | 1 - Credenciado; |
||
| 165 | 2 - Credenciado com obrigatoriedade para todas operações; |
||
| 166 | 3 - Credenciado com obrigatoriedade parcial; |
||
| 167 | 4 – a SEFAZ não fornece a informação. |
||
| 168 | Este indicador significa apenas que o contribuinte é credenciado para emitir NF-e na SEFAZ consultada.</xs:documentation> |
||
| 169 | </xs:annotation> |
||
| 170 | <xs:simpleType> |
||
| 171 | <xs:restriction base="xs:string"> |
||
| 172 | <xs:whiteSpace value="preserve"/> |
||
| 173 | <xs:enumeration value="0"/> |
||
| 174 | <xs:enumeration value="1"/> |
||
| 175 | <xs:enumeration value="2"/> |
||
| 176 | <xs:enumeration value="3"/> |
||
| 177 | <xs:enumeration value="4"/> |
||
| 178 | </xs:restriction> |
||
| 179 | </xs:simpleType> |
||
| 180 | </xs:element> |
||
| 181 | <xs:element name="indCredCTe"> |
||
| 182 | <xs:annotation> |
||
| 183 | <xs:documentation>Indicador de contribuinte credenciado a emitir CT-e. |
||
| 184 | |||
| 185 | 1 - Credenciado; |
||
| 186 | 2 - Credenciado com obrigatoriedade para todas operações; |
||
| 187 | 3 - Credenciado com obrigatoriedade parcial; |
||
| 188 | 4 – a SEFAZ não fornece a informação. |
||
| 189 | Este indicador significa apenas que o contribuinte é credenciado para emitir CT-e na SEFAZ consultada.</xs:documentation> |
||
| 190 | </xs:annotation> |
||
| 191 | <xs:simpleType> |
||
| 192 | <xs:restriction base="xs:string"> |
||
| 193 | <xs:whiteSpace value="preserve"/> |
||
| 194 | <xs:enumeration value="0"/> |
||
| 195 | <xs:enumeration value="1"/> |
||
| 196 | <xs:enumeration value="2"/> |
||
| 197 | <xs:enumeration value="3"/> |
||
| 198 | <xs:enumeration value="4"/> |
||
| 199 | </xs:restriction> |
||
| 200 | </xs:simpleType> |
||
| 201 | </xs:element> |
||
| 202 | <xs:element name="xNome"> |
||
| 203 | <xs:annotation> |
||
| 204 | <xs:documentation>Razão Social ou nome do contribuinte</xs:documentation> |
||
| 205 | </xs:annotation> |
||
| 206 | <xs:simpleType> |
||
| 207 | <xs:restriction base="TString"> |
||
| 208 | <xs:minLength value="1"/> |
||
| 209 | <xs:maxLength value="60"/> |
||
| 210 | </xs:restriction> |
||
| 211 | </xs:simpleType> |
||
| 212 | </xs:element> |
||
| 213 | <xs:element name="xFant" minOccurs="0"> |
||
| 214 | <xs:annotation> |
||
| 215 | <xs:documentation>Razão Social ou nome do contribuinte</xs:documentation> |
||
| 216 | </xs:annotation> |
||
| 217 | <xs:simpleType> |
||
| 218 | <xs:restriction base="TString"> |
||
| 219 | <xs:minLength value="1"/> |
||
| 220 | <xs:maxLength value="60"/> |
||
| 221 | </xs:restriction> |
||
| 222 | </xs:simpleType> |
||
| 223 | </xs:element> |
||
| 224 | <xs:element name="xRegApur" minOccurs="0"> |
||
| 225 | <xs:annotation> |
||
| 226 | <xs:documentation>Regime de Apuração do ICMS</xs:documentation> |
||
| 227 | </xs:annotation> |
||
| 228 | <xs:simpleType> |
||
| 229 | <xs:restriction base="xs:token"> |
||
| 230 | <xs:minLength value="1"/> |
||
| 231 | <xs:maxLength value="60"/> |
||
| 232 | </xs:restriction> |
||
| 233 | </xs:simpleType> |
||
| 234 | </xs:element> |
||
| 235 | <xs:element name="CNAE" minOccurs="0"> |
||
| 236 | <xs:annotation> |
||
| 237 | <xs:documentation>CNAE Fiscal do contribuinte</xs:documentation> |
||
| 238 | </xs:annotation> |
||
| 239 | <xs:simpleType> |
||
| 240 | <xs:restriction base="xs:token"> |
||
| 241 | <xs:pattern value="[0-9]{6,7}"/> |
||
| 242 | </xs:restriction> |
||
| 243 | </xs:simpleType> |
||
| 244 | </xs:element> |
||
| 245 | <xs:element name="dIniAtiv" type="xs:date" minOccurs="0"> |
||
| 246 | <xs:annotation> |
||
| 247 | <xs:documentation>Data de início de atividades do contribuinte</xs:documentation> |
||
| 248 | </xs:annotation> |
||
| 249 | </xs:element> |
||
| 250 | <xs:element name="dUltSit" type="xs:date" minOccurs="0"> |
||
| 251 | <xs:annotation> |
||
| 252 | <xs:documentation>Data da última modificação da situação cadastral do contribuinte.</xs:documentation> |
||
| 253 | </xs:annotation> |
||
| 254 | </xs:element> |
||
| 255 | <xs:element name="dBaixa" type="xs:date" minOccurs="0"> |
||
| 256 | <xs:annotation> |
||
| 257 | <xs:documentation>Data de ocorrência da baixa do contribuinte.</xs:documentation> |
||
| 258 | </xs:annotation> |
||
| 259 | </xs:element> |
||
| 260 | <xs:element name="IEUnica" type="TIe" minOccurs="0"> |
||
| 261 | <xs:annotation> |
||
| 262 | <xs:documentation>Inscrição Estadual Única</xs:documentation> |
||
| 263 | </xs:annotation> |
||
| 264 | </xs:element> |
||
| 265 | <xs:element name="IEAtual" type="TIe" minOccurs="0"> |
||
| 266 | <xs:annotation> |
||
| 267 | <xs:documentation>Inscrição Estadual atual</xs:documentation> |
||
| 268 | </xs:annotation> |
||
| 269 | </xs:element> |
||
| 270 | <xs:element name="ender" type="TEndereco" minOccurs="0"> |
||
| 271 | <xs:annotation> |
||
| 272 | <xs:documentation>Endereço</xs:documentation> |
||
| 273 | </xs:annotation> |
||
| 274 | </xs:element> |
||
| 275 | </xs:sequence> |
||
| 276 | </xs:complexType> |
||
| 277 | </xs:element> |
||
| 278 | </xs:sequence> |
||
| 279 | </xs:complexType> |
||
| 280 | </xs:element> |
||
| 281 | </xs:sequence> |
||
| 282 | <xs:attribute name="versao" type="TVerConsCad" use="required"/> |
||
| 283 | </xs:complexType> |
||
| 284 | <xs:complexType name="TEndereco"> |
||
| 285 | <xs:annotation> |
||
| 286 | <xs:documentation>Tipo Dados do Endereço</xs:documentation> |
||
| 287 | </xs:annotation> |
||
| 288 | <xs:sequence> |
||
| 289 | <xs:element name="xLgr" minOccurs="0"> |
||
| 290 | <xs:annotation> |
||
| 291 | <xs:documentation>Logradouro</xs:documentation> |
||
| 292 | </xs:annotation> |
||
| 293 | <xs:simpleType> |
||
| 294 | <xs:restriction base="TString"> |
||
| 295 | <xs:minLength value="1"/> |
||
| 296 | <xs:maxLength value="255"/> |
||
| 297 | </xs:restriction> |
||
| 298 | </xs:simpleType> |
||
| 299 | </xs:element> |
||
| 300 | <xs:element name="nro" minOccurs="0"> |
||
| 301 | <xs:annotation> |
||
| 302 | <xs:documentation>Número</xs:documentation> |
||
| 303 | </xs:annotation> |
||
| 304 | <xs:simpleType> |
||
| 305 | <xs:restriction base="TString"> |
||
| 306 | <xs:maxLength value="60"/> |
||
| 307 | <xs:minLength value="1"/> |
||
| 308 | </xs:restriction> |
||
| 309 | </xs:simpleType> |
||
| 310 | </xs:element> |
||
| 311 | <xs:element name="xCpl" minOccurs="0"> |
||
| 312 | <xs:annotation> |
||
| 313 | <xs:documentation>Complemento</xs:documentation> |
||
| 314 | </xs:annotation> |
||
| 315 | <xs:simpleType> |
||
| 316 | <xs:restriction base="TString"> |
||
| 317 | <xs:maxLength value="60"/> |
||
| 318 | <xs:minLength value="1"/> |
||
| 319 | </xs:restriction> |
||
| 320 | </xs:simpleType> |
||
| 321 | </xs:element> |
||
| 322 | <xs:element name="xBairro" minOccurs="0"> |
||
| 323 | <xs:annotation> |
||
| 324 | <xs:documentation>Bairro</xs:documentation> |
||
| 325 | </xs:annotation> |
||
| 326 | <xs:simpleType> |
||
| 327 | <xs:restriction base="TString"> |
||
| 328 | <xs:maxLength value="60"/> |
||
| 329 | <xs:minLength value="1"/> |
||
| 330 | </xs:restriction> |
||
| 331 | </xs:simpleType> |
||
| 332 | </xs:element> |
||
| 333 | <xs:element name="cMun" type="TCodMunIBGE" minOccurs="0"> |
||
| 334 | <xs:annotation> |
||
| 335 | <xs:documentation>Código do município (utilizar a tabela do IBGE), informar 9999999 para operações com o exterior.</xs:documentation> |
||
| 336 | </xs:annotation> |
||
| 337 | </xs:element> |
||
| 338 | <xs:element name="xMun" minOccurs="0"> |
||
| 339 | <xs:annotation> |
||
| 340 | <xs:documentation>Nome do município</xs:documentation> |
||
| 341 | </xs:annotation> |
||
| 342 | <xs:simpleType> |
||
| 343 | <xs:restriction base="TString"> |
||
| 344 | <xs:maxLength value="60"/> |
||
| 345 | <xs:minLength value="1"/> |
||
| 346 | </xs:restriction> |
||
| 347 | </xs:simpleType> |
||
| 348 | </xs:element> |
||
| 349 | <xs:element name="CEP" minOccurs="0"> |
||
| 350 | <xs:annotation> |
||
| 351 | <xs:documentation>CEP</xs:documentation> |
||
| 352 | </xs:annotation> |
||
| 353 | <xs:simpleType> |
||
| 354 | <xs:restriction base="xs:token"> |
||
| 355 | <xs:pattern value="[0-9]{7,8}"/> |
||
| 356 | </xs:restriction> |
||
| 357 | </xs:simpleType> |
||
| 358 | </xs:element> |
||
| 359 | </xs:sequence> |
||
| 360 | </xs:complexType> |
||
| 361 | <xs:simpleType name="TUfCons"> |
||
| 362 | <xs:annotation> |
||
| 363 | <xs:documentation>Tipo Sigla da UF consultada</xs:documentation> |
||
| 364 | </xs:annotation> |
||
| 365 | <xs:restriction base="xs:token"> |
||
| 366 | <xs:enumeration value="AC"/> |
||
| 367 | <xs:enumeration value="AL"/> |
||
| 368 | <xs:enumeration value="AM"/> |
||
| 369 | <xs:enumeration value="AP"/> |
||
| 370 | <xs:enumeration value="BA"/> |
||
| 371 | <xs:enumeration value="CE"/> |
||
| 372 | <xs:enumeration value="DF"/> |
||
| 373 | <xs:enumeration value="ES"/> |
||
| 374 | <xs:enumeration value="GO"/> |
||
| 375 | <xs:enumeration value="MA"/> |
||
| 376 | <xs:enumeration value="MG"/> |
||
| 377 | <xs:enumeration value="MS"/> |
||
| 378 | <xs:enumeration value="MT"/> |
||
| 379 | <xs:enumeration value="PA"/> |
||
| 380 | <xs:enumeration value="PB"/> |
||
| 381 | <xs:enumeration value="PE"/> |
||
| 382 | <xs:enumeration value="PI"/> |
||
| 383 | <xs:enumeration value="PR"/> |
||
| 384 | <xs:enumeration value="RJ"/> |
||
| 385 | <xs:enumeration value="RN"/> |
||
| 386 | <xs:enumeration value="RO"/> |
||
| 387 | <xs:enumeration value="RR"/> |
||
| 388 | <xs:enumeration value="RS"/> |
||
| 389 | <xs:enumeration value="SC"/> |
||
| 390 | <xs:enumeration value="SE"/> |
||
| 391 | <xs:enumeration value="SP"/> |
||
| 392 | <xs:enumeration value="TO"/> |
||
| 393 | <xs:enumeration value="SU"/> |
||
| 394 | </xs:restriction> |
||
| 395 | </xs:simpleType> |
||
| 396 | <xs:simpleType name="TVerConsCad"> |
||
| 397 | <xs:annotation> |
||
| 398 | <xs:documentation>Tipo Versão do Leiaute da Consulta Cadastro 2.00</xs:documentation> |
||
| 399 | </xs:annotation> |
||
| 400 | <xs:restriction base="xs:token"> |
||
| 401 | <xs:pattern value="2\.00"/> |
||
| 402 | </xs:restriction> |
||
| 403 | </xs:simpleType> |
||
| 404 | </xs:schema> |