A simple HTTP API that generates QR codes for payment information based on SEPA (Single Euro Payments Area) standards.
Generates a QR code based on the provided parameters.
Required Parameters:
name
- Recipient nameiban
- Bank account IBANOptional Parameters:
bic
- Bank Identifier Codeamount
- Payment amount (e.g., 100.50)reference
- Payment reference/descriptionResponse: SVG image containing the QR code
Example:
/?name=John%20Doe&iban=DE89370400440532013000&bic=COBADEFFXXX&amount=100.50&reference=Invoice123
Returns HTML documentation for the API.
https:/girocode.val.run/?name=John%20Doe&iban=DE89370400440532013000
https://girocode.val.run/?name=Acme%20Corp&iban=DE89370400440532013000&bic=COBADEFFXXX&amount=250.75&reference=Invoice%20INV-2024-001
The generated QR codes follow the SEPA QR Code standard (EPC QR Code) which includes:
The API returns appropriate HTTP status codes:
200
- Success (QR code generated)400
- Bad Request (missing required parameters)500
- Internal Server Error (QR code generation failed)This app is deployed on Val Town as an HTTP val. The main entry point is /index.ts
with HTTP trigger enabled.