commercetools ImportContainers API
Manage import containers that hold import requests before processing.
Manage import containers that hold import requests before processing.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/commercetools-importcontainers-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: commercetools Import Import Containers API
description: The commercetools Import API enables bulk importing of commerce data into a Composable Commerce project. It supports importing categories, product types, products, product variants, prices, inventory entries, orders, customers, business units, discount codes, product selections, standalone prices, and type definitions. Imports are processed asynchronously through import containers, and the API provides endpoints for monitoring import operation status and handling validation errors. The Import API is hosted on separate regional endpoints from the main HTTP API and uses the same OAuth 2.0 authorization model.
version: '1.0'
contact:
name: commercetools Support
url: https://support.commercetools.com
termsOfService: https://commercetools.com/terms-conditions
servers:
- url: https://import.{region}.commercetools.com
description: Production Import Server
variables:
region:
default: us-central1.gcp
enum:
- us-central1.gcp
- us-east-2.aws
- europe-west1.gcp
- eu-central-1.aws
- australia-southeast1.gcp
description: The deployment region.
security:
- bearerAuth: []
tags:
- name: ImportContainers
description: Manage import containers that hold import requests before processing.
paths:
/{projectKey}/import-containers:
get:
operationId: listImportContainers
summary: List import containers
description: Returns a paginated list of all import containers in the project. Import containers are the primary organizational unit for grouping related import requests. Each project can have up to 1,000 containers.
tags:
- ImportContainers
parameters:
- $ref: '#/components/parameters/projectKey'
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/offset'
responses:
'200':
description: A paged list of import containers.
content:
application/json:
schema:
$ref: '#/components/schemas/ImportContainerPagedQueryResponse'
'401':
$ref: '#/components/responses/Unauthorized'
post:
operationId: createImportContainer
summary: Create an import container
description: Creates a new import container. The container acts as a namespace for related import operations. A maximum of 1,000 containers can be created per project. Optimal performance is maintained under 200,000 import operations per container.
tags:
- ImportContainers
parameters:
- $ref: '#/components/parameters/projectKey'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ImportContainerDraft'
responses:
'201':
description: The created import container.
content:
application/json:
schema:
$ref: '#/components/schemas/ImportContainer'
'400':
$ref: '#/components/responses/BadRequest'
/{projectKey}/import-containers/{importContainerKey}:
get:
operationId: getImportContainerByKey
summary: Get an import container by key
description: Retrieves an import container by its user-defined key, including its resource type scope and version information.
tags:
- ImportContainers
parameters:
- $ref: '#/components/parameters/projectKey'
- $ref: '#/components/parameters/importContainerKey'
responses:
'200':
description: The requested import container.
content:
application/json:
schema:
$ref: '#/components/schemas/ImportContainer'
'404':
$ref: '#/components/responses/NotFound'
put:
operationId: updateImportContainerByKey
summary: Update an import container by key
description: Replaces the import container identified by the given key with the provided draft. The key itself cannot be changed.
tags:
- ImportContainers
parameters:
- $ref: '#/components/parameters/projectKey'
- $ref: '#/components/parameters/importContainerKey'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ImportContainerDraft'
responses:
'200':
description: The updated import container.
content:
application/json:
schema:
$ref: '#/components/schemas/ImportContainer'
delete:
operationId: deleteImportContainerByKey
summary: Delete an import container by key
description: Permanently deletes the import container with the given key. All associated import operations and their status records are also removed.
tags:
- ImportContainers
parameters:
- $ref: '#/components/parameters/projectKey'
- $ref: '#/components/parameters/importContainerKey'
responses:
'200':
description: The deleted import container.
content:
application/json:
schema:
$ref: '#/components/schemas/ImportContainer'
/{projectKey}/import-containers/{importContainerKey}/import-summary:
get:
operationId: getImportContainerSummary
summary: Get import summary for a container
description: Returns aggregated statistics for all import operations in the given container, grouped by processing state (Accepted, ValidationFailed, Unresolved, WaitForMasterVariant, Imported, Rejected, Cancelled).
tags:
- ImportContainers
parameters:
- $ref: '#/components/parameters/projectKey'
- $ref: '#/components/parameters/importContainerKey'
responses:
'200':
description: The import summary with operation counts by state.
content:
application/json:
schema:
$ref: '#/components/schemas/ImportSummary'
'404':
$ref: '#/components/responses/NotFound'
components:
responses:
BadRequest:
description: The request was malformed or contained invalid parameters.
content:
application/json:
schema:
type: object
properties:
statusCode:
type: integer
message:
type: string
NotFound:
description: The requested resource was not found.
content:
application/json:
schema:
type: object
properties:
statusCode:
type: integer
message:
type: string
Unauthorized:
description: The request lacked valid authentication credentials.
content:
application/json:
schema:
type: object
properties:
statusCode:
type: integer
message:
type: string
schemas:
ImportContainerDraft:
type: object
description: Request body for creating or replacing an import container.
required:
- key
properties:
key:
type: string
description: User-defined unique key (2-256 characters, alphanumeric with hyphens/underscores).
resourceType:
type: string
description: Optional resource type scope for the container.
ImportContainerPagedQueryResponse:
type: object
description: Paginated response containing a list of import containers.
required:
- limit
- offset
- count
- total
- results
properties:
limit:
type: integer
offset:
type: integer
count:
type: integer
total:
type: integer
results:
type: array
items:
$ref: '#/components/schemas/ImportContainer'
ImportContainer:
type: object
description: A container that groups related import requests for a specific resource type.
required:
- key
- version
- resourceType
properties:
key:
type: string
description: User-defined unique key for the container (2-256 characters).
version:
type: integer
description: Current version of the import container.
resourceType:
type: string
description: The resource type this container is scoped to (e.g., 'product', 'category').
createdAt:
type: string
format: date-time
description: ISO 8601 timestamp when the container was created.
lastModifiedAt:
type: string
format: date-time
description: ISO 8601 timestamp when the container was last modified.
ImportSummary:
type: object
description: Aggregated counts of import operations grouped by processing state.
required:
- states
- total
properties:
states:
type: object
description: Map of import operation state names to their counts.
properties:
Accepted:
type: integer
description: Number of operations accepted and queued for processing.
ValidationFailed:
type: integer
description: Number of operations that failed schema or data validation.
Unresolved:
type: integer
description: Number of operations waiting for referenced resources to be created.
WaitForMasterVariant:
type: integer
description: Number of variant operations waiting for the master variant.
Imported:
type: integer
description: Number of operations successfully imported.
Rejected:
type: integer
description: Number of operations permanently rejected after retry exhaustion.
Cancelled:
type: integer
description: Number of operations cancelled before processing.
total:
type: integer
description: Total number of import operations in the container.
parameters:
importContainerKey:
name: importContainerKey
in: path
required: true
schema:
type: string
description: The user-defined key of the import container.
projectKey:
name: projectKey
in: path
required: true
schema:
type: string
description: The unique key of the commercetools project.
offset:
name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
description: Number of results to skip for pagination.
limit:
name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 500
default: 20
description: Maximum number of results to return.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: OAuth 2.0 Bearer token obtained from the commercetools authentication service using client credentials flow.
externalDocs:
description: commercetools Import API Documentation
url: https://docs.commercetools.com/api/import-export/overview