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.1.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:ID>123</cbc:ID> <cbc:IssueDate>2011-09-22</cbc:IssueDate> <cac:InvoicePeriod> <cbc:StartDate>2011-08-01</cbc:StartDate> <cbc:EndDate>2011-08-31</cbc:EndDate> </cac:InvoicePeriod> <cac:AccountingSupplierParty> <cac:Party> <cac:PartyName> <cbc:Name>Custom Cotter Pins</cbc:Name> </cac:PartyName> </cac:Party> </cac:AccountingSupplierParty> <cac:AccountingCustomerParty> <cac:Party> <cac:PartyName> <cbc:Name>North American Veeblefetzer</cbc:Name> </cac:PartyName> </cac:Party> </cac:AccountingCustomerParty> <cac:LegalMonetaryTotal> <cbc:PayableAmount currencyID="CAD">100.00</cbc:PayableAmount> </cac:LegalMonetaryTotal> <cac:InvoiceLine> <cbc:ID>1</cbc:ID> <cbc:LineExtensionAmount currencyID="CAD">100.00</cbc:LineExtensionAmount> <cac:Item> <cbc:Description>Cotter pin, MIL-SPEC</cbc:Description> </cac:Item> </cac:InvoiceLine> </Invoice>