Field Mapping for UBL Format

To extract the data in the UBL format, each tag is mapped to a field as shown in the following table:

UBL Tag Name XML Tag Name Table Field Comments
ubl:Invoice - - - -
cbc:UBLVersionID - - OUT_​INV_​VERSIONID -
cbc:InvoiceTypeCode - - OUT_​INV_​INVOICETYPECODE -
cbc:payerFullName name CI_​​PER_​​NAME.ENTITY_​​NAME OUT_​INV_​PAYERFULLNAME The data in this tag is derived from the receivers contact record where the NAME_​TYP_​FLG is set to PRIM.
cbc:custAdd1 address1 CI_​​PER.ADDRESS 1 OUT_​INV_​CUSTADDR1 -
cbc:custAdd2 address2 CI_​​PER.ADDRESS 2 OUT_​INV_​CUSTADDR2 -
cbc:custAdd3 address3 CI_​​PER.ADDRESS 3 OUT_​INV_​CUSTADDR3 -
cbc:custCity city CI_​​PER.CITY OUT_​INV_​CUSTCITY -
cbc:custCountry country CI_​​PER.COUNTRY OUT_​INV_​CUSTCOUNTRY -
cbc:DocumentCurrencyCode billCurrency OUT_​INV_​CURRENCYCD -
cbc:IssueDate billDate CI_​BILL.BILL_​DT OUT_​INV_​ISSUEDT -
cbc:ID - CI_​​BILL.BILL_​​ID OUT_​INV_​ID -
cbc:Note name - OUT_​INV_​NOTE The data in this tag is derived from the receivers name and address details.
cac:AccountingCustomerParty - CI_​​PER_​​NAME.ENTITY_​​NAME - -
cac:Party - - - -
cac:PartyName - - - -
cbc:Name legalName CI_​​PER_​​NAME.ENTITY_​​NAME OUT_​INV_​CUSTMORNAME The data is this tag is derived from the receivers record where the NAME_​TYP_​FLG is set to LGAL.
cac:AccountingSupplierParty - CI_​PER_​NAME.ENTITY_​NAME - -
cac:Party - - - -
cac:PartyName - - - -
cbc:Name legalName CI_​​PER_​​NAME.ENTITY_​​NAME OUT_​INV_​SUPPLIERNAME The data is this tag is derived from the senders record where the NAME_​TYP_​FLG is set to LGAL.
cac:LegalMonetaryTotal - - - -
cbc:PayableAmount netAmtDue - OUT_​INV_​NETAMTDUE The data in this tag is derived from the statement extractor.
cac:TaxTotal - - - -
cbc:TaxAmount totalInvTaxes - OUT_​INV_​TAXTOTAL -
currencyID billCurrency - OUT_​INV_​CURRENCY_​TAX -
cac:InvoiceLine - - - -
cac:Price - - - -
cbc:PriceAmount unitPrice - OUT_​INV_​LIN_​UNITPRICE The data in this tag is derived from the statement extractor.
cbc:ID lineNumber - OUT_​INV_​LIN_​ID The data in this tag is derived from the statement extractor.
cbc:Note descr - OUT_​INV_​LIN_​NOTE The data in this tag is derived from the statement extractor.
cbc:LineExtensionAmount amount - OUT_​INV_​LIN_​AMT The data in this tag is derived from the statement extractor.
cbc:InvoicedQuantity invoiceQuantity - OUT_​INV_​LIN_​QUANTITY The data in this tag is derived from the statement extractor.
currency billCurrency CI_​ACCT.CURRENCY_​CD OUT_​INV_​CURRENCY_​PYBLAMT -
cbc:custPostal postal CI_​​PER.POSTAL OUT_​INV_​CUSTPOSTAL -
cbc:custState state CI_​​PER.STATE OUT_​INV_​CUSTSTATE -
currency billCurrency CI_​ACCT.CURRENCY_​CD OUT_​INV_​LIN_​CURRENCY_​LINEOUTAMT -
xmlns:ap - - OUT_​INV_​NAMESPACE -
accountId - - IN_​ACCOUNT_​ID -
acctNbr - - IN_​ACCT_​NBR -
InvoiceCharge - - - -
billId2 billId - IN_​BILLID_​IC -
personId - - IN_​PERSON_​ID -
personIdNbr - - IN_​PER_​ID_​NUM -

Related Topics

For more information on... See...
C1-UBLINVOICEEXTRACT Extract Template C1-UBLINVOICEEXTRACT Extract Template