Skip to main content

Changelog

This page tracks every change to the public RCM API contract — new endpoints, deprecations, breaking changes, and notable additive updates.

The format is reverse chronological (newest first) and follows the spirit of Keep a Changelog.


Unreleased​

Added​

  • doctor_state_code on pre-attendance appointments — new field alongside doctor_code in the HIS inbound and manual create/update requests, and in the appointment response: the Brazilian UF that issued the requesting doctor's CRM.
  • GET /v1/accounts/base-accounts/origin-events/{originEventId}/deep-info — read the full state of the base account(s) behind one encounter by the origin_event_id your HIS sent: status, payer, invoice, agreement and plan coverage, concurrent-audit flags, plus nested events and support files. Already available in the API; only now documented. See Get deep base account information.
  • Integration Events pull API — POST /v1/integration/events/pull, POST /v1/integration/events/ack and GET /v1/integration/events/stats are now in the reference under the Integration Events tag. This is the pull-based alternative to push webhooks, and the channel through which RGA audit events are consumed. Already available in the API; the reference was missing it. Batch size is capped server-side at 50.
  • HTTP Basic authentication for webhook subscriptions is now in the reference — auth_type (HMAC by default, or BASIC), basic_auth_client_id and basic_auth_client_secret on create and update, and auth_type / basic_auth_client_id on the subscription resource. The secret is stored encrypted and never returned. The behaviour already existed and was documented in Webhook authentication, but the API reference did not carry the fields, so clients generated from the spec could not create a BASIC subscription.
  • POST /v2/support-files/upload — new upload endpoint where support_file_code is optional. When provided, RCM skips classification and processes the file synchronously against the provider's support-document catalog (same behaviour as v1), returning 204 No Content. When omitted, RCM persists the file and calls DVS to classify it asynchronously before validation, returning 202 Accepted with a document_id. See Upload support file v2 guide.
  • Webhook events for RCM: DOCUMENT_CLASSIFICATION_COMPLETED, DOCUMENT_CLASSIFICATION_FAILED, DOCUMENT_VALIDATION_COMPLETED, DOCUMENT_VALIDATION_REJECTED. Authenticated per subscription with HMAC-SHA256 (default) or HTTP Basic. See Webhook events and Authentication.
  • field_values[] in validation webhook payloads — DOCUMENT_VALIDATION_COMPLETED and DOCUMENT_VALIDATION_REJECTED now include field_values, the list of every field the AI extracted from the document, with its human-readable label (field_label) and confidence (precision_percentage). Previously only the fields that failed were reported, via errors[], so an approved document carried no information about its content. Additive: field_values is omitted when DVS did not produce it, and [] when it did but found nothing — the two cases are distinguishable. See Validation events → Field reference.
  • Webhook Subscriptions API under /v1/integration/webhooks for managing your own subscriptions (create, pause, resume, reset circuit-breaker, delete).
  • bonus_amount, moderator_fee_amount and discount_amount in the invoice_metadata object of POST /v1/invoices/assign-charges. Three optional numeric amounts reported by the HIS for the invoice. They are stored as received: RCM does not validate them against invoice_amount nor against the charges assigned to the invoice. Additive and backwards compatible — existing integrations need no change.
  • RGA audit events (Brazil / Orizon): CHARGE_AUDIT_ACCEPTED, CHARGE_AUDIT_UPDATED, CHARGE_AUDIT_DELETED, CHARGE_AUDIT_PENDING — one event per audited item, with the payer's decision already derived. Consumed over the integration pull API (/v1/integration/events). Gated by the orizon.rga.classification.enabled feature flag (default off). See Audit events.
  • Webhook event catalog — a new Event catalog page lists every event_type a subscription can receive. Besides the eight stable document and audit events, RCM emits account, charge, invoice, invoice-assignment and settlement-batch events (ACCOUNT_*, CHARGE_*, INVOICE_*, INVOICE_ASSIGNMENT_*, INVOICE_CHARGE_ASSIGNMENT_*, SETTLEMENT_GROUP_*, AUTOMATIC_SETTLEMENT_DELIVERY_ENABLED) that were previously described as "on the roadmap". They are published as preview: emitted today, payload not frozen, enabled per provider. The page also states that an empty subscribed_event_types matches every event type, and lists the six reserved names that are never delivered.

