API Reference
Command
New-ImageQRCodeSwiss
Generates a Swiss QR payment code.
Remarks
Use this cmdlet to render Swiss QR bill payment details into a payment QR image.
Examples
Create a Swiss QR payment code
PS>
New-ImageQRCodeSwiss -Iban 'CH4431999123000889012' -CreditorName 'Evotec GmbH' -CreditorStreet 'Main Street' -CreditorHouseNumber '1' -CreditorPostalCode '8000' -CreditorCity 'Zurich' -CreditorCountry 'CH' -ReferenceType NON -FilePath swiss.png
Renders a Swiss QR payment code from the payment fields supplied to the cmdlet.
Create a Swiss QR code with amount, message, and custom colors
PS>
New-ImageQRCodeSwiss -Iban 'CH4431999123000889012' -CreditorName 'Evotec GmbH' -CreditorStreet 'Main Street' -CreditorHouseNumber '1' -CreditorPostalCode '8000' -CreditorCity 'Zurich' -CreditorCountry 'CH' -Amount 249.99 -UnstructuredMessage 'Invoice 2026-041' -FilePath swiss-branded.png -ForegroundColor DarkBlue -BackgroundColor WhiteSmoke -PixelSize 14 -Show
Creates a styled Swiss QR payment image and opens it immediately after generation.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
New-ImageQRCodeSwiss [-AlternativeProcedure1 <String>] [-AlternativeProcedure2 <String>] [-Amount <Decimal>] [-BackgroundColor <Color>] [-BillInformation <String>] [-CreditorAddressLine1 <String>] [-CreditorAddressLine2 <String>] [-CreditorAddressType <StructuredAddress|CombinedAddress>] [-CreditorCity <String>] [-CreditorCountry <String>] [-CreditorHouseNumber <String>] -CreditorName <String> [-CreditorPostalCode <String>] [-CreditorStreet <String>] [-Currency <CHF|EUR>] [-DebtorAddressLine1 <String>] [-DebtorAddressLine2 <String>] [-DebtorAddressType <StructuredAddress|CombinedAddress>] [-DebtorCity <String>] [-DebtorCountry <String>] [-DebtorHouseNumber <String>] [-DebtorName <String>] [-DebtorPostalCode <String>] [-DebtorStreet <String>] -FilePath <String> [-ForegroundColor <Color>] -Iban <String> [-IbanType <Iban|QrIban>] [-PixelSize <Int32>] [-Reference <String>] [-ReferenceType <QRR|SCOR|NON>] [-Show] [-UnstructuredMessage <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- AlternativeProcedure1 String
- Optional first alternative procedure block.
- AlternativeProcedure2 String
- Optional second alternative procedure block.
- Amount Decimal
- Optional payment amount.
- BackgroundColor Color
- Background color of the QR code.
- BillInformation String
- Optional bill information.
- CreditorAddressLine1 String
- Creditor first address line for combined addresses.
- CreditorAddressLine2 String
- Creditor second address line for combined addresses.
- CreditorAddressType SwissQrAddressType
- Creditor address type.
- Possible values:
StructuredAddress,CombinedAddress - CreditorCity String
- Creditor city for structured addresses.
- CreditorCountry String
- Creditor two-letter country code.
- CreditorHouseNumber String
- Optional creditor house number for structured addresses.
- CreditorName String
- Creditor name.
- CreditorPostalCode String
- Creditor postal code for structured addresses.
- CreditorStreet String
- Optional creditor street for structured addresses.
- Currency SwissQrCurrency
- Payment currency.
- Possible values:
CHF,EUR - DebtorAddressLine1 String
- Debtor first address line for combined addresses.
- DebtorAddressLine2 String
- Debtor second address line for combined addresses.
- DebtorAddressType SwissQrAddressType
- Debtor address type.
- Possible values:
StructuredAddress,CombinedAddress - DebtorCity String
- Debtor city for structured addresses.
- DebtorCountry String
- Debtor two-letter country code.
- DebtorHouseNumber String
- Optional debtor house number for structured addresses.
- DebtorName String
- Debtor name.
- DebtorPostalCode String
- Debtor postal code for structured addresses.
- DebtorStreet String
- Optional debtor street for structured addresses.
- FilePath String
- The image format is inferred from the file extension.
- ForegroundColor Color
- Foreground color of QR modules.
- Iban String
- Swiss or Liechtenstein IBAN.
- IbanType SwissQrIbanType
- IBAN kind.
- Possible values:
Iban,QrIban - PixelSize Int32
- Pixel size for each QR module.
- Reference String
- Reference text for QRR or SCOR reference types.
- ReferenceType SwissQrReferenceType
- Reference type.
- Possible values:
QRR,SCOR,NON - Show SwitchParameter
- Opens the image once generated.
- UnstructuredMessage String
- Optional unstructured payment message.