About the API Integrations category

There are two M1 APIs:
a) The generic “ERP” api which is missing a ton of functions.
b) The M1 Public API which is starting to have a lot of the necessary functions.

The APIs can be viewed at https://integrations.ecimanufacturing.com
For on-premise users, you will need to contact your ECI sales rep to acquire the public API “module”.

Install the module and configure the API service by going to “M1 Database Maintenance” and selecting the “M1 API Service” button.

To enable https (highly recommended, please don’t use http in live networks), associate an ssl certificate with the same port via the method explained here https://stackoverflow.com/questions/9641723/using-netsh-bind-an-ssl-certificate-to-a-port-number-is-failing

You can view the existing certificate bindings using the command from administrator cli “netsh http show sslcert”

To add a new binding, for example, running as administrator in the Windows CLI on the M1 server (note the appid doesn’t really matter since it is for your own recordkeeping, it just needs to be in the correct format):

netsh http add sslcert ipport=0.0.0.0:443 certhash=0000000000003ed3820c08da5e6 appid=‘{00112233-4455-6677-8899-AABBCCDDEEFF}’

The endpoint documentation is at http:your-m1-server-address:your-port/api/help/index.html

To authorize your API requests, add a header with key “Authorization” and value “apikey your-api-id:your-api-key”.