View Single Post
Old 11-08-2016, 03:55 PM
Todd Gould's Avatar
Todd Gould Todd Gould is offline
Loren Data Corp.
Join Date: May 2005
Location: Loren Data Corp.
Posts: 303
Send a message via Skype™ to Todd Gould


ParcelInBox() and ParcelInBoxEx() are used to check for incoming. The Ex commands with an APIKey assigned to a Network level user allows you to check through all your customer mailboxes with MailboxID:=-1 meaning ďallĒ mailboxes. The non Ex only checks the mailbox assigned to the APIKey used.

ParcelDownload() gets the data

ParcelDownloadConfirm() clears it from the InBox


ParcelUpload() and ParcelUploadExA() post the data to the APIKey or specified MailboxID. With both of these, a ParcelID will be returned that you can use to track the data through the system. A unique feature is if you upload to MailboxID:=0 for a data that is in an Unmanaged mailbox, the system will ultimately figure out which MailboxID to assign it to for you based on Sender QID. (Note that ParcelUploadEx() was a different functionality and is deprecated.)

All successful data goes through this process:
  • ParcelID for the uploaded data
  • InterchangeID(s) for the interchanges within the data (we highly recommend one interchange per file uploaded, but the system can handle multiple; however, by X12.56 rules if one interchange is corrupt/invalid in the file, we cancel them all).
  • ParcelID outbound for each InterchangeID for the file to be downloaded to the receiverís system
Tracking requires looking at the ParcelIDInfo object for the ParcelID, examining the InterchangeIDInfo object within and then calling InterchangeInfo() for that InterchangeID to get the information on the final outbound ParcelIDInfo object.

All status codes are listed on

For parcels/interchanges that fail, there is an e-mail message and they can also be tracked through ParcelOutBoxError() and ParcelOutBoxErrorEx() calls.

The ParcelOutBoxArchive(), ParcelOutBoxArchiveEx(), ParcelInBoxArchive() and ParcelInBoxArchiveEx() are used to search for historical information.

ParcelUploadDirected() is used to send non-EDI data and requires the Sender and Receiver ECGridIDs to be used.

There are GZip variants that allow the data to be GZipped prior to uploading/downloading to reduce file size. Iím not sure anyone is using these, but they do work.


Reply With Quote