---
title: "POST /{projectKey}/inventories/import-containers/{importContainerKey}"
method: POST
path: "/{projectKey}/inventories/import-containers/{importContainerKey}"
---

# POST /{projectKey}/inventories/import-containers/{importContainerKey}

`POST /{projectKey}/inventories/import-containers/{importContainerKey}`

## Request

- Base URL: `https://import.europe-west1.gcp.commercetools.com`
- URL: `https://import.europe-west1.gcp.commercetools.com/{projectKey}/inventories/import-containers/{importContainerKey}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://auth.europe-west1.gcp.commercetools.com/oauth/token` scopes: `manage_products:{projectKey}`
- TypeScript: <https://skmtc.dev/commercetools/apis/import-api/docs/:projectKey/inventories/import-containers/:importContainerKey/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates an Import Request for InventoryEntries.

## Request body

- InventoryImportRequest
  - `type` 'business-unit' | 'category' | 'customer' | 'discount-code' | 'inventory' | 'order' | 'order-patch' | 'price' | 'product' | 'product-draft' | 'product-selection' | 'product-tailoring' | 'product-type' | 'product-variant' | 'product-variant-patch' | 'standalone-price' | 'variant' | 'type', required
  - `resources` InventoryImport[], required
    - `key` string, required
    - `sku` string, required
    - `quantityOnStock` number, double, required
    - `restockableInDays` number, double
    - `expectedDelivery` string, datetime
    - `reservationExpirationInMinutes` number, double
    - `supplyChannel` ChannelKeyReference
      - `key` string, required
      - `typeId` 'associate-role' | 'business-unit' | 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'discount-code' | 'key-value-document' | 'order' | 'payment' | 'price' | 'product' | 'product-discount' | 'product-type' | 'product-variant' | 'variant' | 'shipping-method' | 'state' | 'store' | 'tax-category' | 'type', required
    - `custom` Custom
      - `type` TypeKeyReference, required
        - `key` string, required
        - `typeId` 'associate-role' | 'business-unit' | 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'discount-code' | 'key-value-document' | 'order' | 'payment' | 'price' | 'product' | 'product-discount' | 'product-type' | 'product-variant' | 'variant' | 'shipping-method' | 'state' | 'store' | 'tax-category' | 'type', required
      - `fields` FieldContainer

## Response `201`

201

- ImportResponse
  - `operationStatus` ImportOperationStatus[], required
    - `operationId` string
    - `state` 'processing' | 'validationFailed', required
    - `errors` ErrorObject[]
      - `code` string, required
      - `message` string, required

## Other responses

- `400`: The request was invalid.

## Changes

- **2026-08-20** `980be2e37843`: 2 breaking
  - the request property `allOf[subschema #2]/resources/items/allOf[subschema #2]/custom/type/allOf[subschema #2]/typeId` became required
  - the request property `allOf[subschema #2]/resources/items/allOf[subschema #2]/supplyChannel/allOf[subschema #2]/typeId` became required
- **2026-06-26** `13af4e5cda94`: 7 info
  - added `variant` discriminator mapping keys to the `allOf[#/components/schemas/ImportRequest]/` request property
  - added the new `variant` enum value to the request property `allOf[#/components/schemas/ImportRequest]/type`
  - added the new `variant` enum value to the request property `allOf[subschema #2]/resources/items/allOf[subschema #2]/custom/type/allOf[#/components/schemas/KeyReference]/typeId`
  - added the new `variant` enum value to the request property `allOf[subschema #2]/resources/items/allOf[subschema #2]/custom/type/allOf[subschema #2]/typeId`
  - …3 more
- **2026-05-27** `6ad0361536a0`: 4 info
  - added the new optional request property `allOf[subschema #2]/resources/items/allOf[subschema #2]/reservationExpirationInMinutes`
  - added `product-tailoring` discriminator mapping keys to the `allOf[#/components/schemas/ImportRequest]/` request property
  - added the new `product-tailoring` enum value to the request property `allOf[#/components/schemas/ImportRequest]/type`
  - added the new `product-tailoring` enum value to the request property `allOf[subschema #2]/type`
- …earlier changes not shown

[Operation history](https://skmtc.dev/commercetools/apis/import-api/changes/:projectKey/inventories/import-containers/:importContainerKey/post.md)

---

[API](https://skmtc.dev/commercetools/apis/import-api.md) - [All operations](https://skmtc.dev/commercetools/apis/import-api/llms.txt) - [OpenAPI document](https://skmtc.dev/commercetools/apis/import-api/revisions/980be2e37843?raw)
