SEPA QR Code Generation API

Create scannable QR codes for SEPA bank transfers in seconds

Overview

Generate QR codes for SEPA bank transfers that can be easily scanned by mobile banking apps. Perfect for invoices, donation pages, or any situation where you need to share payment details.

Simple Integration

Just one API endpoint with straightforward parameters

SEPA Compatible

Generated QR codes follow the SEPA standard format

Instant Response

Get your QR code immediately as a PNG image

Endpoint Details

POST/api/qr

Headers:

Content-Type: application/json

Request Parameters

ParameterTypeRequiredDescription
ibanstringYesValid IBAN number (spaces allowed)
amountnumberNoTransfer amount in euros
recipientstringYesName of the payment recipient
usagestringNoPayment reference or purpose

Examples

const response = await fetch('/api/qr', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    iban: 'DE89 3704 0044 0532 0130 00',
    amount: 50.00,
    recipient: 'John Doe',
    usage: 'Invoice 123'
  })
});

// Response is a PNG image
const qrCode = await response.blob();

Response Format

Successful Response

Headers:

Content-Type: image/png Content-Disposition: inline; filename="sepa-qr.png"

Body:

PNG image data containing the QR code

Error Responses

400Invalid Parameters
{
  "error": "Invalid IBAN format"
}
500Server Error
{
  "error": "Failed to generate QR code"
}

Usage Guidelines

Validation Rules

  • IBAN must be a valid format (spaces allowed)
  • Amount must be a positive number
  • Recipient name is required
  • Reference/usage is optional

Best Practices

  • Always validate IBAN format before submission
  • Use clear, descriptive recipient names
  • Include specific references for easier tracking
  • Handle both successful and error responses appropriately