POST /submissions/audit
POST
Audit Reimbursement Claim Package
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| Parameter | Type | Description |
|---|---|---|
Authorizationrequired | string | Bearer token format: Bearer <API_KEY> (hp_test_...) or X-API-Key header. Example: Bearer hp_test_99281a8b |
X-Tenant-IDoptional | string | B2B Tenant identifier. Example: stepup |
Content-Typerequired | string | application/json |
Request Body
application/json| Field | Type | Description |
|---|---|---|
asyncoptional | boolean | Whether to enqueue as an asynchronous background job (default: false). When true, returns 202 Accepted with a jobId and pollUrl. Example: false |
programKeyoptional | string | Scholarship program code (e.g., FL_PEP, FL_UA). Example: FL_PEP |
vendoroptional | string | Name of the service provider or merchant. Example: Kumon Math Center |
amountoptional | number | Total reimbursement claim amount requested. Example: 180.00 |
lineItemsoptional | array<AuditLineItem> | Itemized claims with description, price, optional category/type/detail, and parental justification. |
↳descriptionrequired | string | Line item description. |
↳pricerequired | number | Item unit price. |
↳quantityoptional | number | Quantity purchased. |
↳categoryoptional | string | Primary reimbursement category. |
↳typeoptional | string | Sub-category classification. |
↳justificationoptional | string | Educational justification narrative provided by parent/guardian. |
supportingFilesoptional | array<AuditFile> | Credentials, certifications, syllabus or required documentation. |
↳namerequired | string | File name. |
↳typeoptional | string | MIME type or document type. |
↳urloptional | string | File reference URL. |
linksoptional | array<AuditLink> | Web references such as tutor credential verification URLs. |
transactionDateoptional | string | Date of transaction (YYYY-MM-DD). |
paymentDetailsoptional | object | Payment verification details: { isPaid, paymentMethod, cardLast4, proofOfPaymentType }. |
serviceDetailsoptional | object | Service provider details: { isService, providerName, servicePeriod, serviceRate, serviceType }. |
metadataoptional | object | Arbitrary passthrough metadata. |
Responses
3 status codes200 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