UBL 2.1 Invoice Application Response Outbound

The data mapping and sample of the transformed outbound payload for the UBL-2-1-InvoiceApplicationResponse-Out message definition are outlined in this section.

Status Reason Codes

The values provided in the DisplayedField for this message are mapped to the PEPPOL Status Reason Codes as displayed in this table.

Displayed Field Status Reason Code
Can match to only one line OTH
Duplicate invoice number OTH
Duplicate Line Number OTH
Inconsistent currency information OTH
Invalid invoice amount OTH
Inconsistent price, quantity, and amount OTH
Inconsistent PO line information REF
Inconsistent PO supplier information REF
Invalid Item REF
Invalid PO information REF
Invalid PO line number REF
Invalid PO number REF
Invalid PO release information REF
Invalid PO release number REF
Invalid PO schedule number REF
Missing PO Number REF
No PO line number REF
No PO schedule number REF
No blanket PO release information REF
Invalid quantity QTY
Billed quantity is below zero QTY

Data Mapping

This table shows where the data received from the getSupplierRejectionsXmlResponse or the getSupplierRejectionsResponse is mapped to in the UBL-2-1-InvoiceApplicationResponse-Out message definition along with the values that are set in the XSL file. You can access the XSD file by exporting the message transformation package for additional information.

getSupplierRejectionsXmlResponse/result or getSupplierRejectionsResponse/result UBL-2-1-InvoiceApplicationResponse-Out

ApplicationResponse/CustomizationID

Set to urn:fdc:peppol.eu:poacc:trns:invoice_response:3 in the XSL.

ApplicationResponse/ProfileID

Set to urn:fdc:peppol.eu:poacc:bis:invoice_response:3 in the XSL.

/processOutboundCollaboration/OutboundCollaboration/MessageID ApplicationResponse/ID

ApplicationResponse/IssueDate

Set to the current date in the XSL.

ApplicationResponse/SenderParty/EndpointID/@schemeID

Set to VAT in the XSL.

ProcessingConfiguration/GlobalSenderId ApplicationResponse/SenderParty/EndpointID

ApplicationResponse/ReceiverParty/EndpointID/@schemeID

Set to VAT in the XSL.

ProcessingConfiguration/ExtPartnerId ApplicationResponse/ReceiverParty/EndpointID
result[1]/VendorName ApplicationResponse/ReceiverParty/PartyLegalEntity/RegistrationName
Document Response - A document response is created for each invoice

ApplicationResponse/DocumentResponse/Response/ResponseCode/listID

Set to UNCL4343OpSubset in the XSL.

ApplicationResponse/DocumentResponse/Response/ResponseCode

Set to RE in the XSL.

ApplicationResponse/DocumentResponse/Response/EffectiveDate

Set to the current date in the XSL.

ApplicationResponse/DocumentResponse/Response/Status/StatusReasonCode/@listID

Set to OPStatusReason in the XSL.

DisplayedField

ApplicationResponse/DocumentResponse/Response/Status/StatusReasonCode

The StatusReasonCode is populated with the value that corresponds to the DisplayedField as outlined in the Status Reason Code table.

Description

ApplicationResponse/DocumentResponse/Response/Status/StatusReason

This value is populated as follows.
  • If the Description is not blank, it is concatenated with the TokenName1 and TokenValue1 through TokenName10 and TokenValue10 in the format:

    Description:-TokenName1-TokenValue1........... :-TokenName10-TokenValue10

  • If the Description field is blank, the DisplayedField is concatenated with the TokenName1 and TokenValue1 through TokenName10 and TokenValue10 in the format:

    DisplayedField:-TokenName1-TokenValue1........... :-TokenName10-TokenValue10

TokenName1...TokenName10
TokenName1...TokenName10
Invoicenum or Invoicenumber
ApplicationResponse/DocumentResponse/DocumentReference/ID
  • If root is getSupplierRejectionsResponse, maps Invoicenum.
  • If root is getSupplierRejectionsXmlResponse, maps Invoicenumber.

ApplicationResponse/DocumentResponse/DocumentReference/DocumentTypeCode/@listID

Set to UNCL1001 in the XSL.

ApplicationResponse/DocumentResponse/DocumentReference/DocumentTypeCode

Set to 380 in the XSL.

Sample Payload

Here's a sample payload:

