> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.wearepatchworks.com/product-documentation/connectors-and-instances/patchworks-connectors/commerce-layer-prebuilt-connector.md).

# Commerce Layer (prebuilt connector)

## Description

**Commerce Layer** is an API-first commerce engine that makes it easy to incorporate full eCommerce functionality into your existing tech stack.

## API documentation

API documentation for **Commerce Layer** (used to build this connector) can be found via the links below:

{% embed url="<https://docs.commercelayer.io/core/>" %}

{% embed url="<https://www.postman.com/commercelayer>" %}

## Authentication

When adding connector instances for **Commerce Layer**, the following authentication methods are supported:

* [OAuth 2 (client credentials)](#oauth-2-authorisation-code)

### OAuth 2 (client credentials)

When a user chooses to [add a connector instance](/product-documentation/connectors-and-instances/working-with-instances/adding-an-instance.md) using **OAuth 2 (client credentials)** authentication, the credentials below are prompted:

<table><thead><tr><th>Credential</th><th data-type="checkbox">Required?</th><th>Notes</th></tr></thead><tbody><tr><td><code>Domain</code></td><td>true</td><td>Your Commerce Layer domain name - for example: <code>patchworks</code>.</td></tr><tr><td><code>Client ID</code></td><td>true</td><td>The <strong>client id</strong> generated when you add an <code>integration</code> type application for Patchworks via Commerce Layer.<br><br>For information about how these credentials are generated please see <a href="https://docs.commercelayer.io/core/applications">this Commerce Layer guide</a>.</td></tr><tr><td><code>Client secret</code></td><td>true</td><td>The <strong>client secret</strong> generated when you add an <code>integration</code> type application for Patchworks via Commerce Layer.<br><br>For information about how these credentials are generated please see <a href="https://docs.commercelayer.io/core/applications">this Commerce Layer guide</a>.</td></tr><tr><td><code>Scope</code></td><td>true</td><td>The <strong>scope</strong> generated when you add an <code>integration</code> type application for Patchworks via Commerce Layer.<br><br>For information about how these credentials are generated please see <a href="https://docs.commercelayer.io/core/applications">this Commerce Layer guide</a>.</td></tr><tr><td><code>Grant type</code></td><td>true</td><td>Leave set to <code>client_credentials</code></td></tr><tr><td><code>Response authentication token key</code></td><td>true</td><td>Leave set to <code>accessToken</code></td></tr></tbody></table>
