# MessageLevelResponse

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

{% tabs %}
{% tab title="JSON" %}

```json
{
  "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"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}
```

{% endtab %}

{% tab title="XML" %}

```xml
<?xml version="1.0" encoding="UTF-8"?>
<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:CustomizationID>
	<cbc:ProfileID>urn:fdc:peppol.eu:poacc:bis:mlr:3</cbc:ProfileID>
	<cbc:ID>MLR-ID123</cbc:ID>
	<cbc:IssueDate>2016-08-15</cbc:IssueDate>
	<cbc:IssueTime>12:00:00</cbc:IssueTime>
	<cac:SenderParty>
		<cbc:EndpointID schemeID="0088">7300010000001</cbc:EndpointID>
	</cac:SenderParty>
	<cac:ReceiverParty>
		<cbc:EndpointID schemeID="0088">7315458756328</cbc:EndpointID>
	</cac:ReceiverParty>
	<cac:DocumentResponse>
		<cac:Response>
			<cbc:ResponseCode>RE</cbc:ResponseCode>
			<cbc:Description>Rejected due to validation errore</cbc:Description>
		</cac:Response>
		<cac:DocumentReference>
			<cbc:ID>EnvelopeID-12456789</cbc:ID>
			<cbc:DocumentTypeCode>9</cbc:DocumentTypeCode>
			<cbc:VersionID>2</cbc:VersionID>
		</cac:DocumentReference>
		<cac:LineResponse>
			<cac:LineReference>
				<cbc:LineID>/Catalogue/cac:CatalogueLine[3]/cac:Item[1]/cac:ClassifiedTaxCategory[1]/cbc:ID[1]</cbc:LineID>
			</cac:LineReference>
			<cac:Response>
				<cbc:ResponseCode>RE</cbc:ResponseCode>
				<cbc:Description>Validation gives error [CL-T77-R002]- Tax categories MUST be coded using UN/ECE 5305 code list </cbc:Description>
				<cac:Status>
					<cbc:StatusReasonCode>BV</cbc:StatusReasonCode>
				</cac:Status>
			</cac:Response>
		</cac:LineResponse>
	</cac:DocumentResponse>
</ApplicationResponse>
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api.qvalia.io/sample-data/api-sample-data/messagelevelresponse.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
