Skip to main content

Common Operations Overview

This section provides step-by-step guides for the most frequent ECGrid integration tasks. Every guide shows both the REST API and the SOAP API side by side, so you can choose the approach that matches your stack.

What's Covered

GuideWhat It DoesREST EndpointSOAP Method
Poll for Inbound FilesCheck your mailbox for EDI files ready to downloadPOST /v2/parcels/inbox-listParcelInBox()
Download a FileRetrieve the raw bytes of an inbound parcelPOST /v2/parcels/downloadParcelDownload()
Confirm a DownloadMark a parcel as delivered to prevent re-deliveryPOST /v2/parcels/confirmParcelDownloadConfirm()
Upload a FileSend an EDI file into ECGrid for routing and deliveryPOST /v2/parcels/uploadParcelUpload()
Send EDI to a Trading PartnerLook up a partner's ECGrid ID and deliver an EDI documentPOST /v2/parcels/uploadTPSearch() + ParcelUpload()
Create a MailboxProvision a new mailbox under your networkPOST /v2/mailboxesMailboxAdd()
Onboard a Trading PartnerRegister a new trading partner (ECGrid ID + interconnect)POST /v2/idsTPAdd() + InterconnectAdd()
Set Up an InterconnectEstablish a partner relationship between two ECGrid IDsPOST /v2/partnersInterconnectAdd()
Configure CallbacksRegister a webhook endpoint for real-time event notificationsPOST /v2/callbacksCallBackAdd()
Manage Users and PermissionsCreate users and assign auth levelsPOST /v2/usersUserAdd()
Work with Carbon CopiesMirror inbound or outbound EDI traffic to a secondary mailboxPOST /v2/carbon-copiesCarbonCopyAdd()

For most integrations, the core loop is:

  1. Poll — call the inbox list endpoint on a schedule (every 1–15 minutes is typical).
  2. Download — fetch the bytes for each parcel that is InBoxReady.
  3. Confirm — call the confirm endpoint for every parcel you successfully save. Without confirmation ECGrid will re-deliver the file.
  4. Process — parse and route the EDI content in your application.
  5. Upload — when your application has outbound EDI to send, upload it to ECGrid for delivery.
Poll inbox → Download parcel → Confirm download → Process EDI

Upload outbound

REST vs. SOAP — Quick Comparison

ConcernRESTSOAP
AuthX-API-Key header or Bearer JWTSessionID first parameter
Payload formatJSON (request/response)XML envelope
File bytesBase64-encoded JSON fieldBase64-encoded XML element
Recommended for new workYesNo — maintenance mode only

See REST vs. SOAP Guide for a full comparison.

Prerequisites

  • An active ECGrid API key (REST) or valid session obtained from Login() (SOAP).
  • Your NetworkID and MailboxID — found in the ECGrid portal or returned by the GetMe / WhoAmI endpoints.
  • For outbound sends: the trading partner's ECGridID or ISA qualifier/ID pair.

:::tip Getting Your IDs Call GET /v2/users/me (REST) or WhoAmI(sessionID) (SOAP) to retrieve your NetworkID, MailboxID, and ECGridID in one call. :::