Skip to main content

Connection types

Outcome

You pick the right transport for a given partner, configure it correctly on the first try, and know what to expect from each transport when something fails.

Prerequisites

A partner record created (see 2.1 — Onboard a new partner).

The three transports at a glance

TransportDirection we initiateCadenceBest for
SFTPWe connect to the partner (outbound poll). Partner or we initiate (inbound poll).Cron-scheduled.Daily / hourly batch — most common for state Medicaid + clearinghouses.
AS2Mutual; both sides can push.Real-time.Some commercial payers; legacy direct-payer connections.
REAL_TIMEWe HTTP POST to the partner.Per request.Real-time eligibility (270/271), real-time auth (278).

Each partner record carries exactly one connection type. A partner that serves real-time eligibility and batch claims gets two registrations.

SFTP

The most common transport. Configuration on the Connection tab:

FieldNotes
HostDNS name of the partner's SFTP server.
PortDefault 22; partners often use a non-standard port.
UsernameThe login the partner provisioned for us.
AuthenticationEither a password (vaulted) or a private key (vaulted). One only — populated mutually exclusive.
Outbound directoryRemote path we drop submitted files into (e.g. /in, /upload).
Inbound directoryRemote path the partner drops responses into (e.g. /out, /download).
Archive directoryOptional — where we move successfully-fetched files for auditability.
Cron scheduleWhen to poll the inbound directory. Common: */15 * * * * (every 15 min) or @hourly.
Outbound triggerPush immediately on submission, or batch on cron.

Probing an SFTP partner exercises:

Common failures:

FailureCause
connection refusedWrong host or port; or partner firewall has not allowed our outbound IP.
authentication failedCredentials wrong or expired.
permission denied (path)Username does not have read on the inbound directory.

AS2

Less common in modern integrations but still used by some commercial payers. Configuration:

FieldNotes
Endpoint URLPartner's AS2 receiver URL.
Our certificateOur public certificate for partner-side encryption.
Partner certificatePartner's public certificate we use to encrypt.
MDNWhether we request a Message Disposition Notification (acknowledgment). Default: synchronous.
Compressionnone / gzip; per partner agreement.
Encryption algorithmNegotiated; commonly aes256-cbc.

AS2 has more failure modes than SFTP because of the certificate handshake. Probing exercises a HEAD or GET against the endpoint plus a small encrypted ping payload.

Real-time HTTP

Used for synchronous transactions — primarily 270/271 eligibility and real-time 278 authorization. Configuration:

FieldNotes
Endpoint URLThe partner's HTTPS endpoint.
Auth methodbearer, basic, mTLS.
Bearer token / username+password / client certVaulted.
Request formatEDI (raw X12 in the request body) or JSON-wrapped (a thin envelope around the X12). Per partner.
TimeoutDefault 30s; sometimes raised for slow partners.
Retry policyPer-request retry count + backoff.

Probing a real-time partner runs a synthetic minimal request (a 270 with a known never-existed member) and confirms a 271 with AAA*N*…*72*… comes back — the partner exists and is responding.

Choosing the transport

When in doubt, use SFTP — every partner supports it and it's the most forgiving when one side has an outage.

Validation

CheckExpected
Test connection succeeds for the chosen transportYes.
First inbound file appears in /transactions within one cadence cycleYes (SFTP); within seconds (AS2 push, REAL_TIME response).
Outbound submission produces a submitted recordYes — visible on /transactions filtered to this partner.

Troubleshooting

SymptomCauseFix
SFTP probe fails: "host key mismatch"Partner rotated their host keyConfirm with partner; update the known-hosts entry via the gateway admin endpoint.
AS2 probe fails: "MDN not received"Partner is not sending the ack within the timeoutLengthen timeout; or switch to async MDN.
Real-time times out repeatedly on one transaction shapePartner is slow on full-set 270sUse service-type-specific 270s; or raise timeout.
SFTP works for inbound but not outboundOutbound directory permissions or path mismatchConfirm the partner expects files in the path you configured.

Next

2.3 — Credential vault & rotation