build_mls_message
Build a document-level MLS response with acknowledgment, acceptance, or rejection codes, and return it base64-encoded.
Instructions
Build a document-level MLS response and return it base64-encoded.
For per-line responses, build the document directly with
mcp_einvoicing_core.peppol.mls.build_mls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mls_id | Yes | The ``cbc:ID`` of this MLS document. | |
| issue_date | Yes | ISO date string, e.g. "2026-08-23". | |
| issue_time | No | Optional ISO time string, e.g. "12:00:00Z". | |
| description | No | Optional human-readable response text. | |
| sender_value | Yes | Sending Access Point's endpoint value. | |
| response_code | Yes | "AB" (Acknowledged), "AP" (Accepted), or "RE" (Rejected). | |
| receiver_value | Yes | Receiving endpoint value. | |
| sender_scheme_id | Yes | ICD scheme of the sending Access Point's endpoint. | |
| receiver_scheme_id | Yes | ICD scheme of the receiving endpoint (normally the original message's SBDH ``MLS_TO`` scheme). | |
| status_reason_code | No | Optional: "SV", "BV", "BW", or "FD" (required by the Schematron when response_code is "RE"). | |
| document_reference_id | Yes | The SBDH ``InstanceIdentifier`` of the source message this MLS reports on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||