> ## 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 SPS Commerce with OAuth 2.0 (Client Credentials) – StackOne Hub

> Link a SPS Commerce account in the StackOne Hub using OAuth 2.0 (Client Credentials). End-user guide to authorize the integration and start using SPS Commerce actions.

> [!WARNING]
>
> An SPS Commerce Dev Center account with a Machine-to-Machine application is required.

## Create a Machine-to-Machine application

Register a Machine-to-Machine application in the SPS Commerce Dev Center to obtain Client Credentials.

**1. Sign in to the SPS Dev Center**

Sign in to the [SPS Commerce Dev Center](https://developercenter.spscommerce.com/).

<ul>
  <li>In the top navigation, click **Applications**.</li>
  <li>Click **Create New Application**.</li>
</ul>

**2. Configure the application**

Enter a name and select Machine-to-Machine as the application type.

<ul>
  <li>Give your app a valid name (e.g., `StackOne Integration`).</li>
  <li>Select **Machine-to-Machine** as the application type.</li>
  <li>Authorize the SPS services your integration needs (Transaction API, Shipping Label API, Packing Slip API, Trading Partner Submission API).</li>
  <li>Click **Create**.</li>
</ul>

**3. Find your credentials**

Each app issues two key sets — **Sandbox Keys** (for testing) and **Production Keys** (for live use). Both contain a Client ID and a Client Secret.

<ul>
  <li>Open the **Application Keys** tab on your app's page.</li>
  <li>Copy the **Client ID** and **Client Secret** for the environment you intend to use.</li>
  <li>Store the Client Secret securely — it will not be shown again.</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.