Changed​

  • ⚠️ Breaking — requesting doctor required on pre-attendance appointments. doctor_code and doctor_state_code are now required when creating or updating an appointment (manual POST/PUT and HIS inbound POST/PUT), and doctor_code only accepts digits (the CRM number, e.g. 123456). Missing fields return 422 with code 077-0500-0009; a non-digit CRM or a UF outside the 27 returns 422 with the field in errors[].path. A HIS charge re-send over an existing appointment does not read them. What to adjust: send both fields on every create and update, and strip any prefix from the CRM (CRM-SP 12345 → 12345).
  • Pre-Attendance: re-uploading a document now replaces it. Sending a file for a document that is already received, with explicit provider_product_codes, now overwrites it — or, when the support document's keep_support_file_history setting is on, keeps the previous one as an active record and adds a new one. Before, that request returned 422 (0007). It applies to both upload endpoints; each channel can only replace documents it uploaded (403 otherwise). What to adjust (HIS): to replace a document, send the same support_file_code with explicit provider_product_codes; without them the request still returns 422. See Documents.
  • Pre-Attendance upload limit is 45 MB. Earlier entries gave 200 MB. Requests above the platform limit may be rejected with 500 and no message instead of 413.

Documented (existing endpoints, newly published)​

These operations were already live in the API — this release documents them for the first time. Nothing about their behaviour changed.

Fixed​

  • Integration Events: the operational contract is now documented. The pull / ack / stats endpoints now state the visibility timeout (300 s by default), the server-side cap on max_batch_size (50, even though the schema allows 100), that pull requires a JSON body (send {}), that only the positive ack is idempotent — a negative ack consumes a retry attempt — and that pending_count / total_pending include events in IN_PROGRESS. These are configuration defaults and can be tuned per environment. Request fields are snake_case: a camelCase field is silently ignored rather than rejected, so a mis-named event_ids fails validation while the pull appears to work.
  • An event is not read-only after creation. The docs said it was. Resending a charge with the same origin_event_id does not update the header, but PUT /v1/events/origin-events/{originEventId} does.
  • Pre-Attendance document upload limit is 25 MB — a different service and a different limit from the RCM support-file uploads above, which accept 200 MB. Pre-Attendance returns 413; RCM returns 406. (Corrected: the 25 MB figure was wrong, see the Pre-Attendance upload limit entry below.)
  • Pre-Attendance status machine. DELETE /v1/checkin/appointments/{id} is a soft-delete that does not move the pre-appointment to CANCELLED; the status stays PENDING. CANCELLED and COMPLETED are reached by updating the status with PUT /{id}.
  • HIS inbound identity. (provider, external_appointment_id) is unique only among appointments that are still enabled. After a delete, resending the same external_appointment_id creates a new appointment rather than resurrecting the old one.
  • Error responses, missing 403s and the ERROR value of ai_validation_status added across the Pre-Attendance reference; sort documented as camelCase entity fields.
  • Internal permission names removed from every page and response description — a 403 now describes the condition, not the permission that was missing.
  • Upload size limit and error status corrected in the docs. The RCM support-file upload endpoints accept up to 200 MB (not 25 MB, as previously documented), and an oversized file returns 406 Not Acceptable — RCM never returns 413. The API behaviour did not change; the documentation was wrong. If you calibrated your client on 25 MB or on 413, adjust it.
  • Pre-Attendance upload limit corrected to 200 MB. An earlier entry above gave 25 MB for Pre-Attendance document uploads; the effective limit is 200 MB, as the upload guide and the API reference state. The API behaviour did not change; the documentation was wrong.
  • Pre-Attendance: the pre-appointment response schemas were split. One schema was documenting two different payloads. GET/PUT /v1/checkin/appointments/{id}, POST /v1/checkin/appointments, POST /{id}/confirm and the list endpoint return the full record — now PreAppointmentResponse, with all 37 fields including provider, payer, beneficiary, doctor, specialty and charges. The HIS inbound operations return the condensed form, now PreAppointmentSummaryResponse (12 fields). The new PreAppointmentChargeResponse documents the charges entries. Also: charges_count and documents_count were listed on responses that never returned them, and the 409 on confirm was typed with the response schema instead of the error schema.
  • Docs: the v2 upload contract. The Spanish and Portuguese versions of the v2 upload guide described a contract the API never implemented (flat form fields, account_id, charge_code, 202 in both modes, and a response with support_file_id/processing_mode/webhooks_will_be_emitted). They now match the real contract: file + request_data with events[], 204 in Mode A and 202 with {document_id, status} in Mode B. See Upload support file v2.
  • Docs: document_id is not stable across the two v2 events. The classification event repeats the id returned by the 202, but the validation event carries a different id (the support file record). Correlate on origin_event_id + support_file_code instead.
  • Docs: the v1 upload response. The quickstart, the v1 upload guide and the landing page stated that POST /v1/support-files/upload returns 202 Accepted with a support_file_id such as sf_01HX9KP7VQ2D4FZ8N0YPRQAW6X. The endpoint returns 204 No Content with no body, and no sf_-prefixed identifier exists in RCM. Correlate the resulting webhook on origin_event_id + support_file_code.
  • Docs: v1 request fields. The v1 guide referred to account_id and a singular charge_code in its prerequisites, error table and edge cases. v1 takes the same shape as v2: events[].origin_event_id, events[].agreement_code, events[].charge_codes.
  • Docs: webhook subscriptions. Added Managing subscriptions covering the full /v1/integration/webhooks contract, event-type filtering, retry/timeout/circuit-breaker policy, tracking headers, and the auxiliary endpoints.

