InvoiceResponse

Base InvoiceResponse example

Sample origin: https://github.com/OpenPEPPOL/poacc-upgrade-3/blob/master/rules/examples/InvoiceResponse_Example.xml

{
    "ApplicationResponse": {
        "$": {
            "xmlns": "urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2",
            "xmlns:cac": "urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2",
            "xmlns:cbc": "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
        },
        "cbc:CustomizationID": [
            {
                "_": "urn:fdc:peppol.eu:poacc:trns:invoice_response:3"
            }
        ],
        "cbc:ProfileID": [
            {
                "_": "urn:fdc:peppol.eu:poacc:bis:invoice_response:3"
            }
        ],
        "cbc:ID": [
            {
                "_": "imrid001"
            }
        ],
        "cbc:IssueDate": [
            {
                "_": "2017-12-01"
            }
        ],
        "cbc:IssueTime": [
            {
                "_": "12:00:00"
            }
        ],
        "cbc:Note": [
            {
                "_": "text"
            }
        ],
        "cac:SenderParty": [
            {
                "cbc:EndpointID": [
                    {
                        "_": "5798000012349",
                        "$": {
                            "schemeID": "0088"
                        }
                    }
                ],
                "cac:PartyIdentification": [
                    {
                        "cbc:ID": [
                            {
                                "_": "DK88776655",
                                "$": {
                                    "schemeID": "0184"
                                }
                            }
                        ]
                    }
                ],
                "cac:PartyLegalEntity": [
                    {
                        "cbc:RegistrationName": [
                            {
                                "_": "Buyer organization"
                            }
                        ]
                    }
                ],
                "cac:Contact": [
                    {
                        "cbc:Name": [
                            {
                                "_": "Jens Jensen"
                            }
                        ],
                        "cbc:Telephone": [
                            {
                                "_": "23232323"
                            }
                        ],
                        "cbc:ElectronicMail": [
                            {
                                "_": "[email protected]"
                            }
                        ]
                    }
                ]
            }
        ],
        "cac:ReceiverParty": [
            {
                "cbc:EndpointID": [
                    {
                        "_": "7330001000000",
                        "$": {
                            "schemeID": "0088"
                        }
                    }
                ],
                "cac:PartyIdentification": [
                    {
                        "cbc:ID": [
                            {
                                "_": "987654325",
                                "$": {
                                    "schemeID": "0192"
                                }
                            }
                        ]
                    }
                ],
                "cac:PartyLegalEntity": [
                    {
                        "cbc:RegistrationName": [
                            {
                                "_": "Seller company"
                            }
                        ]
                    }
                ]
            }
        ],
        "cac:DocumentResponse": [
            {
                "cac:Response": [
                    {
                        "cbc:ResponseCode": [
                            {
                                "_": "RE"
                            }
                        ],
                        "cbc:EffectiveDate": [
                            {
                                "_": "2018-09-24"
                            }
                        ],
                        "cac:Status": [
                            {
                                "cbc:StatusReasonCode": [
                                    {
                                        "_": "NOA",
                                        "$": {
                                            "listID": "OPStatusAction"
                                        }
                                    }
                                ],
                                "cbc:StatusReason": [
                                    {
                                        "_": "VAT Reference not found"
                                    }
                                ],
                                "cac:Condition": [
                                    {
                                        "cbc:AttributeID": [
                                            {
                                                "_": "BT-48"
                                            }
                                        ],
                                        "cbc:Description": [
                                            {
                                                "_": "EU123456789"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "cac:DocumentReference": [
                    {
                        "cbc:ID": [
                            {
                                "_": "inv021"
                            }
                        ],
                        "cbc:IssueDate": [
                            {
                                "_": "2018-09-22"
                            }
                        ],
                        "cbc:DocumentTypeCode": [
                            {
                                "_": "380"
                            }
                        ]
                    }
                ],
                "cac:IssuerParty": [
                    {
                        "cac:PartyIdentification": [
                            {
                                "cbc:ID": [
                                    {
                                        "_": "123456785",
                                        "$": {
                                            "schemeID": "0192"
                                        }
                                    }
                                ]
                            }
                        ],
                        "cac:PartyName": [
                            {
                                "cbc:Name": [
                                    {
                                        "_": "Test Company AS"
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

Last updated

Was this helpful?