generate_epc_code
Build a static EPC/SEPA payment payload (EPC069-12, the GiroCode/BezahlCode European banks scan) and optionally render it as a QR image. Returns the payload string by default. Static and untracked — nothing is saved to the library. Requires an OpenQR API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bic | No | Optional BIC, 8 or 11 chars. | |
| iban | Yes | IBAN, with or without spaces (checksum-validated). | |
| name | Yes | Beneficiary name, ≤70 chars. | |
| size | No | Image size, 96–2048 (default 512). | |
| text | No | Unstructured remittance text, ≤140 chars. Mutually exclusive with reference. | |
| force | No | Build even when validation reports problems (they return as warnings). | |
| amount | No | Optional EUR amount, e.g. 12.34. | |
| format | No | Return a rendered image instead of the payload string. | |
| purpose | No | Optional 4-character purpose code. | |
| reference | No | ISO 11649 creditor reference, ≤35 chars. Mutually exclusive with text. |