Jump to content

Recommended Posts

Posted

Olá! 

Eu estou tentando registrar uma fatura usando o webservice da AT, entretanto estou a receber a seguinte resposta:
 

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Client</faultcode>
<faultstring>Internal Error</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>

Ou seja, é muito genérico e não sei exatamente o que pode ser.

Segue abaixo o meu xml de requisição:

<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope
	xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:wss="http://schemas.xmlsoap.org/ws/2002/12/secext">
	<SOAP-ENV:Header>
		<wss:Security>
			<wss:UsernameToken>
				<wss:Username>5.....98/1</wss:Username>
				<wss:Password>wmA9UG...</wss:Password>
				<wss:Nonce>puvgt4OsVjdtScFES...</wss:Nonce>
				<wss:Created>lxhp8k+wv8SnqM2cvOkSRAInAa1YSf6liC7zOF2QUzU=</wss:Created>
			</wss:UsernameToken>
		</wss:Security>
	</SOAP-ENV:Header>
	<S:Body>
		<RegisterInvoiceRequest
			xmlns="http://factemi.at.min_financas.pt/documents">
			<eFaturaMDVersion>0.0.1</eFaturaMDVersion>
			<AuditFileVersion>1.04_01</AuditFileVersion>
			<TaxRegistrationNumber>314322051</TaxRegistrationNumber>
			<TaxEntity>Global</TaxEntity>
			<SoftwareCertificateNumber>0</SoftwareCertificateNumber>
			<InvoiceData>
				<InvoiceNo>FT 2026/99255</InvoiceNo>
				<ATCUD>0</ATCUD>
				<InvoiceDate>2026-01-30</InvoiceDate>
				<InvoiceType>FT</InvoiceType>
				<SelfBillingIndicator>0</SelfBillingIndicator>
				<CustomerTaxID>999999990</CustomerTaxID>
				<CustomerTaxIDCountry>PT</CustomerTaxIDCountry>
				<DocumentStatus>
					<InvoiceStatus>N</InvoiceStatus>
					<InvoiceStatusDate></InvoiceStatusDate>
				</DocumentStatus>
				<HashCharacters>0</HashCharacters>
				<CashVATSchemeIndicator>0</CashVATSchemeIndicator>
				<PaperLessIndicator>1</PaperLessIndicator>
				<SystemEntryDate></SystemEntryDate>
				<LineSummary>
					<TaxPointDate>2026-01-30</TaxPointDate>
					<DebitCreditIndicator>C</DebitCreditIndicator>
					<Amount>10.00</Amount>
					<Tax>
						<TaxType>IVA</TaxType>
						<TaxCountryRegion>PT</TaxCountryRegion>
						<TaxCode>NOR</TaxCode>
						<TaxPercentage>23.00</TaxPercentage>
					</Tax>
				</LineSummary>
				<DocumentTotals>
					<TaxPayable>2.30</TaxPayable>
					<NetTotal>10.00</NetTotal>
					<GrossTotal>12.30</GrossTotal>
				</DocumentTotals>
			</InvoiceData>
		</RegisterInvoiceRequest>
	</S:Body>
</S:Envelope>

Por acaso eu estou deixar de passar algo? Obrigado pela atenção.

Ricardo

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.