generate_message
Creates a validated ISO 20022 camt.056 XML message to cancel or recall a payment. Input a record with assignment IDs, agent BICs, transaction references, and a cancellation reason code.
Instructions
Generate a validated ISO 20022 E&I XML message from a record. For camt.056, the record cancels/recalls a previously sent payment (assignment ids + agent BICs + a list of 'transactions' with the original payment references and a cancellation reason code). Output is validated against the bundled XSD before it is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | Message fields; see get_required_fields. | |
| message_type | Yes | An E&I message type, e.g. 'camt.056.001.12' (see list_message_types). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||