---
title: "Pack and ship | Docs | WMS by R&D Copilot"
description: "Scan the picked units into the shipment, weigh it, choose the carrier service, print the label and hand it over."
canonical: "https://warehouse.rdcopilot.com/docs/guides/pack-and-ship/"
language: en
updated: 2026-11-22
---

# Pack and ship

Scan the picked units into the shipment, weigh it, choose the carrier service, print the label and hand it over.

Each order has one shipment. The pack station moves the units that were picked for the order from its tote into the shipment, checks the weight, and prints the label. The statuses are in [Statuses](https://warehouse.rdcopilot.com/docs/concepts/statuses/#shipment).

## Scan the units in

Scan the barcode of an item of the order. Only an item of the order is accepted (`wrong_item` otherwise), only what was picked (`nothing_picked`), and no more than what is still in the tote (`too_many`). A shipment holds what was picked, so a short pick ships short and the rest stays on backorder.

curl

```bash
curl -X POST "$RDC_BASE_URL/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/scan-item" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "7a7461df-9c5d-4dc7-8417-da01623dda37",
  "expectedRevision": 3,
  "code": "2900000003071",
  "quantity": "6"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/scan-item`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "7a7461df-9c5d-4dc7-8417-da01623dda37",
    "expectedRevision": 3,
    "code": "2900000003071",
    "quantity": "6"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/scan-item',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '7a7461df-9c5d-4dc7-8417-da01623dda37',
        'expectedRevision': 3,
        'code': '2900000003071',
        'quantity': '6',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "7a7461df-9c5d-4dc7-8417-da01623dda37",
  "expectedRevision": 3,
  "code": "2900000003071",
  "quantity": "6"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/scan-item');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/scan-item");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "7a7461df-9c5d-4dc7-8417-da01623dda37",
  "expectedRevision": 3,
  "code": "2900000003071",
  "quantity": "6"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 202

```json
{
  "operationId": "7a7461df-9c5d-4dc7-8417-da01623dda37",
  "status": "accepted",
  "aggregateRevision": 4
}
```

When an item has units from two lots, the lot that ends first leaves the tote first.

## Weigh it

The weight to expect is the weight of the packed units and of the carton, and `expectedWeightKg` shows it. The weight you read is accepted when it is within 3 percent of that. Outside it, it is refused with `weight_mismatch`: check the shipment for a unit that is missing or in the wrong place. A weighing needs every picked unit packed and every pick closed.

curl

```bash
curl -X POST "$RDC_BASE_URL/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/weight" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "50ef2e5b-1db3-425d-8cf6-9d05f8e9882d",
  "expectedRevision": 4,
  "weightKg": "122.000"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/weight`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "50ef2e5b-1db3-425d-8cf6-9d05f8e9882d",
    "expectedRevision": 4,
    "weightKg": "122.000"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/weight',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '50ef2e5b-1db3-425d-8cf6-9d05f8e9882d',
        'expectedRevision': 4,
        'weightKg': '122.000',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "50ef2e5b-1db3-425d-8cf6-9d05f8e9882d",
  "expectedRevision": 4,
  "weightKg": "122.000"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/weight');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/weight");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "50ef2e5b-1db3-425d-8cf6-9d05f8e9882d",
  "expectedRevision": 4,
  "weightKg": "122.000"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 202

```json
{
  "operationId": "50ef2e5b-1db3-425d-8cf6-9d05f8e9882d",
  "status": "accepted",
  "aggregateRevision": 5
}
```

A unit scanned in after the weighing takes the weighing back, because the weight to expect has changed. Weigh again.

## Choose the service

`standard` is delivered in two working days after the day the shipment leaves, `next-day` in one. Working days are the days that are not a Saturday, a Sunday or a public holiday.

curl

```bash
curl -X POST "$RDC_BASE_URL/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/service" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "2918a9f7-d7e0-481f-89fc-94e955e7fa0f",
  "expectedRevision": 3,
  "service": "next-day"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/service`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "2918a9f7-d7e0-481f-89fc-94e955e7fa0f",
    "expectedRevision": 3,
    "service": "next-day"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/service',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '2918a9f7-d7e0-481f-89fc-94e955e7fa0f',
        'expectedRevision': 3,
        'service': 'next-day',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "2918a9f7-d7e0-481f-89fc-94e955e7fa0f",
  "expectedRevision": 3,
  "service": "next-day"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/service');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/service");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "2918a9f7-d7e0-481f-89fc-94e955e7fa0f",
  "expectedRevision": 3,
  "service": "next-day"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 202

```json
{
  "operationId": "2918a9f7-d7e0-481f-89fc-94e955e7fa0f",
  "status": "accepted",
  "aggregateRevision": 4
}
```

## Print the label

The label needs a shipment that is packed, weighed and has a service. A shipment packed before 14:00 local time on a working day leaves that day, and a later one leaves on the next working day. The label carries the day it leaves and the day it is delivered, and once it is printed the shipment is closed: another scan is refused with `label_printed`.

curl

```bash
curl -X POST "$RDC_BASE_URL/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/label" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "e68f5fae-0cec-430c-8b5c-9612dbb6d3cc",
  "expectedRevision": 6
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/label`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "e68f5fae-0cec-430c-8b5c-9612dbb6d3cc",
    "expectedRevision": 6
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/label',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'e68f5fae-0cec-430c-8b5c-9612dbb6d3cc',
        'expectedRevision': 6,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "e68f5fae-0cec-430c-8b5c-9612dbb6d3cc",
  "expectedRevision": 6
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/label');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/label");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "e68f5fae-0cec-430c-8b5c-9612dbb6d3cc",
  "expectedRevision": 6
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 202

```json
{
  "operationId": "e68f5fae-0cec-430c-8b5c-9612dbb6d3cc",
  "status": "accepted",
  "aggregateRevision": 7
}
```

## Hand it over

When the carrier takes the shipment, record it. Its units leave the stock of the warehouse, and `com.rdcopilot.warehouse.shipment.dispatched.v1` is sent.

curl

```bash
curl -X POST "$RDC_BASE_URL/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/dispatch" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "49300b83-cd9d-4491-8cd1-64dda778fda1",
  "expectedRevision": 7
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/dispatch`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "49300b83-cd9d-4491-8cd1-64dda778fda1",
    "expectedRevision": 7
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/dispatch',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '49300b83-cd9d-4491-8cd1-64dda778fda1',
        'expectedRevision': 7,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "49300b83-cd9d-4491-8cd1-64dda778fda1",
  "expectedRevision": 7
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/dispatch');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/shipments/a4000000-0000-4000-8000-000000001043/dispatch");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "49300b83-cd9d-4491-8cd1-64dda778fda1",
  "expectedRevision": 7
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 202

```json
{
  "operationId": "49300b83-cd9d-4491-8cd1-64dda778fda1",
  "status": "accepted",
  "aggregateRevision": 8
}
```
