create_swiss_qr_bill
Generate a Swiss QR bill payment slip and add it to an existing PDF. Provide the PDF path, IBAN, and creditor name to create a standardized Swiss payment QR code.
Instructions
Create the Swiss QR bill payment part on a PDF using the PDF4me CreateSwissQrBill API (POST /api/v2/CreateSwissQrBill). Required inputs per OpenAPI: docContent, document.Name, iban, crName, crAddressType. Enums match backend: address S|K; currency CHF|EUR; language German|French|Italian|English; referenceType QRR|SCOR|NON; seperatorLine LineWithScissor|Line|None (string None). All other schema fields are optional (amount, creditor/debtor address lines, reference, etc.). Reads the source PDF from pdf_file_path (docContent base64); optional document_name overrides document.Name (defaults to the file basename). Output PDF name is output_file_name if set, otherwise 'swiss_qr_bill.pdf'. Saves next to the PDF unless output_dir is set; optional isAsync / 202 polling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | Yes | ||
| amount | No | ||
| cr_city | No | ||
| cr_name | Yes | ||
| ud_city | No | ||
| ud_name | No | ||
| currency | No | CHF | |
| reference | No | ||
| output_dir | No | ||
| billing_info | No | ||
| document_name | No | ||
| language_type | No | English | |
| pdf_file_path | Yes | ||
| av1_parameters | No | ||
| av2_parameters | No | ||
| cr_postal_code | No | ||
| reference_type | No | QRR | |
| seperator_line | No | LineWithScissor | |
| ud_postal_code | No | ||
| cr_address_type | No | S | |
| ud_address_type | No | ||
| output_file_name | No | ||
| unstructured_message | No | ||
| cr_street_or_address_line1 | No | ||
| cr_street_or_address_line2 | No | ||
| ud_street_or_address_line1 | No | ||
| ud_street_or_address_line2 | No |