Skip to main content
GET
/
api
/
v2
/
receipts
/
{id}
curl -X GET "https://loveandpay.io/api/v2/receipts/550e8400-e29b-41d4-a716-446655440000" \
  -H "x-api-key: pk_live_xxx" \
  -H "x-timestamp: 1706012345678" \
  -H "x-signature: a1b2c3d4e5f6..."
{
  "success": true,
  "receipt": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "invoiceId": "550e8400-e29b-41d4-a716-446655440001",
    "imageUrl": "https://storage.loveandpay.io/receipts/abc123.jpg",
    "status": "APPROVED",
    "verifiedAmount": 1500,
    "verificationDetails": {
      "extractedAmount": 1500,
      "extractedDate": "2024-01-23",
      "confidence": 0.95,
      "bank": "Сбербанк",
      "paymentType": "СБП"
    },
    "verifiedAt": "2024-01-23T12:30:00.000Z",
    "createdAt": "2024-01-23T12:00:00.000Z"
  }
}

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 чека
{
  "success": true,
  "receipt": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "invoiceId": "550e8400-e29b-41d4-a716-446655440001",
    "imageUrl": "https://storage.loveandpay.io/receipts/abc123.jpg",
    "status": "APPROVED",
    "verifiedAmount": 1500,
    "verificationDetails": {
      "extractedAmount": 1500,
      "extractedDate": "2024-01-23",
      "confidence": 0.95,
      "bank": "Сбербанк",
      "paymentType": "СБП"
    },
    "verifiedAt": "2024-01-23T12:30:00.000Z",
    "createdAt": "2024-01-23T12:00:00.000Z"
  }
}
curl -X GET "https://loveandpay.io/api/v2/receipts/550e8400-e29b-41d4-a716-446655440000" \
  -H "x-api-key: pk_live_xxx" \
  -H "x-timestamp: 1706012345678" \
  -H "x-signature: a1b2c3d4e5f6..."

Детали проверки

ПолеОписание
extractedAmountСумма, извлечённая из чека
extractedDateДата платежа из чека
confidenceУверенность OCR (0-1)
bankОпределённый банк
paymentTypeТип платежа (СБП, перевод и т.д.)
rejectionReasonПричина отклонения (если отклонён)