<ubl:ApplicationResponse xmlns="http://xmlns.oracle.com/apps/scm/cmk" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:types="http://xmlns.oracle.com/apps/financials/payables/invoices/quickInvoices/invoiceInterfaceService/types/" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cmk="http://xmlns.oracle.com/apps/scm/cmk" xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2" xmlns:tns="http://xmlns.oracle.com/apps/financials/payables/invoices/quickInvoices/invoiceInterfaceService/">
      <cbc:CustomizationID>urn:fdc:peppol.eu:poacc:trns:invoice_response:3</cbc:CustomizationID>
      <cbc:ProfileID>urn:fdc:peppol.eu:poacc:bis:invoice_response:3</cbc:ProfileID>
      <cbc:ID>OUT_109070</cbc:ID>
      <cbc:IssueDate>2021-07-26</cbc:IssueDate>
      <cac:SenderParty>
         <cbc:EndpointID schemeID="VAT">cmkbuyer1</cbc:EndpointID>
      </cac:SenderParty>
      <cac:ReceiverParty>
         <cbc:EndpointID schemeID="VAT">Invoice Rejected2</cbc:EndpointID>
         <cac:PartyLegalEntity>
            <cbc:RegistrationName>CMK_PO_21</cbc:RegistrationName>
         </cac:PartyLegalEntity>
      </cac:ReceiverParty>
      <cac:DocumentResponse>
         <cac:Response>
            <cbc:ResponseCode listID="UNCL4343OpSubset">RE</cbc:ResponseCode>
            <cbc:EffectiveDate>2021-07-26</cbc:EffectiveDate>
            <cac:Status>
               <cbc:StatusReasonCode listID="OPStatusReason">REF</cbc:StatusReasonCode>
               <cbc:StatusReason>Invalid PO line number :-PO NUMBER -1004572 :-PO LINE NUMBER -20</cbc:StatusReason>
            </cac:Status>
            <cac:Status>
               <cbc:StatusReasonCode listID="OPStatusReason">REF</cbc:StatusReasonCode>
               <cbc:StatusReason>Invalid PO schedule number :-PO SHIPMENT NUMBER -20</cbc:StatusReason>
            </cac:Status>
         </cac:Response>
         <cac:DocumentReference>
            <cbc:ID>6789034_A1</cbc:ID>
            <cbc:DocumentTypeCode listID="UNCL1001">380</cbc:DocumentTypeCode>
         </cac:DocumentReference>
      </cac:DocumentResponse>
      <cac:DocumentResponse>
         <cac:Response>
            <cbc:ResponseCode listID="UNCL4343OpSubset">RE</cbc:ResponseCode>
            <cbc:EffectiveDate>2021-07-26</cbc:EffectiveDate>
            <cac:Status>
               <cbc:StatusReasonCode listID="OPStatusReason">REF</cbc:StatusReasonCode>
               <cbc:StatusReason>Invalid PO line number :-PO NUMBER -1004574 :-PO LINE NUMBER -20</cbc:StatusReason>
            </cac:Status>
            <cac:Status>
               <cbc:StatusReasonCode listID="OPStatusReason">REF</cbc:StatusReasonCode>
               <cbc:StatusReason>Invalid PO schedule number :-PO SHIPMENT NUMBER -20</cbc:StatusReason>
            </cac:Status>
         </cac:Response>
         <cac:DocumentReference>
            <cbc:ID>6789034_A2</cbc:ID>
            <cbc:DocumentTypeCode listID="UNCL1001">380</cbc:DocumentTypeCode>
         </cac:DocumentReference>
      </cac:DocumentResponse>
      <cac:DocumentResponse>
         <cac:Response>
            <cbc:ResponseCode listID="UNCL4343OpSubset">RE</cbc:ResponseCode>
            <cbc:EffectiveDate>2021-07-26</cbc:EffectiveDate>
            <cac:Status>
               <cbc:StatusReasonCode listID="OPStatusReason">REF</cbc:StatusReasonCode>
               <cbc:StatusReason>Invalid PO line number :-PO NUMBER -1004575 :-PO LINE NUMBER -20</cbc:StatusReason>
            </cac:Status>
            <cac:Status>
               <cbc:StatusReasonCode listID="OPStatusReason">REF</cbc:StatusReasonCode>
               <cbc:StatusReason>Invalid PO schedule number :-PO SHIPMENT NUMBER -20</cbc:StatusReason>
            </cac:Status>
         </cac:Response>
         <cac:DocumentReference>
            <cbc:ID>6789034_A3</cbc:ID>
            <cbc:DocumentTypeCode listID="UNCL1001">380</cbc:DocumentTypeCode>
         </cac:DocumentReference>
      </cac:DocumentResponse>
   </ubl:ApplicationResponse>