Spain B2G: Correction Data

You can model corrections to a preceding invoice.

For Spanish B2G Documents, you can model corrections data. This data corrects preceding invoices.

Use the CorrectionData Extension to model this information.

Elements

The following elements are grouped in the /Invoice/BillingReference/InvoiceDocumentReference/UBLExtensions/ UBLExtension/ExtensionContent/InoiceDocumentReferenceExtension/CorrectionData/ element:

ElementCardinalityDescription
/InvoicePeriod/StartDate1..1The start date of the tax period on the corrected invoice.
/InvoicePeriod/EndDate1..1The end date of the tax period on the corrected invoice.
/CorrectionMethod1..1The code that represents the method used to make the correction.
/CorrectionReason0..1An additional reason for the correction.
/CorrectionReasonCode1..1The code that represents the reason for the correction.
/InvoiceSeriesCode0..1The serial number of the corrected invoice.

In addition, you must specify the the invoice number and issue date of the invoice that is being corrected in the following elements:

ElementCardinalityDescription
Invoice/ID0..1The invoice serial number of the invoice that is being corrected.
Invoice/IssueDate0..1The date the invoice that is being corrected was issued.

Restrictions

  • You must specify the invoice number and issue date of the invoice that is being corrected in the ID and IssueDate elements.
  • The value in the InvoiceSeriesCode element is limited to 20 characters.
  • You must use one of the following values in the CorrectionMethod element:
ValueDescription
VRBL:ES-B2G:01Full items
VRBL:ES-B2G:02Corrected items only
VRBL:ES-B2G:03Bulk deal
VRBL:ES-B2G:04Authorized by the Tax Agency
  • You must use one of the following values for the CorrectionReasonCode element. The values are prefixed with VRBL:ES-B2G::
ValueDescription
VRBL:ES-B2G:01Invoice number
VRBL:ES-B2G:02Invoice serial number
VRBL:ES-B2G:03Issue date
VRBL:ES-B2G:04Name and surnames/Corporate name - Issuer (Sender)
VRBL:ES-B2G:05Name and surnames/Corporate name - Receiver
VRBL:ES-B2G:06Issuer's Tax Identification Number
VRBL:ES-B2G:07Receiver's Tax Identification Number
VRBL:ES-B2G:08Issuer's address
VRBL:ES-B2G:09Receiver's address
VRBL:ES-B2G:10Item line
VRBL:ES-B2G:11Applicable Tax Rate
VRBL:ES-B2G:12Applicable Tax Amount
VRBL:ES-B2G:13Applicable Date/Period
VRBL:ES-B2G:14Invoice Class
VRBL:ES-B2G:15Legal literals
VRBL:ES-B2G:16Taxable Base
VRBL:ES-B2G:80Calculation of tax outputs
VRBL:ES-B2G:81Calculation of tax inputs
VRBL:ES-B2G:82Taxable Base modified due to return of packages and packaging materials
VRBL:ES-B2G:83Taxable Base modified due to discounts and rebates
VRBL:ES-B2G:84Taxable Base modified due to firm court ruling or administrative decision
VRBL:ES-B2G:85Taxable Base modified due to unpaid outputs where there is a judgement opening insolvency proceedings

Example

<ubl:Invoice>
<!-- Code omitted for clarity -->
umentReference>
			<cec:UBLExtensions>
				<cec:UBLExtension>
					<cec:ExtensionContent>
						<vrbl:InvoiceDocumentReferenceExtension>
							<vrbl:CorrectionData>
								<vrbl:CorrectionMethod>VRBL:ES-B2G:01</vrbl:CorrectionMethod>
								<vrbl:CorrectionReasonCode>VRBL:ES-B2G:02</vrbl:CorrectionReasonCode>
								<vrbl:CorrectionReason>Additional reason</vrbl:CorrectionReason>
								<cac:InvoicePeriod>
									<cbc:StartDate>2023-09-01</cbc:StartDate>
									<cbc:EndDate>2023-09-30</cbc:EndDate>
								</cac:InvoicePeriod>
								<vrbl:InvoiceSeries>INV0000000012</vrbl:InvoiceSeries>
							</vrbl:CorrectionData>						
						</vrbl:InvoiceDocumentReferenceExtension>
					</cec:ExtensionContent>
				</cec:UBLExtension>
			</cec:UBLExtensions>
			<cbc:ID>INV1234</cbc:ID>
			<cbc:IssueDate>2023-09-01</cbc:IssueDate>
		</cac:InvoiceDocumentReference>
	</cac:BillingReference>
    <!-- Code omitted for clarity -->
</ubl:Invoice>