Skip to main content

POST /submissions/audit

POST

Audit Reimbursement Claim Package

https://staging-api.heypeppy.ai/v1
/submissions/audit

Performs an AI-powered compliance audit on a full reimbursement claim package. It cross-references receipts with proof of payment, inspects item descriptions against Florida PEP, UA, or custom handbook guidelines, checks dollar frequency limitations, and scores educational justification statements. Can be run synchronously (default) or queued asynchronously (`async: true`).

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
Content-Typerequiredstring
application/json

Request Body

application/json
FieldTypeDescription
asyncoptionalboolean
Whether to enqueue as an asynchronous background job (default: false). When true, returns 202 Accepted with a jobId and pollUrl.
Example: false
programKeyoptionalstring
Scholarship program code (e.g., FL_PEP, FL_UA).
Example: FL_PEP
vendoroptionalstring
Name of the service provider or merchant.
Example: Kumon Math Center
amountoptionalnumber
Total reimbursement claim amount requested.
Example: 180.00
lineItemsoptionalarray<AuditLineItem>
Itemized claims with description, price, optional category/type/detail, and parental justification.
↳descriptionrequiredstring
Line item description.
↳pricerequirednumber
Item unit price.
↳quantityoptionalnumber
Quantity purchased.
↳categoryoptionalstring
Primary reimbursement category.
↳typeoptionalstring
Sub-category classification.
↳justificationoptionalstring
Educational justification narrative provided by parent/guardian.
supportingFilesoptionalarray<AuditFile>
Credentials, certifications, syllabus or required documentation.
↳namerequiredstring
File name.
↳typeoptionalstring
MIME type or document type.
↳urloptionalstring
File reference URL.
linksoptionalarray<AuditLink>
Web references such as tutor credential verification URLs.
transactionDateoptionalstring
Date of transaction (YYYY-MM-DD).
paymentDetailsoptionalobject
Payment verification details: { isPaid, paymentMethod, cardLast4, proofOfPaymentType }.
serviceDetailsoptionalobject
Service provider details: { isService, providerName, servicePeriod, serviceRate, serviceType }.
metadataoptionalobject
Arbitrary passthrough metadata.

Responses

3 status codes
200 OKAudit completed immediately (synchronous mode).
{
  "success": true,
  "tenantId": "stepup",
  "latencyMs": 1850,
  "data": {
    "confidenceScore": 95,
    "overallStatus": "pass",
    "summary": "This submission meets all core program requirements and is eligible for reimbursement approval.",
    "receiptFormat": {
      "isValid": true,
      "summary": "All required receipt format elements are present (itemized, date, provider).",
      "missingFields": []
    },
    "purchaseLimitations": {
      "hasLimitations": false,
      "summary": "No purchase frequency caps or dollar limits violated for tutoring under FL_PEP guidelines.",
      "limitations": []
    },
    "supportingDocumentation": {
      "hasRequirements": true,
      "summary": "All required supporting documentation (Instructor Credentials) is attached and verified.",
      "requiredDocuments": [
        {
          "documentType": "Instructor Credentials",
          "description": "Valid teaching certificate or credential",
          "isAttached": true,
          "status": "attached"
        }
      ]
    },
    "flags": [],
    "justificationAnalysis": [
      {
        "lineItemIndex": 0,
        "strength": "strong",
        "reason": "Justification clearly articulates the educational purpose and direct developmental benefit for the student.",
        "improvementHints": []
      }
    ],
    "disclaimer": "This audit is an AI-powered advisory review. Final reimbursement authority rests with the program scholarship granting organization."
  }
}

Interactive Test Console

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