SCM Mycroft Assistant API Documentation
The customer is provided with the following procedure in order to work with the API:
- The customer creates two XML files. The first is titled “data.xml” and it contains information on balances, income, and expenditure. The second is “catalog.xml”. Files contains background information including: products transferred (for instance, between warehouses), purchases, sales, etc. This information can be customized.
After these files are created, they need to be packed in “data.zip” archive. The system accepts the data from the files only if they are correctly named. Double-checking the file names will provide optimum results. Samples of the upload files, along with a description, are presented in Section B.
Once the files have been properly compiled and named, the customer accesses the server at https://i.mycroft2b.com and establishes a connection. This must pass HTTP Basic Authentication, and will, as long as the correct using login and password are entered as requested.
Next, the customer sends a PUT request to the server, using the archive created at step 1. The address for this is: https://i.mycroft2b.com/api/Instances/[KEY]/Import. In the above address, [KEY] is the actual key provided at registration. The customer’s login and password are required at this point.
You will know that your data has been successfully loaded by a response of “true.” An unsuccessful load will return a “false”.
After the response is received, the connection is broken.
You can manually load the data.zip file created at step 1 into Mycroft Assistant. To do so, you need to:
a) Log in to the system at https://i.mycroft2b.com using your login and password.
b) Open the menu at the right top and select “Preferences.”
c) In the “Data” section, click on the cloud and select the file you created at step 1 (or drag the file using the drug-and-drop approach)..
Learn more about this API