Skip to main content
GET
/
api
/
v2
/
invoices
curl -X GET "https://loveandpay.io/api/v2/invoices?limit=50&status=PENDING" \
  -H "x-api-key: pk_live_xxx" \
  -H "x-timestamp: 1706012345678" \
  -H "x-signature: a1b2c3d4e5f6..."
{
  "success": true,
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "invoiceNumber": "INV-1234567890-abc123",
      "amount": 1500.50,
      "currency": "RUB",
      "description": "Оплата заказа #12345",
      "customerEmail": "client@example.com",
      "customerName": "Иван Иванов",
      "status": "PENDING",
      "createdAt": "2024-01-23T12:00:00.000Z",
      "expiresAt": "2024-01-24T12:00:00.000Z",
      "paidAt": null,
      "qrCode": "data:image/png;base64,...",
      "qrPayload": "https://qr.nspk.ru/...",
      "externalOrderId": "550e8400-e29b-41d4-a716-446655440001",
      "kycRequired": false,
      "kycVerified": false,
      "paymentLink": "https://loveandpay.io/pay/INV-1234567890-abc123"
    }
  ],
  "pagination": {
    "total": 150,
    "limit": 50,
    "offset": 0,
    "pages": 3
  }
}

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 без query параметров!)

Query параметры

limit
number
default:"50"
Количество записей (максимум 1000)
offset
number
default:"0"
Смещение для пагинации
status
string
Фильтр по статусу: PENDING, PAID, EXPIRED, CANCELLED
{
  "success": true,
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "invoiceNumber": "INV-1234567890-abc123",
      "amount": 1500.50,
      "currency": "RUB",
      "description": "Оплата заказа #12345",
      "customerEmail": "client@example.com",
      "customerName": "Иван Иванов",
      "status": "PENDING",
      "createdAt": "2024-01-23T12:00:00.000Z",
      "expiresAt": "2024-01-24T12:00:00.000Z",
      "paidAt": null,
      "qrCode": "data:image/png;base64,...",
      "qrPayload": "https://qr.nspk.ru/...",
      "externalOrderId": "550e8400-e29b-41d4-a716-446655440001",
      "kycRequired": false,
      "kycVerified": false,
      "paymentLink": "https://loveandpay.io/pay/INV-1234567890-abc123"
    }
  ],
  "pagination": {
    "total": 150,
    "limit": 50,
    "offset": 0,
    "pages": 3
  }
}
curl -X GET "https://loveandpay.io/api/v2/invoices?limit=50&status=PENDING" \
  -H "x-api-key: pk_live_xxx" \
  -H "x-timestamp: 1706012345678" \
  -H "x-signature: a1b2c3d4e5f6..."
Важно! При генерации подписи для GET запросов PATH не должен содержать query параметры.