Skip to main content

Payload reference

Consolidated reference for RCM webhook bodies. All fields are snake_case. Null handling differs per event: validation payloads omit null fields, classification payloads send them as an explicit null — see each page.

Envelope​

Every webhook body wraps an event-specific payload:

FieldTypeDescription
event_idstring (UUID)Mirrors X-RCM-Event-ID. Idempotency key.
event_typestringMirrors X-RCM-Event-Type.
entity_typestringsupport_file (validation), support_document (classification) or charge_audit_item (RGA audit).
entity_idstring (UUID)ID of the related domain entity.
payloadobjectEvent-specific payload (below).
metadataobjectSystem metadata. null on classification events; message_id + analysis_type_applied on validation events; source, rga_report_id and s3_url on RGA audit events.
created_atstring (ISO-8601)When the event was created.
event_id vs id

Push webhook deliveries name the event id event_id (mirroring X-RCM-Event-ID). Events read through the pull API — which is how RGA audit events are consumed — name the same field id. The rest of the envelope is identical.

Event types​

event_typeentity_typePayload
DOCUMENT_CLASSIFICATION_COMPLETEDsupport_documentClassification
DOCUMENT_CLASSIFICATION_FAILEDsupport_documentClassification
DOCUMENT_VALIDATION_COMPLETEDsupport_fileValidation
DOCUMENT_VALIDATION_REJECTEDsupport_fileValidation
CHARGE_AUDIT_ACCEPTEDcharge_audit_itemAudit events
CHARGE_AUDIT_UPDATEDcharge_audit_itemAudit events
CHARGE_AUDIT_DELETEDcharge_audit_itemAudit events
CHARGE_AUDIT_PENDINGcharge_audit_itemAudit events

The table above covers the events with a stable payload. Account, charge, invoice and settlement-batch events (ACCOUNT_*, CHARGE_*, INVOICE_*, INVOICE_ASSIGNMENT_*, INVOICE_CHARGE_ASSIGNMENT_*, SETTLEMENT_GROUP_*, AUTOMATIC_SETTLEMENT_DELIVERY_ENABLED) are emitted in preview and listed with their key fields in the Event catalog.

Validation payload​

See Validation events → Field reference for the full table. Key fields: document_id, support_file_code, document_level (ACCOUNT/CHARGE), account_id, charge_id, provider_slug, origin_event_id, validation_status (APPROVED/REJECTED), precision_percentage, analysis_type_applied, document_type_code, errors[], field_values[], validated_at.

Each errors[] entry: field, value, reason, subreason, reason_key, precision_percentage.

Each field_values[] entry: field, field_label, value, precision_percentage. None of the four is guaranteed non-null.

Classification payload​

See Classification events for the full tables.

  • COMPLETED: document_id, support_file_code, dvs_document_type, origin_event_id, charge_code, agreement_code, invoice_number, file_name, classified_at, associated_at.
  • FAILED: document_id, origin_event_id, agreement_code, file_name, failed_at, error_code, error_reason, attempts.

Audit payload (RGA)​

See Audit events → Field reference for the full table. All four CHARGE_AUDIT_* events share the same flat payload of 18 fields: correlation_id, sequence, provider_guide_number, procedure_code, procedure_description, execution_date, item_status (QUESTIONED/JUSTIFIED/APPROVED), notes, denial_number, submitted_quantity, submitted_value, adjusted_quantity, adjusted_value, agreed_quantity, agreed_value, ans_registry, audit_classification (ACCEPTED/UPDATED/DELETED/PENDING), cbos_description.

metadata carries source (always orizon-rga), rga_report_id and s3_url.

Dedupe on (correlation_id, sequence). item_status is the auditor's raw decision; audit_classification is the derived business action — see the mapping table.