For integrations activated on contract v3, see Import operation scoring. The v2 behavior below remains available for historical results and integrations using the earlier activation.
Processing contract
Each analysis run receives:- Operation identifiers:
operationId,partnerOperationId, and organization scope. - The approved initial document requirement context:
requirementsAssessmentId, approved document types, policy version, and redacted context summary. - Declared operation metadata: nature, amount, currency, settlement date, and description.
- Customer metadata when provided: legal name, masked tax ID, CNAE, and partner customer ID.
- Document metadata: declared document type, document ID, file name, content type, size, storage key, and upload session.
- File bytes read privately by the worker.
schemaVersion,analysisRunId,analysisOutcome,qualityStatus, andanalysisMode.- The original 22 requested fields plus beneficiary, account number, economic owner, and evidence-backed nature code, each with
FOUND,NOT_FOUND,UNCERTAIN, orCONFLICTstatus. - Confidence and evidence per field: document, page, bounding box when available, redacted excerpt, excerpt hash, and source/version metadata.
- Completeness result against the approved document requirement list. The final analysis does not invent a default document list.
- Content validation flags deduplicated by reason code, field, and evidence.
- ICC / trade-finance checks.
- CNAE and operation nature result.
- Fraud and duplicate signals.
- e-CAM C212 draft fields.
- Deterministic score breakdown, reason codes, impact, short explanation, and risk level. Scores remain unset when the engine must abstain.
- Recommended next status.
analysisDisposition, plus the immutable workflow, model, prompt, rules, partner-policy, regulatory-corpus, OCR, and RegDocs provenance snapshot.
PARTIAL, HUMAN_REVIEW_REQUIRED, TECHNICAL_FAILURE, or POLICY_NOT_CONFIGURED. It never produces a ready result.
The operation-level Decision Pack preserves the score, recommendation, findings,
and evidence from that completed review. A separately generated consolidated
summary is asynchronous: it can be preparing or unavailable without changing the
persisted analysis, score, recommendation, or the availability of human review.
Persistence model
PayFi stores both a normalized projection and a redacted analysis record for each processed document. The normalized projection powers partner operation status, webhooks, filtering, and human review. It includes score, risk level, missing document types, document status, latest job status, and technical job error when a job fails. The redacted analysis record preserves the typed Analysis response after redaction. It is intentionally not an unrestricted 1:1 copy of every internal workflow field: raw documents, prompts, completions, credentials, presigned URLs, signatures, full tax IDs, and internal traces are not returned through public APIs. Timeline events persist only scoped IDs, stage, status, duration, and version metadata; raw input/output/error payloads, original file names, hashes, and PII are not written for new v2 events. The Pack and its original score and recommendation are immutable review records. A human decision records its own snapshot; it is not inferred from the score or recommendation. When later documents require re-evaluation, PayFi creates a new review record instead of mutating the earlier one. Documents expected only after closing are retained as follow-up work and do not change the completeness of the current review. Documentary risk and technical failure are separate:PROCESSED+SUCCEEDED+ low score or critical flags means the pipeline completed and found documentary risk.PROCESSING_FAILED+FAILED_FINALmeans the pipeline could not produce a valid analysis result after retries.
missingDocumentTypes and moves the operation to ACTION_REQUIRED. A scan or missing metadata alone is informational and is not treated as fraud.
Processing stages
Operational outcomes
READY_FOR_MANUAL_REVIEW means the latest Decision Pack is current and the
operation can be presented for human review. The Pack can still contain findings
that the reviewer must consider; neither a score nor a recommendation decides the
operation. A pending or unavailable consolidated summary also does not erase the
persisted facts or prevent a human decision.
ACTION_REQUIRED means PayFi needs more partner/client action before a reviewer should make a final decision. Common causes are missing mandatory documents, malformed bank details, unparseable scans, unsupported document types, or contradictions that require a corrected document.
PROCESSING_FAILED means the pipeline could not produce a valid result after retries. REVIEW_REQUIRED, INVALID, and DEGRADED outcomes never become an automatic approval and require a reinforced human review. With a current Decision Pack and the applicable authorization, a reviewer can still record a human decision when the score is unavailable, processing has failed, or findings remain; the reviewer must explicitly confirm and justify the decision when the review requires it. Reprocessing is idempotent for the same input snapshot and creates a later review when the operation has new material; it does not alter a prior Pack or recorded decision.