---
title: "Create a shipment for an order"
method: POST
path: "/orders/{orderId}/shipments"
tags: ["Admin Sales: Orders"]
---

# Create a shipment for an order

`POST /orders/{orderId}/shipments`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/orders/{orderId}/shipments`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/orders/:orderId/shipments/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a shipment for an order

## Path parameters

- `orderId` integer, required

## Request body

- object

## Response `201`

AdminShipment resource created

- AdminShipment
  - `id` integer, nullable
  - `orderId` integer, nullable
  - `orderIncrementId` string, nullable
  - `shippedTo` string, nullable
  - `orderDate` string, nullable
  - `orderStatus` string, nullable
  - `orderStatusLabel` string, nullable
  - `channelName` string, nullable
  - `customerName` string, nullable
  - `customerEmail` string, nullable
  - `paymentMethod` string, nullable
  - `paymentTitle` string, nullable
  - `orderCurrencyCode` string, nullable
  - `shippingMethod` string, nullable
  - `shippingTitle` string, nullable
  - `baseShippingAmount` number, nullable
  - `formattedBaseShippingAmount` string, nullable
  - `status` string, nullable
  - `totalQty` integer, nullable
  - `totalWeight` number, nullable
  - `carrierCode` string, nullable
  - `carrierTitle` string, nullable
  - `trackNumber` string, nullable
  - `emailSent` boolean, nullable
  - `inventorySourceId` integer, nullable
  - `inventorySourceName` string, nullable
  - `billingAddress` unknown[], nullable
    - unknown
  - `shippingAddress` unknown[], nullable
    - unknown
  - `createdAt` string, nullable
  - `updatedAt` string, nullable
  - `items` unknown[]
    - unknown

## Other responses

- `400`: Invalid input
- `422`: Validation Error

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
