Invoice
This element MUST be conveyed as the root element in any instance document based on this Schema expression
Element information
Namespace: urn:oasis:names:specification:ubl:schema:xsd:Invoice-2
Schema document: maindoc/UBL-Invoice-2.2.xsd
Type: InvoiceType
Properties: Global, Qualified
Content
- Sequence [1..1]
- ext:UBLExtensions [0..1]A container for all extensions present in the document.
- cbc:UBLVersionID [0..1]Identifies the earliest version of the UBL 2 schema for this document type that defines all of the elements that might be encountered in the current instance.
- cbc:CustomizationID [0..1]Identifies a user-defined customization of UBL for a specific use.
- cbc:ProfileID [0..1]Identifies a user-defined profile of the customization of UBL being used.
- cbc:ProfileExecutionID [0..1]Identifies an instance of executing a profile, to associate all transactions in a collaboration.
- cbc:ID [1..1]An identifier for this document, assigned by the sender.
- cbc:CopyIndicator [0..1]Indicates whether this document is a copy (true) or not (false).
- cbc:UUID [0..1]A universally unique identifier for an instance of this document.
- cbc:IssueDate [1..1]The date, assigned by the sender, on which this document was issued.
- cbc:IssueTime [0..1]The time, assigned by the sender, at which this document was issued.
- cbc:DueDate [0..1]The date on which Invoice is due.
- cbc:InvoiceTypeCode [0..1]A code signifying the type of the Invoice.
- cbc:Note [0..*]Free-form text pertinent to this document, conveying information that is not contained explicitly in other structures.
- cbc:TaxPointDate [0..1]The date of the Invoice, used to indicate the point at which tax becomes applicable.
- cbc:DocumentCurrencyCode [0..1]A code signifying the default currency for this document.
- cbc:TaxCurrencyCode [0..1]A code signifying the currency used for tax amounts in the Invoice.
- cbc:PricingCurrencyCode [0..1]A code signifying the currency used for prices in the Invoice.
- cbc:PaymentCurrencyCode [0..1]A code signifying the currency used for payment in the Invoice.
- cbc:PaymentAlternativeCurrencyCode [0..1]A code signifying the alternative currency used for payment in the Invoice.
- cbc:AccountingCostCode [0..1]The buyer's accounting code, applied to the Invoice as a whole.
- cbc:AccountingCost [0..1]The buyer's accounting code, applied to the Invoice as a whole, expressed as text.
- cbc:LineCountNumeric [0..1]The number of lines in the document.
- cbc:BuyerReference [0..1]A reference provided by the buyer used for internal routing of the document.
- cac:InvoicePeriod [0..*]A period to which the Invoice applies.
- cac:OrderReference [0..1]A reference to the Order with which this Invoice is associated.
- cac:BillingReference [0..*]A reference to a billing document associated with this document.
- cac:DespatchDocumentReference [0..*]A reference to a Despatch Advice associated with this document.
- cac:ReceiptDocumentReference [0..*]A reference to a Receipt Advice associated with this document.
- cac:StatementDocumentReference [0..*]A reference to a Statement associated with this document.
- cac:OriginatorDocumentReference [0..*]A reference to an originator document associated with this document.
- cac:ContractDocumentReference [0..*]A reference to a contract associated with this document.
- cac:AdditionalDocumentReference [0..*]A reference to an additional document associated with this document.
- cac:ProjectReference [0..*]Information about a project.
- cac:Signature [0..*]A signature applied to this document.
- cac:AccountingSupplierParty [1..1]The accounting supplier party.
- cac:AccountingCustomerParty [1..1]The accounting customer party.
- cac:PayeeParty [0..1]The payee.
- cac:BuyerCustomerParty [0..1]The buyer.
- cac:SellerSupplierParty [0..1]The seller.
- cac:TaxRepresentativeParty [0..1]The tax representative.
- cac:Delivery [0..*]A delivery associated with this document.
- cac:DeliveryTerms [0..1]A set of delivery terms associated with this document.
- cac:PaymentMeans [0..*]Expected means of payment.
- cac:PaymentTerms [0..*]A set of payment terms associated with this document.
- cac:PrepaidPayment [0..*]A prepaid payment.
- cac:AllowanceCharge [0..*]A discount or charge that applies to a price component.
- cac:TaxExchangeRate [0..1]The exchange rate between the document currency and the tax currency.
- cac:PricingExchangeRate [0..1]The exchange rate between the document currency and the pricing currency.
- cac:PaymentExchangeRate [0..1]The exchange rate between the document currency and the payment currency.
- cac:PaymentAlternativeExchangeRate [0..1]The exchange rate between the document currency and the payment alternative currency.
- cac:TaxTotal [0..*]The total amount of a specific type of tax.
- cac:WithholdingTaxTotal [0..*]The total withholding tax.
- cac:LegalMonetaryTotal [1..1]The total amount payable on the Invoice, including Allowances, Charges, and Taxes.
- cac:InvoiceLine [1..*]A line describing an invoice item.
Attributes
None
Sample instance
<Invoice> <cbc:UBLVersionID>2.0</cbc:UBLVersionID> <cbc:CustomizationID>urn:oasis:names:specification:ubl:xpath:Invoice-2.0:sbs-1.0-draft</cbc:CustomizationID> <cbc:ProfileID>bpid:urn:oasis:names:draft:bpss:ubl-2-sbs-invoice-notification-draft</cbc:ProfileID> <cbc:ID>A00095678</cbc:ID> <cbc:CopyIndicator>false</cbc:CopyIndicator> <cbc:UUID>849FBBCE-E081-40B4-906C-94C5FF9D1AC3</cbc:UUID> <cbc:IssueDate>2005-06-21</cbc:IssueDate> <cbc:InvoiceTypeCode>SalesInvoice</cbc:InvoiceTypeCode> <cbc:Note>sample</cbc:Note> <cbc:TaxPointDate>2005-06-21</cbc:TaxPointDate> <cac:OrderReference> <cbc:ID>AEG012345</cbc:ID> <cbc:SalesOrderID>CON0095678</cbc:SalesOrderID> <cbc:UUID>6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1</cbc:UUID> <cbc:IssueDate>2005-06-20</cbc:IssueDate> </cac:OrderReference> <cac:Signature> <cbc:ID>urn:oasis:names:specification:ubl:signature:Invoice</cbc:ID> <cbc:SignatureMethod>urn:oasis:names:specification:ubl:dsig:detached</cbc:SignatureMethod> <cac:SignatoryParty> <cac:PartyIdentification> <cbc:ID>MyParty</cbc:ID> </cac:PartyIdentification> </cac:SignatoryParty> <cac:DigitalSignatureAttachment> <cac:ExternalReference> <cbc:URI>UBL-Invoice-2.0-Detached-Signature.xml</cbc:URI> </cac:ExternalReference> </cac:DigitalSignatureAttachment> </cac:Signature> <cac:AccountingSupplierParty> <cbc:CustomerAssignedAccountID>CO001</cbc:CustomerAssignedAccountID> <cac:Party> <cac:PartyName> <cbc:Name>Consortial</cbc:Name> </cac:PartyName> <cac:PostalAddress> <cbc:StreetName>Busy Street</cbc:StreetName> <cbc:BuildingName>Thereabouts</cbc:BuildingName> <cbc:BuildingNumber>56A</cbc:BuildingNumber> <cbc:CityName>Farthing</cbc:CityName> <cbc:PostalZone>AA99 1BB</cbc:PostalZone> <cbc:CountrySubentity>Heremouthshire</cbc:CountrySubentity> <cac:AddressLine> <cbc:Line>The Roundabout</cbc:Line> </cac:AddressLine> <cac:Country> <cbc:IdentificationCode>GB</cbc:IdentificationCode> </cac:Country> </cac:PostalAddress> <cac:PartyTaxScheme> <cbc:RegistrationName>Farthing Purchasing Consortium</cbc:RegistrationName> <cbc:CompanyID>175 269 2355</cbc:CompanyID> <cbc:ExemptionReason>N/A</cbc:ExemptionReason> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode> </cac:TaxScheme> </cac:PartyTaxScheme> <cac:Contact> <cbc:Name>Mrs Bouquet</cbc:Name> <cbc:Telephone>0158 1233714</cbc:Telephone> <cbc:Telefax>0158 1233856</cbc:Telefax> <cbc:ElectronicMail>bouquet@fpconsortial.co.uk</cbc:ElectronicMail> </cac:Contact> </cac:Party> </cac:AccountingSupplierParty> <cac:AccountingCustomerParty> <cbc:CustomerAssignedAccountID>XFB01</cbc:CustomerAssignedAccountID> <cbc:SupplierAssignedAccountID>GT00978567</cbc:SupplierAssignedAccountID> <cac:Party> <cac:PartyName> <cbc:Name>IYT Corporation</cbc:Name> </cac:PartyName> <cac:PostalAddress> <cbc:StreetName>Avon Way</cbc:StreetName> <cbc:BuildingName>Thereabouts</cbc:BuildingName> <cbc:BuildingNumber>56A</cbc:BuildingNumber> <cbc:CityName>Bridgtow</cbc:CityName> <cbc:PostalZone>ZZ99 1ZZ</cbc:PostalZone> <cbc:CountrySubentity>Avon</cbc:CountrySubentity> <cac:AddressLine> <cbc:Line>3rd Floor, Room 5</cbc:Line> </cac:AddressLine> <cac:Country> <cbc:IdentificationCode>GB</cbc:IdentificationCode> </cac:Country> </cac:PostalAddress> <cac:PartyTaxScheme> <cbc:RegistrationName>Bridgtow District Council</cbc:RegistrationName> <cbc:CompanyID>12356478</cbc:CompanyID> <cbc:ExemptionReason>Local Authority</cbc:ExemptionReason> <cac:TaxScheme> <cbc:ID>UK VAT</cbc:ID> <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode> </cac:TaxScheme> </cac:PartyTaxScheme> <cac:Contact> <cbc:Name>Mr Fred Churchill</cbc:Name> <cbc:Telephone>0127 2653214</cbc:Telephone> <cbc:Telefax>0127 2653215</cbc:Telefax> <cbc:ElectronicMail>fred@iytcorporation.gov.uk</cbc:ElectronicMail> </cac:Contact> </cac:Party> </cac:AccountingCustomerParty> <cac:Delivery> <cbc:ActualDeliveryDate>2005-06-20</cbc:ActualDeliveryDate> <cbc:ActualDeliveryTime>11:30:00.0Z</cbc:ActualDeliveryTime> <cac:DeliveryAddress> <cbc:StreetName>Avon Way</cbc:StreetName> <cbc:BuildingName>Thereabouts</cbc:BuildingName> <cbc:BuildingNumber>56A</cbc:BuildingNumber> <cbc:CityName>Bridgtow</cbc:CityName> <cbc:PostalZone>ZZ99 1ZZ</cbc:PostalZone> <cbc:CountrySubentity>Avon</cbc:CountrySubentity> <cac:AddressLine> <cbc:Line>3rd Floor, Room 5</cbc:Line> </cac:AddressLine> <cac:Country> <cbc:IdentificationCode>GB</cbc:IdentificationCode> </cac:Country> </cac:DeliveryAddress> </cac:Delivery> <cac:PaymentMeans> <cbc:PaymentMeansCode>20</cbc:PaymentMeansCode> <cbc:PaymentDueDate>2005-07-21</cbc:PaymentDueDate> <cac:PayeeFinancialAccount> <cbc:ID>12345678</cbc:ID> <cbc:Name>Farthing Purchasing Consortium</cbc:Name> <cbc:AccountTypeCode>Current</cbc:AccountTypeCode> <cbc:CurrencyCode>GBP</cbc:CurrencyCode> <cac:FinancialInstitutionBranch> <cbc:ID>10-26-58</cbc:ID> <cbc:Name>Open Bank Ltd, Bridgstow Branch </cbc:Name> <cac:FinancialInstitution> <cbc:ID>10-26-58</cbc:ID> <cbc:Name>Open Bank Ltd</cbc:Name> <cac:Address> <cbc:StreetName>City Road</cbc:StreetName> <cbc:BuildingName>Banking House</cbc:BuildingName> <cbc:BuildingNumber>12</cbc:BuildingNumber> <cbc:CityName>London</cbc:CityName> <cbc:PostalZone>AQ1 6TH</cbc:PostalZone> <cbc:CountrySubentity>London </cbc:CountrySubentity> <cac:AddressLine> <cbc:Line>5th Floor</cbc:Line> </cac:AddressLine> <cac:Country> <cbc:IdentificationCode>GB</cbc:IdentificationCode> </cac:Country> </cac:Address> </cac:FinancialInstitution> <cac:Address> <cbc:StreetName>Busy Street</cbc:StreetName> <cbc:BuildingName>The Mall</cbc:BuildingName> <cbc:BuildingNumber>152</cbc:BuildingNumber> <cbc:CityName>Farthing</cbc:CityName> <cbc:PostalZone>AA99 1BB</cbc:PostalZone> <cbc:CountrySubentity>Heremouthshire</cbc:CountrySubentity> <cac:AddressLine> <cbc:Line>West Wing</cbc:Line> </cac:AddressLine> <cac:Country> <cbc:IdentificationCode>GB</cbc:IdentificationCode> </cac:Country> </cac:Address> </cac:FinancialInstitutionBranch> <cac:Country> <cbc:IdentificationCode>GB</cbc:IdentificationCode> </cac:Country> </cac:PayeeFinancialAccount> </cac:PaymentMeans> <cac:PaymentTerms> <cbc:Note>Payable within 1 calendar month from the invoice date</cbc:Note> </cac:PaymentTerms> <cac:AllowanceCharge> <cbc:ChargeIndicator>false</cbc:ChargeIndicator> <cbc:AllowanceChargeReasonCode>17</cbc:AllowanceChargeReasonCode> <cbc:MultiplierFactorNumeric>0.10</cbc:MultiplierFactorNumeric> <cbc:Amount currencyID="GBP">10.00</cbc:Amount> </cac:AllowanceCharge> <cac:TaxTotal> <cbc:TaxAmount currencyID="GBP">17.50</cbc:TaxAmount> <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator> <cac:TaxSubtotal> <cbc:TaxableAmount currencyID="GBP">100.00</cbc:TaxableAmount> <cbc:TaxAmount currencyID="GBP">17.50</cbc:TaxAmount> <cac:TaxCategory> <cbc:ID>A</cbc:ID> <cac:TaxScheme> <cbc:ID>UK VAT</cbc:ID> <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> <cac:LegalMonetaryTotal> <cbc:LineExtensionAmount currencyID="GBP">100.00</cbc:LineExtensionAmount> <cbc:TaxExclusiveAmount currencyID="GBP">90.00</cbc:TaxExclusiveAmount> <cbc:AllowanceTotalAmount currencyID="GBP">10.00</cbc:AllowanceTotalAmount> <cbc:PayableAmount currencyID="GBP">107.50</cbc:PayableAmount> </cac:LegalMonetaryTotal> <cac:InvoiceLine> <cbc:ID>A</cbc:ID> <cbc:InvoicedQuantity unitCode="KGM">100</cbc:InvoicedQuantity> <cbc:LineExtensionAmount currencyID="GBP">100.00</cbc:LineExtensionAmount> <cac:OrderLineReference> <cbc:LineID>1</cbc:LineID> <cbc:SalesOrderLineID>A</cbc:SalesOrderLineID> <cbc:LineStatusCode>NoStatus</cbc:LineStatusCode> <cac:OrderReference> <cbc:ID>AEG012345</cbc:ID> <cbc:SalesOrderID>CON0095678</cbc:SalesOrderID> <cbc:UUID>6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1</cbc:UUID> <cbc:IssueDate>2005-06-20</cbc:IssueDate> </cac:OrderReference> </cac:OrderLineReference> <cac:TaxTotal> <cbc:TaxAmount currencyID="GBP">17.50</cbc:TaxAmount> <cbc:TaxEvidenceIndicator>true</cbc:TaxEvidenceIndicator> <cac:TaxSubtotal> <cbc:TaxableAmount currencyID="GBP">100.00</cbc:TaxableAmount> <cbc:TaxAmount currencyID="GBP">17.50</cbc:TaxAmount> <cac:TaxCategory> <cbc:ID>A</cbc:ID> <cbc:Percent>17.5</cbc:Percent> <cac:TaxScheme> <cbc:ID>UK VAT</cbc:ID> <cbc:TaxTypeCode>VAT</cbc:TaxTypeCode> </cac:TaxScheme> </cac:TaxCategory> </cac:TaxSubtotal> </cac:TaxTotal> <cac:Item> <cbc:Description>Acme beeswax</cbc:Description> <cbc:Name>beeswax</cbc:Name> <cac:BuyersItemIdentification> <cbc:ID>6578489</cbc:ID> </cac:BuyersItemIdentification> <cac:SellersItemIdentification> <cbc:ID>17589683</cbc:ID> </cac:SellersItemIdentification> <cac:ItemInstance> <cac:LotIdentification> <cbc:LotNumberID>546378239</cbc:LotNumberID> <cbc:ExpiryDate>2010-01-01</cbc:ExpiryDate> </cac:LotIdentification> </cac:ItemInstance> </cac:Item> <cac:Price> <cbc:PriceAmount currencyID="GBP">1.00</cbc:PriceAmount> <cbc:BaseQuantity unitCode="KGM">1</cbc:BaseQuantity> </cac:Price> </cac:InvoiceLine> </Invoice>