---
title: "Create container"
method: POST
path: "/api/v1/external/shipments/{shipmentId}/containers"
tags: ["Shipments"]
---

# Create container

`POST /api/v1/external/shipments/{shipmentId}/containers`

## Request

- Base URL: `https://api.wove.com`
- URL: `https://api.wove.com/api/v1/external/shipments/{shipmentId}/containers`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/wove/apis/wove-external-api/docs/api/v1/external/shipments/:shipmentId/containers/post.ts> (a function with typed inputs; its response is checked against the schema)

Add a new container to a shipment.

## Path parameters

- `shipmentId` string, required

## Request body

- CreateContainerRequest
  - `number` string, required: Container number/identifier
  - `sizeType` string, required: Container size and type (e.g., 20GP, 40HC)
  - `sealNumber` string: Container seal number
  - `quantity` integer: Number of containers

## Response `201`

Container created successfully

- object
  - `success` boolean
  - `data` ShipmentContainer
    - `id` string
    - `number` string
    - `size` string
    - `type` string
    - `sizeType` string: Combined size and type (e.g., 20GP, 40HC)
    - `sealNumber` string
    - `quantity` integer
    - `packages` ShipmentPackage[]: Packages contained in this container
      - `id` string
      - `containerId` string, nullable: ID of the container this package belongs to (null for loose packages)
      - `packageNumber` string
      - `packageType` string
      - `description` string, nullable
      - `packageCount` integer
      - `lineNumber` integer, nullable
      - `grossWeight` number, nullable
      - `netWeight` number, nullable
      - `volume` number, nullable
      - `weightUnit` string, nullable
      - `volumeUnit` string, nullable
      - `items` ShipmentItem[]: Items contained in this package
        - `id` string
        - `lineNumber` integer
        - `sku` string
        - `partNumber` string
        - `description` string
        - `quantity` number
        - `unitOfMeasure` string
        - `unitPrice` number
        - `amount` number
        - `currency` string
        - `countryOfOrigin` string
        - `hsCode` string
        - `weight` number
        - `weightUnit` string
        - `volume` number
        - `volumeUnit` string
        - `packageNumber` string
        - `dimensions` object
          - `length` number
          - `width` number
          - `height` number
          - `unit` string
  - `message` string

## Other responses

- `400`: Invalid request data
- `404`: Shipment not found

---

[API](https://skmtc.dev/wove/apis/wove-external-api.md) - [All operations](https://skmtc.dev/wove/apis/wove-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wove/apis/wove-external-api/revisions/37290e267e07?raw)
