<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:akcen="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/AKC_EN.xsd" xmlns:auth="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/Authentication.xsd" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/AKC_EN.xsd" xmlns:tp3="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v3_0/Types.xsd" xmlns:tr3="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v3_0/Trader.xsd" targetNamespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/AKC_EN.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified" version="4_0" xml:lang="pl">
	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd"/>
	<xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v3_0/Types.xsd" schemaLocation="..\Types_Z3.xsd"/>
    <xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v3_0/Trader.xsd" schemaLocation="..\Trader_Z3.xsd"/>
    <xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/Authentication.xsd" schemaLocation="..\auth.xsd"/>
	<xs:annotation>
		<xs:documentation source="doc" xml:lang="pl">
      DEKLARACJA DLA PODATKU AKCYZOWEGO OD NABYCIA WEWNĄTRZWSPÓLNOTOWEGO ENERGII  ELEKTRYCZNEJ
    </xs:documentation>
		<xs:documentation source="doc" xml:lang="pl">
      Podstawa prawna: Art. 24 ust. 1 pkt 1 ustawy z dnia 6 grudnia 2008 r. o podatku akcyzowym (Dz. U. z 2018 r. poz. 1114, z późn. zm.), zwanej dalej "ustawą".
      Termin składania: Do 25. dnia miesiąca następującego po miesiącu, w którym upłynął termin płatności wynikający z faktury, a jeżeli termin ten nie został określony 
	  - po miesiącu, w którym wystawiono fakturę.
      Miejsce składania: Urząd skarbowy, przy pomocy którego wykonuje swoje zadania naczelnik urzędu skarbowego właściwy ze względu na miejsce wykonywania czynności 
	  lub wystąpienia stanów faktycznych, podlegających opodatkowaniu podatkiem akcyzowym; jeżeli czynności podlegające opodatkowaniu podatkiem akcyzowym są wykonywane 
	  lub stany faktyczne podlegające opodatkowaniu podatkiem akcyzowym występują na obszarze właściwości miejscowej dwóch lub więcej naczelników urzędów skarbowych 
	  - zgodnie z art. 14 ust. 4-4g ustawy; jeżeli właściwym organem podatkowym jest Naczelnik Trzeciego Urzędu Skarbowego Warszawa- Śródmieście w Warszawie, 
	  to miejscem składanie jest Trzeci Urząd Skarbowy Warszawa-Śródmieście w Warszawie.
    </xs:documentation>
	</xs:annotation>
	<xs:element name="AKCEN">
		<xs:annotation>
			<xs:documentation source="doc" xml:lang="pl"/>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Header" minOccurs="1" maxOccurs="1">
					<xs:annotation>
						<xs:documentation source="doc" xml:lang="pl">
              NAGłÓWEK DEKLARACJI
            </xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="Trader" type="tr3:ZTrader" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">
                    DANE PODATNIKA
                  </xs:documentation>
									<xs:documentation source="box">
                    B
                  </xs:documentation>
									<xs:documentation source="doc" xml:lang="pl">
                    DANE IDENTYFIKACYJNE
                  </xs:documentation>
									<xs:documentation source="box">
                    B1
                  </xs:documentation>
									<xs:documentation source="doc" xml:lang="pl">
                    ADRES SIEDZIBY/ ADRES ZAMIESZKANIA
                  </xs:documentation>
									<xs:documentation source="box">
                    B2
                  </xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="CalculationAmountOfExciseDuty" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">
                    OBLICZENIE WYSOKOŚCI PODATKU AKCYZOWEGO 
                  </xs:documentation>
									<xs:documentation source="box">
                    C
                  </xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="codeCN" type="tp3:ZCodeCN" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								Ośmiocyfrowy kod CN.
							</xs:documentation>
											<xs:documentation source="box">
								20
							</xs:documentation>
											<xs:documentation source="list">
								1
							</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="taxRate" type="tp3:ZAmountC" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								Stawka podatku akcyzowego w zł/MWh
							</xs:documentation>
											<xs:documentation source="box">
								21
							</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="numberOfGoods" type="tp3:ZAmountE" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								Ilość energii podlegającej opodatkowaniu podatkiem akcyzowym w MWh (z dokładnością do 3-ch miejsc po 
								przecinku).
							</xs:documentation>
											<xs:documentation source="box">
								22
							</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="amountOfTax" type="tp3:ZAmountT" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								Kwota podatku akcyzowego.
							</xs:documentation>
											<xs:documentation source="box">
								23
							</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="amountOfReductions" type="tp3:ZAmountT" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								Zwolnienia i obniżenia w tym:
							</xs:documentation>
											<xs:documentation source="box">
								24
							</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionFromExciseDutyEnergyE" type="tp3:ZAmountT" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								kwota zwolnienia od podatku akcyzowego energii elektrycznej na podstawie art. 30 ust. 7a pkt 1 ustawy
							</xs:documentation>
											<xs:documentation source="box">
								24a
							</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionFromExciseDutyEnergyF" type="tp3:ZAmountE" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								Ilość wykorzystanej w ten sposób energii elektrycznej w MWh (z dokładnością do trzech miejsc po przecinku)
                            </xs:documentation>
											<xs:documentation source="box">
								24b
                            </xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionFromExciseDutyEnergyG" type="tp3:ZAmountT" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								kwota zwolnienia od podatku akcyzowego energii elektrycznej na podstawie art. 30 ust. 7a pkt 2 ustawy
                            </xs:documentation>
											<xs:documentation source="box">
								24c
                            </xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionFromExciseDutyEnergyH" type="tp3:ZAmountE" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								Ilość wykorzystanej w ten sposób energii elektrycznej w MWh (z dokładnością do trzech miejsc po przecinku)
                            </xs:documentation>
											<xs:documentation source="box">
								24d
                            </xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionFromExciseDutyEnergyI" type="tp3:ZAmountT" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								kwota zwolnienia od podatku akcyzowego energii elektrycznej na podstawie art. 30 ust. 7a pkt 3 ustawy
                            </xs:documentation>
											<xs:documentation source="box">
								24e
                            </xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionFromExciseDutyEnergyJ" type="tp3:ZAmountE" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								Ilość wykorzystanej w ten sposób energii elektrycznej w MWh (z dokładnością do trzech miejsc po przecinku)
                            </xs:documentation>
											<xs:documentation source="box">
								24f
                            </xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionFromExciseDutyEnergyK" type="tp3:ZAmountT" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								kwota zwolnienia od podatku akcyzowego energii elektrycznej na podstawie art. 30 ust. 7a pkt 4 ustawy
                            </xs:documentation>
											<xs:documentation source="box">
								24g
                            </xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionFromExciseDutyEnergyL" type="tp3:ZAmountE" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								Ilość wykorzystanej w ten sposób energii elektrycznej w MWh (z dokładnością do trzech miejsc po przecinku)
                            </xs:documentation>
											<xs:documentation source="box">
								24h
                            </xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="amountOfTaxAfterReductions" type="tp3:ZAmountT" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								Podatek akcyzowy do zapłaty. Od kwoty wykazanej w poz.23 należy odjąć kwotę wykazaną w poz.24.	
							</xs:documentation>
											<xs:documentation source="box">
								25
							</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="taxRateFromIsztar" type="xs:boolean" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
								Czy stawka podatku akcyzowego w polach taxRate i taxRateSecond jest pobrana z Systemu 
								ISZTAR.
							</xs:documentation>
											<xs:documentation source="box">
								-
							</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="Statement" type="tp3:ZExtStatement" minOccurs="1" maxOccurs="1"/>
						</xs:sequence>
						<xs:attribute name="identifier" type="tp3:ZIdentification" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                  Identyfikator podatkowy NIP/numer PESEL podatnika
                </xs:documentation>
								<xs:documentation source="box">
                  1
                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="period" type="tp3:ZPeriod" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                  Data w formacie miesiąc/rok (MM-RRRR), gdzie MM - oznacza miesiąc,
                  RRRR- oznacza rok.
                </xs:documentation>
								<xs:documentation source="box">
                  4,5
                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="taxOffice" type="tp3:ZTaxOffice" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                  Naczelnik urzędu skarbowego
                </xs:documentation>
								<xs:documentation source="box">
                  6
                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="submissionAim" type="tp3:ZSubmissionAim" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                  Cel złożenia formularza (złożenie deklaracji/korekta deklaracji)
                </xs:documentation>
								<xs:documentation source="box">
                  7
                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="orgDocNo" type="tp3:ZDocNo" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                  Numer dokumentu pierwotnego, którego dotyczy korekta.
                </xs:documentation>
								<xs:documentation source="box">
                  -
                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="justification" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                  Pole tekstowe pozwalające na wprowadzenie informacji uzasadniającej korektę.
                </xs:documentation>
								<xs:documentation source="box">
                  -
                </xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="256"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="selfRef" type="tp3:ZSelfRef" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                  Numer własny komunikatu.
                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
					</xs:complexType>
				</xs:element>
				<xs:element ref="auth:Authentication" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="ds:Signature" minOccurs="0" maxOccurs="1"/>
			</xs:sequence>
			<xs:attribute name="version" type="tp3:ZVersion" use="required">
				<xs:annotation>
					<xs:documentation source="doc" xml:lang="pl">
            Wersja schematu, z którą zgodny jest komunikat.
          </xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
</xs:schema>
