To integrate the MySklad system with ECOM via API, you need to implement the following settings in MySklad and add the received tokens to the ECOM admin panel:
A token is created for the integration itself:
- in the user settings, select the Tokens page and there at the very top there is a Token button
- in the open pop-up, the created token is copied and saved.
Important: Do not close the pop-up if the token has not been copied, as it will not be available later!
Tokens for prices are created:
- in the Products block, select the Products and Services tab and open the settings on the right side
- here either existing prices are used, or new prices are created
- tokens for Sale Price and Wholesale Price are copied and saved
A token is being created for legal entities. faces:
- in the user settings, select the Legal page. faces
- there will be a list of all added legal entities. persons or only one
- choose which legal entity. the face is integrated and it opens
- on a new page, the appeared code is copied and saved in the link
A token is created for the Counterparty (for which orders will be exported):
- in the Contractors block, select the Contractors tab
- The required counterparty is searched for and opened for additional viewing
- on a new page, the appeared code is copied and saved in the link
After all these settings, the received tokens must be added to the ECOM admin:
- open the MoySklad integration in the admin and select “Add new integration”
- check the Active box (to enable integration) and select for which site the integration is being done
fill in the following data below:
- API token = integration token
- API link = https://api.moysklad.ru/api/remap/1.2
- Regular Price Type UUID = Sale Price token
- Discount Price Type UUID = Wholesale Price token
- Organization UUID = Legal token. faces
- Agent UUID = Counterparty token
create a setting for the parser (/admin/becor_sync/parsersettings/add/), the usual one, filling out the rules and the field for synchronization, all other fields are blanked out (the number 1 or a dash is inserted)
- a group for the parser is created (/admin/becor_sync/groupparser/add/)
- periodic tasks (/admin/djangocelerybeat/periodictask/) indicate the frequency of data synchronization
Full customization has been implemented and now parsers will be launched automatically to update data, or you can also launch them manually like a regular parser.
Was the article helpful?
Yes, thank you! Unfortunately no