Native X12 (Direct): Exchange X12 Documents with a Partner over SFTP, a Shared Folder, a VAN Mailbox or AS2
Connect a trading partner directly — no EDI platform in between. Docklify translates 26 X12 document types itself, exchanges 997 acknowledgments automatically, and tracks partner onboarding step by step.
The Native X12 (Direct) connector is Docklify’s own X12 translation engine, not another platform’s API. It covers 26 document types: 850 Purchase Order, 855 PO Acknowledgment, 856 ASN, 940 / 945 warehouse shipping documents, 997 Functional Acknowledgment, 810 Invoice, 846 Inventory Advice, 943 / 944 stock transfer documents, 947 Inventory Adjustment, 852 Sales Data, 867 Product Transfer, 861 Receiving Advice, 820 Payment / Remittance, 204 Load Tender, 990 Tender Response, 214 Shipment Status, 210 Freight Invoice, 830 Planning Schedule, 832 Price / Sales Catalog, 812 Debit / Credit Adjustment, 844 / 849 account adjustment documents, 211 Bill of Lading and 824 Application Advice. Translation and transport are separate choices: the same partner profile, variant and mappings keep working when a partner moves from one transport to another.
Before you start: get these from your partner#
- Both sides’ ISA and GS identifiers, the X12 version (004010 or 005010), which document types you will exchange, and the partner’s implementation guide. Most partner differences live in the guide as code values — plan for code-table entries, not new mappings.
- For file exchange: the SFTP host, port and login (username + password, or an SSH key), plus the server’s host key fingerprint (SHA256). You register the fingerprint in the connection before the first test: the channel checks it on every connect and stops on purpose if the server key ever changes, so a changed key is always a human decision, never a silent surprise.
- For AS2: the partner’s AS2 ID, their AS2 URL, whether they sign, encrypt and compress, how they want the MDN (synchronous, asynchronous or none), and their certificate — see the AS2 section below.
Pick the transport: five ways files and messages move#
| Transport | How it works | Use it when |
|---|---|---|
| SFTP (we poll the partner) | Docklify connects to the partner’s (or the VAN’s) SFTP server, picks files up from their outbox folder and drops ours into their inbox folder. Folder names are set in the partner profile exactly as agreed. | The partner runs an SFTP server — the most common 3PL setup. |
| Shared folder (directory) | Docklify reads and writes a folder that both sides can reach (a mounted or synced directory), using the same inbox / outbox convention. | Both sides already share storage, or a gateway drops files into a folder for you. |
| VAN mailbox (over SFTP) | Files are exchanged through a VAN mailbox using the SFTP mechanics above; the VAN stores and forwards between networks. The business acknowledgment is still the 997 — a VAN delivery receipt is only a channel signal, never a business acceptance. | The partner insists on a VAN, or one mailbox must serve many partners. |
| AS2 (direct, signed) | Messages are pushed directly between the two AS2 stations over HTTPS, signed and optionally encrypted, with an MDN receipt. Certificates are exchanged before anything flows — see the AS2 section below. | Large retailers require AS2, or you want a signed, receipted direct link. |
| Our SFTP receiving gateway (partner pushes to us) | The partner uploads files to a Docklify-run SFTP gateway, one private folder per partner, public-key sign-in only; the platform picks the files up from there. This receiving side is provisioned per partner by the platform team — ask support to enable it for a partner who can only push. | The partner has no server to poll and insists on pushing files to you. |
File naming and completion rules (all file transports)
- Write under a temporary name first, then rename: upload the file with a .tmp suffix and rename it to its final name only when the upload is complete. The platform skips files that still look unfinished, so a half-written file is never picked up mid-transfer.
- Give final files a meaningful name that carries the document type and your reference — for example 850_PO-12345.edi. Any name works, but a meaningful one makes the Transmissions ledger easy to reconcile with your partner.
- Oversized files are left in place and reported, never consumed silently: the default limit is 10 MB per file (the partner profile can set a different one). Split a larger interchange into several files instead of letting it sit there.
- On the Docklify receiving gateway, sign-in is by SSH public key only — there are no passwords. Your home folder has two subfolders: outbound/ is your drop box (put the files you send us there) and inbound/ is your pick-up box (acknowledgments and documents we send you land there; it is read-only). You cannot see any other partner’s folders. Your gateway address, account name and the gateway host-key fingerprint are handed to you out-of-band when your account is provisioned — verify the fingerprint at first sign-in.
- Always deliver to the gateway address in your partner profile and your provisioning notice. If the platform ever moves your deliveries to a different receiving node, you will be notified in advance with the new address and host-key fingerprint — your delivery address never changes without notice.
Set it up in the same EDI wizard#
- Open Integration → EDI → Connections, click “+ New connection” and pick “Native X12 (Direct)” as the platform. Fill in the connection name and the retailer code as usual.
- Enter the channel credentials and the host key fingerprint (for SFTP), then run Test connection. A fingerprint problem or a login problem is reported in plain language — fix that first; the channel will not connect around it.
- In the partner profile, set the transport, your ISA ID and the partner’s ISA ID, the X12 version, and the inbound / outbound folder names exactly as agreed with the partner. Keep test and production apart: use test mode with the partner’s test folders while you onboard — test documents never create production orders.
- Clone the Generic X12 templates for the document types you enabled and adjust them to the partner’s implementation guide. Most partner differences are code-table entries — for example UPC → your SKU in the upc_to_sku table — not new mappings.
- Send and receive a test round with the partner before going live: one 850 in, one 945 out, and check that both sides’ 997 acknowledgments line up in Transmissions.
Partner onboarding: six stages, no skipped steps#
A native X12 connection carries an onboarding progress with six stages: Draft → Configured → Connectivity verified → Test exchange → Partner certification → Production. You can only move forward one stage at a time, each step records who moved it, when, and the evidence (a test document or certification pack), and you can step back to rework at any time. Production is special: it can only be entered from Partner certification, and only with a named confirmer on your side. If a partner is slow to certify, the stage simply waits at Partner certification — it never times out into a failure. Before the Configured stage is accepted, a checklist verifies the profile is complete: partner ID set, transport configured, certificates ready where AS2 needs them, and AS2 inbound signature enforcement on (a plaintext exception must be declared explicitly in the profile).
How the 997 acknowledgment works#
Every inbound interchange that passes validation gets a 997 Functional Acknowledgment back through the same channel, recorded as its own row in Transmissions and linked to the original. Outbound documents wait for the partner’s 997: the Transmissions list shows the acknowledgment status (pending, accepted, partially accepted, rejected). A rejection is never retried automatically — open the original transmission, read the segment-level errors, fix the document or the mapping, and send a new document with new control numbers. If a partner’s 997 does not arrive in time, the connection raises a timeout warning first and an alert later, so silence is visible instead of being mistaken for success.
Prefer AS2? The same connector speaks AS2#
- Certificates first: generate your AS2 certificate on the connection (or import a CA-issued one from a PKCS#12 file), download the certificate exchange package and send it to your partner, and import the partner’s certificate from the package they send you. Your private key stays in the encrypted credential vault — it is never shown or exported. Certificate actions are permission-controlled (view to list, edit to change).
- In the partner profile’s AS2 section, set both AS2 IDs, the partner’s AS2 URL, signing / encryption / compression, and the MDN mode (synchronous, asynchronous or none; signed MDN if the partner asks for it). Inbound messages are checked against the profile: a message from an unrecognized sender, or with a signature that does not verify, is refused and recorded — never silently accepted.
- Rotating a certificate is a two-certificate overlap, never a surprise: the new certificate only starts signing after your partner confirms they have registered it, and the old one keeps verifying incoming messages during the overlap. The system warns you 60, 30 and 7 days before a certificate expires, and stops signed sending / receiving when one has expired — by design, not by accident.
Your AS2 receiving address
Your partners send AS2 messages to your own receiving address: https://integration.docklify.com/api/integration/edi/as2/ followed by your organization’s slug (its short identifier on the platform). Give this address together with your AS2 ID and your certificate exchange package to each partner before testing. If you are not sure what your slug is, ask Docklify support to confirm your exact address — a message sent to a wrong address is refused and recorded, never delivered to another tenant.