Skip to main content

GET /jobs/{jobId}

GET

Get Job Status & Results

https://staging-api.heypeppy.ai/v1
/jobs/{jobId}

Polls an asynchronous job previously enqueued by `POST /receipts/extract`, `POST /submissions/audit`, or batch processing. When `status` becomes `completed`, the `result` object contains the full extracted receipt data or compliance audit findings.

Headers

HTTP Headers
ParameterTypeDescription
Authorizationrequiredstring
Bearer token format: Bearer <API_KEY> (hp_test_...) or X-API-Key header.
Example: Bearer hp_test_99281a8b
X-Tenant-IDoptionalstring
B2B Tenant identifier.
Example: stepup

Path Parameters

URI Path
ParameterTypeDescription
jobIdrequiredstring
The unique alphanumeric job identifier returned when enqueuing the task.
Example: job_stepup_1726590000000_abc123

Responses

3 status codes
200 OKJob details and results retrieved successfully.
{
  "jobId": "job_stepup_1726590000000_abc123",
  "tenantId": "stepup",
  "type": "receipt_extraction",
  "status": "completed",
  "createdAt": "2026-09-17T13:00:00.000Z",
  "queuedAt": "2026-09-17T13:00:00.000Z",
  "processingStartedAt": "2026-09-17T13:00:01.000Z",
  "completedAt": "2026-09-17T13:00:04.000Z",
  "failedAt": null,
  "latencyMs": 3120,
  "webhookStatus": "delivered",
  "metadata": {},
  "result": {
    "extractedData": {
      "vendor": "Kumon Math & Reading Center",
      "amount": 180,
      "subtotal": 180,
      "taxAmount": 0,
      "discountAmount": null,
      "transactionDate": "2026-09-02",
      "invoiceType": "service",
      "items": [
        {
          "description": "Monthly Math Tutoring - September 2026",
          "price": 180,
          "quantity": 1
        }
      ],
      "paymentDetails": {
        "isPaid": true,
        "paymentMethod": "card",
        "cardLast4": "4021",
        "proofOfPaymentType": "card"
      },
      "studentDetails": {
        "detectedStudentName": "Emma Davis",
        "matchedChildId": "stu_1002",
        "matchedChildName": "Emma Davis",
        "matchConfidence": 0.96
      },
      "serviceDetails": {
        "isService": true,
        "providerName": "Kumon Math & Reading Center",
        "servicePeriod": "September 2026",
        "serviceRate": 180,
        "serviceType": "Tutoring"
      },
      "confidence": 0.97,
      "auditResult": {
        "summary": "Document contains valid proof of payment.",
        "isServiceBased": true,
        "isUnpaidInvoice": false,
        "hasLineItems": true,
        "hasTransactionDate": true,
        "hasProviderName": true,
        "hasTotalPrice": true,
        "hasPaidIndication": true,
        "hasPaymentMethod": true,
        "hasServicePeriod": true,
        "hasServiceRate": true
      }
    },
    "fileInfo": {
      "isPdf": true,
      "convertedToImage": true,
      "fileSize": 184500
    }
  },
  "error": null
}

Interactive Test Console

https://staging-api.heypeppy.ai/v1Sandbox / Staging
Bearer
{jobId}