<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:akcwg="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v6_0/AKC_WG.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/v6_0/AKC_WG.xsd" xmlns:tp8="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v8_0/Types.xsd" xmlns:tr8="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v8_0/Trader.xsd" targetNamespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v6_0/AKC_WG.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified" version="6_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/v8_0/Types.xsd" schemaLocation="Types_Z8.xsd"/>
	<xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v8_0/Trader.xsd" schemaLocation="Trader_Z8.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 W SPRAWIE PODATKU AKCYZOWEGO OD NABYCIA WEWNĄTRZWSPÓLNOTOWEGO WYROBÓW GAZOWYCH” (z wyłączeniem gazu do napędu silników spalinowych).
    </xs:documentation>
		<xs:documentation source="doc" xml:lang="pl">
      Podstawa prawna: Art. 24b ust. 1 pkt 1 ustawy z dnia 6 grudnia 2008 r. o podatku akcyzowym (Dz. U. z 2020 r. poz. 722, 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 są wykonywane lub stany faktyczne podlegające opodatkowaniu 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–4f ustawy; jeżeli właściwym organem podatkowym jest Naczelnik Trzeciego Urzędu Skarbowego Warszawa–Śródmieście w Warszawie, to miejscem składania jest Trzeci Urząd Skarbowy Warszawa–Śródmieście w Warszawie. 
    </xs:documentation>
	</xs:annotation>
	<xs:element name="AKCWG">
		<xs:annotation>
			<xs:documentation source="doc" xml:lang="pl">ELEMENT GŁÓWNY</xs:documentation>
		</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="tr8: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="CalcAmountPayable" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">OBLICZENIE WYSOKOŚCI PODATKU AKCYZOWEGO OD POSZCZEGÓLNYCH WYROBÓW.</xs:documentation>
									<xs:documentation source="box">C</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Item" minOccurs="0" maxOccurs="99">
											<xs:annotation>
												<xs:documentation source="doc" xml:lang="pl">OBLICZENIE WYSOKOŚCI PODATKU AKCYZOWEGO OD POSZCZEGÓLNYCH WYROBÓW.</xs:documentation>
												<xs:documentation source="box">C</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:attribute name="id" type="tp8:ZNumeric" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Liczba porządkowa.</xs:documentation>
														<xs:documentation source="box">C.a</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="groupOfGoodsName" type="tp8:ZGroupOfGoodsName" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Nazwa grupy wyrobów, dla których ustalono odrębne stawki podatkowe.</xs:documentation>
														<xs:documentation source="box">C.b</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="codeCN" type="tp8:ZCodeCN" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Ośmiocyfrowy kod CN.</xs:documentation>
														<xs:documentation source="box">C.c</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="numberOfGoodsK" type="tp8:ZAmountE" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Ilość wyrobów w tysiącach kilogramów z dokładnością do 3 miejsc po przecinku.</xs:documentation>
														<xs:documentation source="box">C.d</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="numberOfGoodsJ" type="tp8:ZAmountE" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Ilość wyrobów w GJ wynikająca z wartości opałowej (e), z dokładnością do 3 miejsc po przecinku.</xs:documentation>
														<xs:documentation source="box">C.e</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="taxRate" type="tp8:ZAmountC" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Stawka podatku.</xs:documentation>
														<xs:documentation source="box">C.f</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="fromIsztar" type="xs:boolean" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Czy stawka podatku akcyzowego jest pobrana z Systemu ISZTAR.</xs:documentation>
														<xs:documentation source="box">-</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="amountOfTax" type="tp8:ZAmountP" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Podatek akcyzowy.</xs:documentation>
														<xs:documentation source="box">C.g</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="exemptionFromExciseDuty" type="xs:boolean" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Zwolnienie od podatku akcyzowego.</xs:documentation>
														<xs:documentation source="box">C.f</xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="totalNumberOfGoodsK" type="tp8:ZAmountE" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Razem: Ilość wyrobów w tysiącach kilogramów, wynikająca z wartości opałowej. (z dokładnością do trzech miejsc po przecinku).</xs:documentation>
											<xs:documentation source="box">154</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="totalNumberOfGoodsJ" type="tp8:ZAmountE" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Razem: Ilość wyrobów GJ. wynikająca z wartości opałowej. (z dokładnością do trzech miejsc po przecinku).</xs:documentation>
											<xs:documentation source="box">155</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="totalAmountOfTax" type="tp8:ZAmountP" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Razem: Obliczony podatek akcyzowy.</xs:documentation>
											<xs:documentation source="box">156</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="AmountPayable" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">Wysokość podatku akcyzowego.</xs:documentation>
									<xs:documentation source="box">D</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="totalAmountOfTax" type="tp8:ZAmountP" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Razem obliczony podatek akcyzowy. Kwota z poz. 156.</xs:documentation>
											<xs:documentation source="box">157</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemption" type="tp8:ZAmountP" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Zwolnienia.</xs:documentation>
											<xs:documentation source="box">158</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionFromExciseDutyOnGas3" type="tp8:ZAmountP" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Zwolnienie od podatku akcyzowego wyrobów gazowych na podstawie art. 31b ust. 1 pkt 3 ustawy</xs:documentation>
											<xs:documentation source="box">159</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionFromExciseDutyOnGas3a" type="tp8:ZAmountP" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Zwolnienie od podatku akcyzowego wyrobów gazowych na podstawie art. 31b ust. 1 pkt 3 ustawy  (z dokładnością do trzech miejsc po przecinku).</xs:documentation>
											<xs:documentation source="box">160</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionFromExciseDutyOnGas3b" type="tp8:ZAmountP" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Zwolnienie od podatku akcyzowego wyrobów gazowych na podstawie art. 31b ust. 1 pkt 3b ustawy</xs:documentation>
											<xs:documentation source="box">161</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="exemptionOther" type="tp8:ZAmountP" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Pozostałe zwolnienia od podatku akcyzowego wyrobów gazowych.</xs:documentation>
											<xs:documentation source="box">162</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="reductions" type="tp8:ZAmountP" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Obniżenia.</xs:documentation>
											<xs:documentation source="box">163</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="totalExemptionOfReductions" type="tp8:ZAmountP" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Razem Zwolnienia i obniżenia. Suma kwot z poz. 158 i 153 nie może przekroczyć kwoty z poz. 157.</xs:documentation>
											<xs:documentation source="box">164</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="totalOfTax" type="tp8:ZAmountP" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Podatek akcyzowy do zapłaty. Od kwoty z poz 157 nalezy odjąć kwote wykazaną w poz 164.</xs:documentation>
											<xs:documentation source="box">165</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="Statement" type="tp8:ZIDExtStatement" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">
                    PODPIS PODATNIKA LUB OSOBY REPREZENTUJĄCEJ PODATNIKA
                  </xs:documentation>
									<xs:documentation source="box">E</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="identifier" type="tp8: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="tp8:ZPeriod" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Miesiąc/Rok, za jaki została złożona deklaracja.</xs:documentation>
								<xs:documentation source="box">4, 5</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="taxOffice" type="tp8:ZTaxOffice" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Naczelnik urzędu skarbowego, do którego adresowana jest deklaracja (kod jednostki).</xs:documentation>
								<xs:documentation source="box">6</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="taxOfficeName" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Naczelnik urzędu skarbowego, do którego adresowana jest deklaracja (nazwa własna).</xs:documentation>
								<xs:documentation source="box">-</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="512"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="submissionAim" type="tp8: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="tp8: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="applicationForOverpayment" type="xs:boolean" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Informacja, czy korekta jest wnioskiem o stwierdzenie nadpłaty powstałej w wyniku korekty deklaracji.</xs:documentation>
								<xs:documentation source="box">8</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 wniosek o stwierdzenie nadpłaty/korekty.</xs:documentation>
								<xs:documentation source="box">9.a</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="512"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="overpaymentAmount" type="tp8:ZAmountT" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Kwota żądanej nadpłaty. Wartość liczbowa/kwotowa zaokrąglone do pełnych zł.</xs:documentation>
								<xs:documentation source="box">9.b</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="selfRef" type="tp8: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="tp8: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>
