> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Magento with Access Token – StackOne Hub

> Link a Magento account in the StackOne Hub using Access Token. End-user guide to authorize the integration and start using Magento actions.

> [!WARNING]
>
> On Magento Open Source and Adobe Commerce 2.4.4 and later, integration access tokens are rejected as bearer tokens unless an admin sets Allow OAuth Access Tokens to be used as standalone Bearer tokens to Yes. Without this setting every request fails with 401 Unauthorized.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Allow integration tokens as bearer tokens

Magento 2.4.4 and later disable standalone bearer use of integration tokens by default. Enable it once for your store. Skip this on 2.4.3 and earlier.

**1. Change the OAuth consumer setting**

Sign in to the Magento Admin.

<ul>
  <li>Go to **Stores** > **Configuration** > **Services** > **OAuth**.</li>
  <li>Expand **Consumer Settings**.</li>
  <li>Set **Allow OAuth Access Tokens to be used as standalone Bearer tokens** to **Yes**.</li>
  <li>Click **Save Config**.</li>
  <li>If you manage configuration from the command line, run `bin/magento config:set oauth/consumer/enable_integration_as_bearer 1` and flush the cache instead.</li>
</ul>

## Create and activate an integration

An integration grants API access to the resources you select and generates the Access Token you enter below.

**1. Add the integration**

On the Admin sidebar, go to **System** > **Extensions** > **Integrations** and click **Add New Integration**.

<ul>
  <li>**Name**: `StackOne`</li>
  <li>**Callback URL** and **Identity link URL**: leave empty</li>
  <li>**Your Password**: your Admin password, under **Current User Identity Verification**</li>
</ul>

**2. Grant API resources**

Enables actions: Add Credit Memo Comment, Add Item To Cart, Add Order Comment, Add Product Media, Add Shipment Comment, Add Tier Price, Add Tracking To Shipment, Assign Attribute To Set, Assign Product To Category, Bulk Assign Sources, Bulk Unassign Sources, Cancel Order, Capture Payment (Preview), Check Product Salability, Create Attribute Group, Create Attribute Set, Create CMS Block, Create CMS Page, Create Cart, Create Cart Price Rule, Create Category, Create Credit Memo, Create Credit Memo (Refund), Create Customer Group, Create Invoice, Create Product, Create Shipment, Create Stock Transfer, Create Tax Rate, Create Tax Rule, Delete Attribute Set, Delete CMS Block, Delete CMS Page, Delete Cart Price Rule, Delete Category, Delete Coupon, Delete Customer, Delete Customer Group, Delete Product, Delete Tax Rate, Delete Tax Rule, Delete Tracking From Shipment, Estimate Shipping Methods, Generate Coupons, Get Attribute Set, Get Attribute Types, Get CMS Block, Get CMS Page, Get Cart, Get Cart Price Rule, Get Cart Totals, Get Category, Get Category Products, Get Coupon, Get Credit Memo, Get Customer, Get Customer Group, Get Default Customer Group, Get Invoice, Get Low Stock Items, Get Order, Get Payment Methods, Get Payment Transaction (Preview), Get Product Attribute, Get Product Attributes, Get Product By SKU, Get Shipment, Get Shipment Label, Get Source Items, Get Stock Status, Get Tax Rate, Get Tax Rule, Get Tier Prices, List CMS Blocks, List CMS Pages, List Cart Price Rules, List Categories, List Coupons, List Customer Groups, List Customers, List Inventory Sources, List Invoices, List Orders, List Payment Transactions, List Product Attribute Sets, List Products, List Store Configurations, List Store Groups, List Store Views, List Tax Classes, List Tax Rates, List Tax Rules, List Tier Prices, List Websites, Move Category, Place Order (Customer Cart), Refund Payment, Remove Cart Item, Remove Coupon From Cart, Search Categories, Search Credit Memos, Search Invoices, Search Shipments, Send Credit Memo Email, Send Invoice Email, Send Shipment Email, Set Default Customer Group, Set Shipping Information, Unassign Attribute From Set, Update Attribute Set, Update Cart Item, Update Cart Price Rule, Update Category, Update Customer, Update Customer Group, Update Product, Update Source Items, Update Stock Item, Update Tax Rate, Update Tax Rule, Validate Group Permissions, Void Payment (Preview)

In the left panel, click **API**.

<ul>
  <li>Set **Resource Access** to **All** to allow every action in this connector.</li>
  <li>Or choose **Custom** and select only the resources you need, such as Catalog, Carts, Customers, Sales, Marketing, Content, Stores and Inventory. Actions that use a resource you did not select return 401 Unauthorized.</li>
  <li>Click **Save**.</li>
</ul>

<ul>
  <li>
    Magento\_Backend::store
  </li>

  <li>
    Magento\_Cart::manage
  </li>

  <li>
    Magento\_Catalog::attributes\_attributes
  </li>

  <li>
    Magento\_Catalog::catalog
  </li>

  <li>
    Magento\_Catalog::catalog\_inventory
  </li>

  <li>
    Magento\_Catalog::categories
  </li>

  <li>
    Magento\_Catalog::products
  </li>

  <li>
    Magento\_Catalog::sets
  </li>

  <li>
    Magento\_Cms::block
  </li>

  <li>
    Magento\_Cms::page
  </li>

  <li>
    Magento\_Cms::page\_delete
  </li>

  <li>
    Magento\_Cms::save
  </li>

  <li>
    Magento\_Customer::customer
  </li>

  <li>
    Magento\_Customer::delete
  </li>

  <li>
    Magento\_Customer::group
  </li>

  <li>
    Magento\_Customer::manage
  </li>

  <li>
    Magento\_InventoryApi::source
  </li>

  <li>
    Magento\_InventoryApi::stock\_source\_item\_assign
  </li>

  <li>
    Magento\_InventorySalesApi::stock
  </li>

  <li>
    Magento\_Sales::actions\_view
  </li>

  <li>
    Magento\_Sales::cancel
  </li>

  <li>
    Magento\_Sales::comment
  </li>

  <li>
    Magento\_Sales::creditmemo
  </li>

  <li>
    Magento\_Sales::invoice
  </li>

  <li>
    Magento\_Sales::sales\_creditmemo
  </li>

  <li>
    Magento\_Sales::sales\_invoice
  </li>

  <li>
    Magento\_Sales::ship
  </li>

  <li>
    Magento\_Sales::shipment
  </li>

  <li>
    Magento\_Sales::transactions\_fetch
  </li>

  <li>
    Magento\_SalesRule::quote
  </li>

  <li>
    Magento\_Tax::manage\_tax
  </li>
</ul>

**3. Activate and copy the Access Token**

On the **Integrations** grid, find the new integration (status **Inactive**) and click **Activate**.

<ul>
  <li>In the upper-right corner, click **Allow**. The **Integration Tokens for Extensions** are displayed.</li>
  <li>Copy the **Access Token** value. The Consumer Key, Consumer Secret and Access Token Secret are not needed.</li>
  <li>Click **Done**.</li>
  <li>Clicking **Reauthorize** later generates a new Access Token and invalidates the old one, so update the connection if you do.</li>
</ul>

## Find your Store URL

The Store URL is your store's base address. Remove `/admin` or `/index.php`, but keep the installation folder if Magento is installed in one, such as `/store`.

<ul>
  <li>Format: `https://{your-store-domain}` or `https://{your-store-domain}/{installation-folder}`</li>
  <li>Example: if your Admin is at `https://mystore.com/admin`, your Store URL is `https://mystore.com`</li>
  <li>Example: if your Admin is at `https://mystore.com/store/admin`, your Store URL is `https://mystore.com/store`</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.