Changed​

  • DOCUMENT_CLASSIFICATION_COMPLETED / DOCUMENT_CLASSIFICATION_FAILED payloads are now snake_case. These two events previously shipped their payload keys in camelCase (documentId, supportFileCode, dvsDocumentType, originEventId, chargeCode, agreementCode, invoiceNumber, fileName, classifiedAt, associatedAt) while the envelope and the DOCUMENT_VALIDATION_* payloads were snake_case. The whole webhook contract is now snake_case. Breaking for receivers built against the camelCase names — see Classification events.
  • Classification timestamps are now valid ISO-8601. classified_at, associated_at and failed_at previously included the zone id (2026-07-31T19:00:39.534247Z[GMT]), which strict deserializers reject. They now match the format already used by validated_at.
  • metadata on DOCUMENT_VALIDATION_* events is now snake_case (message_id, analysis_type_applied).

Deprecated​

  • PUT /v1/accounts/origin-events/{originEventId}/agreement-codes/{agreementCode} — migrate to PUT /v3/accounts/origin-events/change-of-payer. The v1 endpoint still works but emits Deprecation: true and Sunset: Tue, 01 Sep 2026 00:00:00 GMT headers. It will be removed after 1 Sep 2026.
  • PUT /v2/accounts/origin-events/{originEventId}/agreement-codes/{agreementCode} — same Sunset as the v1 route, and the same successor: PUT /v3/accounts/origin-events/change-of-payer. It returns 202 Accepted and emits Deprecation: true, Sunset: Tue, 01 Sep 2026 00:00:00 GMT and a Link header pointing at v3. It will be removed after 1 Sep 2026 — if you are still calling the v2 route, migrate now.

Removed​

  • POST /v1/checkin/appointments/{id}/confirm is no longer documented. Confirming a pre-appointment is not part of the functional scope of Pre-Attendance V1: this version has no status evolution, no confirmation step and no screen that represents one, so an integration must not call it. The route still answers — nothing was removed from the API and no behaviour changed — but it is out of the contract you should build against, and it will be specified properly in a future version together with the business rules for pre-appointment states. The Pre-appointments lifecycle now documents what V1 actually does: every pre-appointment is created PENDING and stays PENDING. CONFIRMED, COMPLETED and CANCELLED remain in the status enum as reserved values — do not send status.

How to subscribe to changes​

This changelog is regenerated on every release. To get notified ahead of time:

  • For breaking changes and deprecations, OSIGU support emails the technical contacts on file for each client_id. Make sure your team's contact email is current.
  • For all changes, watch the rcm-docs repository (or the public mirror at https://rcm-docs.osigu.com) for changes to this page.

If you spot something missing or wrong in the changelog, email support@osigu.com.