Skip to main content
GET
/
api
/
v2
/
invoices
/
{id}
/
qrcode
curl -X GET "https://loveandpay.io/api/v2/invoices/550e8400-e29b-41d4-a716-446655440000/qrcode?format=png&size=400" \
  -H "x-api-key: pk_live_xxx" \
  -H "x-timestamp: 1706012345678" \
  -H "x-signature: a1b2c3d4e5f6..."
{
  "success": true,
  "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA...",
  "payload": "https://qr.nspk.ru/..."
}

Documentation Index

Fetch the complete documentation index at: https://docs.loveandpay.io/llms.txt

Use this file to discover all available pages before exploring further.

Заголовки

x-api-key
string
required
Ваш API ключ
x-timestamp
string
required
Unix timestamp в миллисекундах
x-signature
string
required
HMAC-SHA256 подпись

Path параметры

id
string
required
UUID счёта

Query параметры

format
string
default:"base64"
Формат QR кода: base64, svg, png
size
number
default:"300"
Размер в пикселях
{
  "success": true,
  "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA...",
  "payload": "https://qr.nspk.ru/..."
}
curl -X GET "https://loveandpay.io/api/v2/invoices/550e8400-e29b-41d4-a716-446655440000/qrcode?format=png&size=400" \
  -H "x-api-key: pk_live_xxx" \
  -H "x-timestamp: 1706012345678" \
  -H "x-signature: a1b2c3d4e5f6..."

Форматы QR кода

ФорматОписание
base64Data URL (по умолчанию) — можно сразу использовать в <img src="...">
svgВекторный формат — масштабируется без потери качества
pngРастровый формат — готов для печати