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_codeon pre-attendance appointments — new field alongsidedoctor_codein 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 theorigin_event_idyour 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/ackandGET /v1/integration/events/statsare 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(HMACby default, orBASIC),basic_auth_client_idandbasic_auth_client_secreton create and update, andauth_type/basic_auth_client_idon 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 aBASICsubscription. POST /v2/support-files/upload— new upload endpoint wheresupport_file_codeis optional. When provided, RCM skips classification and processes the file synchronously against the provider's support-document catalog (same behaviour as v1), returning204 No Content. When omitted, RCM persists the file and calls DVS to classify it asynchronously before validation, returning202 Acceptedwith adocument_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_COMPLETEDandDOCUMENT_VALIDATION_REJECTEDnow includefield_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, viaerrors[], so an approved document carried no information about its content. Additive:field_valuesis 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/webhooksfor managing your own subscriptions (create, pause, resume, reset circuit-breaker, delete). bonus_amount,moderator_fee_amountanddiscount_amountin theinvoice_metadataobject ofPOST /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 againstinvoice_amountnor 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 theorizon.rga.classification.enabledfeature flag (default off). See Audit events. - Webhook event catalog — a new Event catalog page lists every
event_typea 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 emptysubscribed_event_typesmatches every event type, and lists the six reserved names that are never delivered.
Changed
- ⚠️ Breaking — requesting doctor required on pre-attendance appointments.
doctor_codeanddoctor_state_codeare now required when creating or updating an appointment (manualPOST/PUTand HIS inboundPOST/PUT), anddoctor_codeonly accepts digits (the CRM number, e.g.123456). Missing fields return422with code077-0500-0009; a non-digit CRM or a UF outside the 27 returns422with the field inerrors[].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'skeep_support_file_historysetting is on, keeps the previous one as an active record and adds a new one. Before, that request returned422(0007). It applies to both upload endpoints; each channel can only replace documents it uploaded (403otherwise). What to adjust (HIS): to replace a document, send the samesupport_file_codewith explicitprovider_product_codes; without them the request still returns422. See Documents. - Pre-Attendance upload limit is 45 MB. Earlier entries gave 200 MB. Requests above the platform limit may be rejected with
500and no message instead of413.
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.
- Events —
PUT /v1/events/origin-events/{originEventId}to update an admission header (synchronous, or202+ monitor when the service type changes), its monitorgetPendingEventModificationById, andupdateEventCostCenter. - Charges —
getCharge(note: takes the internal UUID, unlikePUT/DELETEwhich take yourcharge_code),assignPackageChargeplus its status monitor, andduplicateChargeSupportFiles. - Invoices —
voidInvoiceandgetInvoiceChargeReassignmentStatus, which is the monitor the202fromreassign-support-filesalready pointed at. - Pre-Settlements — the whole delivery cycle:
validateInvoice,validateInvoicesBulk(up to 1000 invoices),generatePreSettlement,getPreSettlementDetail,deletePreSettlement. New concept page: Pre-settlements. - Accounts —
createAccountAdditionalDataBatchNumber, to attach a batch number. - Support Files —
getSupportDocumentsConfigured: whichsupport_file_codevalues an agreement actually requires, answered by the API instead of by support. - Payers —
getPayersandgetPayerByTaxId. - HIS RPA Dispatches —
updateHisRpaDispatchStatus. Note that a non-emptyerror_descriptionforces the status toERROR. - Products — register your product codes from the HIS before the charges that use them arrive.
createProviderProducttakes agreement and service pre-configuration and rejects the whole request if any code is a duplicate;createPendingProductsskips codes that already exist. You can also read the pending queue, the stored pre-configuration, and the configured products with their documents. Configuring a product's documents stays in the RCM portal. New concept page: Products.
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), thatpullrequires a JSON body (send{}), that only the positive ack is idempotent — a negative ack consumes a retry attempt — and thatpending_count/total_pendinginclude events inIN_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-namedevent_idsfails 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_iddoes not update the header, butPUT /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 returns406. (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 toCANCELLED; the status staysPENDING.CANCELLEDandCOMPLETEDare reached by updating the status withPUT /{id}. - HIS inbound identity.
(provider, external_appointment_id)is unique only among appointments that are still enabled. After a delete, resending the sameexternal_appointment_idcreates a new appointment rather than resurrecting the old one. - Error responses, missing
403s and theERRORvalue ofai_validation_statusadded across the Pre-Attendance reference;sortdocumented as camelCase entity fields. - Internal permission names removed from every page and response description — a
403now 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 returns413. The API behaviour did not change; the documentation was wrong. If you calibrated your client on 25 MB or on413, 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}/confirmand the list endpoint return the full record — nowPreAppointmentResponse, with all 37 fields including provider, payer, beneficiary, doctor, specialty andcharges. The HIS inbound operations return the condensed form, nowPreAppointmentSummaryResponse(12 fields). The newPreAppointmentChargeResponsedocuments thechargesentries. Also:charges_countanddocuments_countwere listed on responses that never returned them, and the409on 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,202in both modes, and a response withsupport_file_id/processing_mode/webhooks_will_be_emitted). They now match the real contract:file+request_datawithevents[],204in Mode A and202with{document_id, status}in Mode B. See Upload support file v2. - Docs:
document_idis not stable across the two v2 events. The classification event repeats the id returned by the202, but the validation event carries a different id (the support file record). Correlate onorigin_event_id+support_file_codeinstead. - Docs: the v1 upload response. The quickstart, the v1 upload guide and the landing page stated that
POST /v1/support-files/uploadreturns202 Acceptedwith asupport_file_idsuch assf_01HX9KP7VQ2D4FZ8N0YPRQAW6X. The endpoint returns204 No Contentwith no body, and nosf_-prefixed identifier exists in RCM. Correlate the resulting webhook onorigin_event_id+support_file_code. - Docs: v1 request fields. The v1 guide referred to
account_idand a singularcharge_codein 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/webhookscontract, event-type filtering, retry/timeout/circuit-breaker policy, tracking headers, and the auxiliary endpoints.
Changed
DOCUMENT_CLASSIFICATION_COMPLETED/DOCUMENT_CLASSIFICATION_FAILEDpayloads are nowsnake_case. These two events previously shipped theirpayloadkeys in camelCase (documentId,supportFileCode,dvsDocumentType,originEventId,chargeCode,agreementCode,invoiceNumber,fileName,classifiedAt,associatedAt) while the envelope and theDOCUMENT_VALIDATION_*payloads weresnake_case. The whole webhook contract is nowsnake_case. Breaking for receivers built against the camelCase names — see Classification events.- Classification timestamps are now valid ISO-8601.
classified_at,associated_atandfailed_atpreviously included the zone id (2026-07-31T19:00:39.534247Z[GMT]), which strict deserializers reject. They now match the format already used byvalidated_at. metadataonDOCUMENT_VALIDATION_*events is nowsnake_case(message_id,analysis_type_applied).
Deprecated
PUT /v1/accounts/origin-events/{originEventId}/agreement-codes/{agreementCode}— migrate toPUT /v3/accounts/origin-events/change-of-payer. The v1 endpoint still works but emitsDeprecation: trueandSunset: Tue, 01 Sep 2026 00:00:00 GMTheaders. 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 returns202 Acceptedand emitsDeprecation: true,Sunset: Tue, 01 Sep 2026 00:00:00 GMTand aLinkheader 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}/confirmis 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 createdPENDINGand staysPENDING.CONFIRMED,COMPLETEDandCANCELLEDremain in thestatusenum as reserved values — do not sendstatus.
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-docsrepository (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.