Esker/4Imprint Purchase Order Integration (i.e. Sales Order Creation)
4Imprint Purchase Orders are delivered via individual .csv file to this folder via FTP on the HUB-NEDI Server.
A custom .NET console application is scheduled to run on the server every 10 minutes to process the .csv files and submit these Purchase Orders to a Netsuite suitelet: https://1157875.app.netsuite.com/app/common/scripting/script.nl?id=7450 - this suitelet uses a proprietary XML format devised by Hub Pen about a decade ago (needs serious revisioning). At the time of writing it's not clear to the author if this console application is posting directly to the Netsuite suitelet above OR to the .NET server application that serves as a proxy for Esker (internally accessible as prodwebservices.hpg.one through CloudGen). The .NET url used by Esker is at: http://services.hubpen.biz/WebServices/OCRProxy.asmx?wsdl
ESKER: http://services.hubpen.biz/WebServices/OCRProxy.asmx?wsdl
The Esker application has a custom script that is named OrderCreation_HubPenWS.js. This script contains a variable (at line 99 at time of writing) that sets the URL for Esker to post raw XML requests in a proprietary format defined by Hub Pen a long time ago. This .NET server is proxying the calls from Esker to Netsuite and also handles uploading images to the S3 bucket and passing those uploaded S3 URLs to the Netsuite suitelet:https://1157875.app.netsuite.com/app/common/scripting/script.nl?id=7450
This is the same Suitelet that 4Imprint orders use to send raw XML purchase orders into Netsuite. The only difference between the two that is currently known is that the 4Imprint application will submit the xml node for processType with a value of "Seamless" which causes some 4Imprint-specific code to execute in Netsuite and potentially in the console application. At the time of writing this author is not aware of where the source code for the deployed .NET console application resides.
On occasion FTP files stop being delivered and, in this case, Kerri Stanton or Chris Ford would normally reach out to the following contact 4Imprint to inform them that, "4Imprint Purchase Orders are not being delivered to the ftp site".
Kyle Straveler
4imprint IT
kstraveler@4imprint.com
920-236-7272 ext. 8356