How to install Calcurates Magento 2 extension | Calcurates for Magento

How to install Calcurates Magento 2 extension

Manual installation

  • Download the latest release
  • Unpack archive to app/code/Calcurates/ModuleMagento
  • Execute
  1. cd path_to_magento
    sudo -u magento_user php bin/magento setup:upgrade
    sudo -u magento_user php bin/magento cache:flush

Composer installation

  1. cd path_to_magento
    composer require calcurates/module-magento
    sudo -u magento_user php bin/magento setup:upgrade
    sudo -u magento_user php bin/magento cache:flush

Configuration instructions

  1. Login into Admin
  2. Go to "Stores -> Configuration -> Sales -> Shipping Methods"
  3. In "Calcurates [by Calcurates]":
    • "Calcurates API Token" - token obtained in Calcurates platform
    • "Magento API Token" - token should be generated and added into Calcurates platform
  4. Configure Magento API Integration token as shown in - Magento Integration Token Instructions

API Permissions

Calcurates API resource

  • Stores → Settings → All Stores → Calcurates_ModuleMagento::api and Magento_Backend::store
  • Stores → Inventory → Sources → Magento_InventoryApi::source
  • Stores → Inventory → Stocks → Magento_InventoryApi::stock
  • Stores → Inventory → Stocks → Source to Stock Assigning → Magento_InventoryApi::stock_source_link
  • Customer → Customer Groups → Magento_Customer::group

Magento endpoints that are used by Calcurates


GET /rest/V1/calcurates/inventory/sources
GET /rest/V1/inventory/stocks
GET /rest/V1/inventory/stock-source-links
GET /rest/V1/store/websites
GET /rest/V1/calcurates/categories-by-website/{id}
GET /rest/V1/store/storeViews
GET /rest/V1/calcurates/shipping-settings/{websiteId}
GET /rest/V1/calcurates/products/attributes
GET /rest/V1/customerGroups/search

Magento Versioning

Calcurates is compatible with PHP version 7.1 and higher.
Calcurates is compatible with Magento starting from 2.3.5 version up to the latest stable one.