Skip to main content

Commercetools API Endpoints

Updated today

Merchant Center (Portal)

The Merchant Center is the web-based portal where business and developer teams can log in to manage projects, products, customers, orders, and settings. The URL depends on the cloud region where your project is hosted. Choose the Merchant Center URL that matches your project’s region.

Example

If your project is hosted in US (us-central1 on GCP):

API Endpoints

Commercetools provides REST and GraphQL APIs for integrating with your commerce data. The base API URL also depends on your cloud region.

Example

If your project is hosted in US (us-central1 on GCP):

Base URL:

Table of Contents

Customer Endpoints

Get a Customer by Id (GET)

[Base URL]/customers/{Id}

Create a Customer (POST)

[Base URL]/customers

Update a Customer (POST)

[Base URL]/customers/{Id}

Customer Polling by Last Modified Date (POST)

[Base URL]/customers?where=lastModifiedAt > {LastModifiedDate}

Product Endpoints

Get a Product by Id (GET)

[Base URL]/products/{Id}

Create a Product (POST)

[Base URL]/products

Update a Product (POST)

[Base URL]/products/{Id}

Product Variant Endpoints

Create a Product Variant (POST)

[Base URL]/products

Update a Product Variant (POST)

[Base URL]/products/{Id}

Product Inventory Endpoint

Get a Product Inventory by Id (GET)

[Base URL]/inventory/{Id}

Create Product Inventory (POST)

[Base URL]/inventory

Update a Product Inventory (POST)

[Base URL]/inventory/{Id}

Product Variant Inventory Endpoint

Get a Product Variant Inventory by Id (GET)

[Base URL]/inventory/{Id}

Create Product Variant Inventory (POST)

[Base URL]/inventory

Update a Product Variant Inventory (POST)

[Base URL]/inventory/{Id}

Product Attribute Definition Endpoint

Get a Product Attribute Definition by Key (GET)

[Base URL]/product-types/{Key}

Get a Product Attribute Definition by Filtering with Key (GET)

[Base URL]/product-types?key={Key}

Create a Product Attribute Definition (POST)

[Base URL]/product-types/{Id}

Update a Product Attribute Definition (POST)

[Base URL]/product-types/{Id}

Category Endpoints

Get All Categories (GET)

[Base URL]/categories?offset={offset}&limit={limit}

Get a Category by Id (GET)

[Base URL]/categories/{Id}

Create a Category (POST)

[Base URL]/categories

Update a Category (POST)

[Base URL]/categories/{Id}

Order Endpoint

Get an Order by ID (GET)

[Base URL]/orders/{Id}

Order Polling by Last Modified Date (GET)

[Base URL]/orders?where=lastModifiedAt > {LastModifiedDate}

Payment Endpoint

Get a Payment by ID (GET)

[Base URL]/payments/{Id}

Tax Category Endpoint

Get a Tax Category by ID (GET)

[Base URL]/tax-categories/{Id}

Get All Tax Categories (GET)

[Base URL]/tax-categories?offset={offset}&limit={limit}"

Authorization Endpoint

Get an Access Token by Client ID & Client Secret (GET)

https://auth.us-central1.gcp.commercetools.com/oauth/token

NOTE: Choose the Authorization URL that matches your project’s region.

Did this answer your question?