commercetools

Commerce platform built on modern MACH principles

Go to site
Explore
/
Apps
/
commercetools

commercetools API Integrations

Build and run workflows using the commercetools API. Use 1000s of open source triggers and actions across 500+ apps. Or write custom code to integrate any app or API in seconds.

return await require("@pipedreamhq/platform").axios(this, {
  url: `${auths.commercetools.api_host}${auths.commercetools.projectKey}/stores`,
  headers: {
    Authorization: `Bearer ${auths.commercetools.oauth_access_token}`,
  },
})

Authentication

commercetools uses OAuth authentication. When you connect your commercetools account, Pipedream will open a popup window where you can sign into commercetools and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any commercetools API.

Pipedream requests the following authorization scopes when you connect your account:

OAuth Request Configurations:
  1. accessToken
    POST{{custom_fields.auth_host}}oauth/{{custom_fields.projectKey}}/anonymous/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    redirect_uri={{oauth.redirect_uri}}&grant_type=client_credentials&code={{oauth.code}}&password={{custom_fields.password}}&scope=manage_project:{{custom_fields.projectKey}}
  2. refreshToken
    POST{{custom_fields.auth_host}}oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    grant_type=refresh_token&refresh_token={{oauth.refresh_token}}