How to setup the Magento 2 API Permissions?

It is important to setup the Magento API permissions and Optiply permissions to have a working integration. Several steps are needed, which are listed below.

  1. Go to the Admin backoffice, System > Integrations

    magento backoffice

  2. Edit the Integration already created and used to send credentials

    magento select integration

  3. On Basic Settings > API, set
    Resource Access -  All (for everything)
    or Custom (for individually choose permissions by resource)magento API resource

    magento api resource settings

  4. For a Custom setup, we should have at least:
    Orders (Sales)

    Products (Catalog)

    stockStatus (Stores > Settings > Configuration > Inventory Section)

    magento api resource checked 1 magento api resource filled 2