If you are in the agricultural or heavy machinery business where Tractor Supply (TSC) is a primary vendor, having AS2 and EDI connectivity with them is a must. Here let’s discuss the related requirements, process, and common pitfalls.
TSC requires suppliers to use AS2, the secure B2B protocol, for all EDI transactions. Hence, a TSC connection is made up of two “layers”:
Similarly in the on-boarding phase, these two are set up and verified in that order. However due to the nature of EDI infrastructure at TSC side, these two are intertwined to some extent; and it is required to transmit a valid EDI file during AS2 connectivity phase as well.
Let’s go through the process, with MFT Gateway (MFTG) SaaS by Aayu Technologies as the AS2 communications provider:
You can create a station on your MFTG account, by either generating a new certificate - or uploading an existing key pair (as a key store), if you are migrating from an existing system. If you are new to TSC, make sure to use an AS2 identifier and certificate common name (CN) that represents your organization/business name.
TSC expects you to maintain two connections, with their test and production environments. Therefore, you can create two such stations on your account; the test station could typically use an AS2 ID with a “T”, “TST” or “TEST” suffix, with its own certificate.
Note: if you already have a TSC connection through another software or provider, you would instead be directed to submit a “SNOW” task through TSC’s vendor portal - in order to migrate it to the new provider and perform required re-testing.
The process typically starts with opening a support ticket through the TSC vendor portal. TSC support is generally highly responsive, and will request you to submit a set of on-boarding documents (which typically depends on the nature of your business; e.g. drop-shipping (direct-to-consumer or D2C), vs 3PL or store/DC), along with a more generic “Vendor AS2 Specifications” form - where you can fill in the details from step 1:
TSC support will also provide their AS2 configurations and certificates with you, typically as .cer
files zipped and embedded in a MS-Word document. You can then use this information to create separate AS2 partners on your MFTG account, representing their test and production endpoints.
Note: Please check the expiry date before importing the certs, because sometimes TSC may mistakenly share their “previous-year” certs which may already be expired or expiring very soon. (TSC typically uses certs with 1-year validity.)
TSC may take up to 5 days to configure the AS2 connection and whitelist your IP address on their end. When they confirm back, it is time for the next phase: testing.
Note: If you have a non-US IP address, the whitelisting may incur an extra charge, possibly borne by you. MFTG always uses US-based IP addresses, and is exempt from this concern.
TSC usually allocates two weeks of testing time, for both test and production connections. A common practice is that TSC sends a test EDI file, and you respond back with a functional acknowledgment (FA, 997).
Testing traffic from TSC is rather straightforward; if everything is set up properly, MFTG will accept the incoming file, save it into your account’s inbox, and automatically send back an AS2-level ack (MDN receipt). If anything goes wrong, general troubleshooting should help in pointing out the issue.
As mentioned earlier, when testing traffic to TSC, the file/attachment must be a valid EDI file:
01
T
vs P
) on the ISA header (ISA15
)application/edi-x12
; in MFTG side, you can use .x12
file extension to achieve this, or specify the MIME type directly if you are using other means such as the REST APIIf above are not met, TSC’s infrastructure may produce somewhat obscure errors such as the following:
If TSC reverts back with any of the above, please revise data and configurations of your sent file; you can always reach out to MFTG Support for further assistance as well.
This process may vary significantly, based on your use case; for example, for drop-shipping (direct-to-consumer or D2C, by TSC’s terminology), TSC’s D2C and EDI teams will coordinate to get the following documents and labels tested:
Aayu’s EDI Generator product is capable of handling most of these, out of the box.
When all testing is successfully concluded, TSC will send you a production approved email notification. In addition to basic conditions like the use of production connection and ISA/GS IDs, be mindful of additional EDI guidelines imposed by TSC; such as sending 846 (inventory) updates once a day, the “all orders shipped” policy, and sending 997s within 48 hours for all TSC-originated documents.
Setting up EDI and AS2 connectivity with TSC is straightforward, when you know the process and potential delays/pitfalls along the way. Whether you are starting off as a new TSC client or migrating an existing TSC AS2/EDI connection to a cheaper and more versatile solution, Aayu’s AS2 and EDI solutions can fulfill your needs with a proven track record of scalability, reliability and support, and at a fraction of the cost.
Janaka is a Software Architect at Aayu Technologies. He is experienced in diverse areas including enterprise integration, B2B communication, and cloud and serverless technologies; and has been involved in the design and implementation of almost every Aayu product. Any interesting bug will keep him up overnight, as will tea, movies, and music.