MessageLevelResponse

Base DespatchAdvice example

Sample origin: https://github.com/OpenPEPPOL/poacc-upgrade-3/blob/master/rules/examples/MessageLevelResponse_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:mlr:3"
            }
        ],
        "cbc:ProfileID": [
            {
                "_": "urn:fdc:peppol.eu:poacc:bis:mlr:3"
            }
        ],
        "cbc:ID": [
            {
                "_": "MLR-ID123"
            }
        ],
        "cbc:IssueDate": [
            {
                "_": "2016-08-15"
            }
        ],
        "cbc:IssueTime": [
            {
                "_": "12:00:00"
            }
        ],
        "cac:SenderParty": [
            {
                "cbc:EndpointID": [
                    {
                        "_": "7300010000001",
                        "$": {
                            "schemeID": "0088"
                        }
                    }
                ]
            }
        ],
        "cac:ReceiverParty": [
            {
                "cbc:EndpointID": [
                    {
                        "_": "7315458756328",
                        "$": {
                            "schemeID": "0088"
                        }
                    }
                ]
            }
        ],
        "cac:DocumentResponse": [
            {
                "cac:Response": [
                    {
                        "cbc:ResponseCode": [
                            {
                                "_": "RE"
                            }
                        ],
                        "cbc:Description": [
                            {
                                "_": "Rejected due to validation errore"
                            }
                        ]
                    }
                ],
                "cac:DocumentReference": [
                    {
                        "cbc:ID": [
                            {
                                "_": "EnvelopeID-12456789"
                            }
                        ],
                        "cbc:DocumentTypeCode": [
                            {
                                "_": "9"
                            }
                        ],
                        "cbc:VersionID": [
                            {
                                "_": "2"
                            }
                        ]
                    }
                ],
                "cac:LineResponse": [
                    {
                        "cac:LineReference": [
                            {
                                "cbc:LineID": [
                                    {
                                        "_": "/Catalogue/cac:CatalogueLine[3]/cac:Item[1]/cac:ClassifiedTaxCategory[1]/cbc:ID[1]"
                                    }
                                ]
                            }
                        ],
                        "cac:Response": [
                            {
                                "cbc:ResponseCode": [
                                    {
                                        "_": "RE"
                                    }
                                ],
                                "cbc:Description": [
                                    {
                                        "_": "Validation gives error [CL-T77-R002]- Tax categories MUST be coded using UN/ECE 5305 code list "
                                    }
                                ],
                                "cac:Status": [
                                    {
                                        "cbc:StatusReasonCode": [
                                            {
                                                "_": "BV"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

Last updated

Was this helpful?