Quickstart
Announce a delivery, receive it, scan a pick and read the result, with a handful of requests.
On this page
You need the client credentials and the base address of your test company. The samples read them from the environment: $RDC_BASE_URL and $RDC_TOKEN. See Authentication for the token. The test company comes with a warehouse that has shelves, stock and a released wave, so you can scan on the first day.
Announce a delivery
Choose a new operationId, and give the delivery the lines your purchase order has. Each line is suggested the shelf its item lives on.
curl
curl -X POST "$RDC_BASE_URL/warehouse/v1/inbound-deliveries" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "bb6a1b3c-6b4d-48e6-81d9-4c442021d746",
"kind": "supplier",
"supplier": "Moara Vadului SRL",
"reference": "CA-2026-0320",
"expectedAt": "2026-11-24T06:00:00Z",
"lines": [
{
"sku": "FA-0010",
"expected": "80"
},
{
"sku": "ZA-0201",
"expected": "120"
}
]
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/inbound-deliveries`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "bb6a1b3c-6b4d-48e6-81d9-4c442021d746",
"kind": "supplier",
"supplier": "Moara Vadului SRL",
"reference": "CA-2026-0320",
"expectedAt": "2026-11-24T06:00:00Z",
"lines": [
{
"sku": "FA-0010",
"expected": "80"
},
{
"sku": "ZA-0201",
"expected": "120"
}
]
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/inbound-deliveries',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'bb6a1b3c-6b4d-48e6-81d9-4c442021d746',
'kind': 'supplier',
'supplier': 'Moara Vadului SRL',
'reference': 'CA-2026-0320',
'expectedAt': '2026-11-24T06:00:00Z',
'lines': [
{
'sku': 'FA-0010',
'expected': '80',
},
{
'sku': 'ZA-0201',
'expected': '120',
},
],
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "bb6a1b3c-6b4d-48e6-81d9-4c442021d746",
"kind": "supplier",
"supplier": "Moara Vadului SRL",
"reference": "CA-2026-0320",
"expectedAt": "2026-11-24T06:00:00Z",
"lines": [
{
"sku": "FA-0010",
"expected": "80"
},
{
"sku": "ZA-0201",
"expected": "120"
}
]
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/inbound-deliveries');
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#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/inbound-deliveries");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "bb6a1b3c-6b4d-48e6-81d9-4c442021d746",
"kind": "supplier",
"supplier": "Moara Vadului SRL",
"reference": "CA-2026-0320",
"expectedAt": "2026-11-24T06:00:00Z",
"lines": [
{
"sku": "FA-0010",
"expected": "80"
},
{
"sku": "ZA-0201",
"expected": "120"
}
]
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "bb6a1b3c-6b4d-48e6-81d9-4c442021d746",
"status": "accepted",
"aggregateRevision": 1
} Read the result
Look the operation up with the operationId you sent. When status is completed, the delivery exists.
curl
curl "$RDC_BASE_URL/warehouse/v1/operations/6b2ce7ec-d95a-4670-8a70-15946efd9d70" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/operations/6b2ce7ec-d95a-4670-8a70-15946efd9d70`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/operations/6b2ce7ec-d95a-4670-8a70-15946efd9d70',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/operations/6b2ce7ec-d95a-4670-8a70-15946efd9d70');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/operations/6b2ce7ec-d95a-4670-8a70-15946efd9d70");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
"status": "completed",
"aggregateRevision": 4
} | Status | Meaning |
|---|---|
| The request was recorded and is being applied. | |
| The change was applied. | |
| The request was refused. Nothing was changed. |
Read the tasks of a wave
The test company has a released wave, W-0231. List its tasks that are still assigned. Note the id and the revision of one: a scan sends the revision as expectedRevision.
curl
curl "$RDC_BASE_URL/warehouse/v1/pick-tasks?waveNumber=W-0231&status=assigned" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks?waveNumber=W-0231&status=assigned`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks?waveNumber=W-0231&status=assigned',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks?waveNumber=W-0231&status=assigned');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks?waveNumber=W-0231&status=assigned");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"items": [
{
"id": "a1000000-0000-4000-8000-000000023107",
"number": "T-0231-07",
"waveNumber": "W-0231",
"orderNumber": "CV-1042",
"sku": "DT-0412",
"lot": null,
"locationCode": "A-03-02",
"quantity": "12",
"picked": "0",
"tote": "TOTE-014",
"picker": "dan-ilie",
"status": "assigned",
"shortReason": null,
"revision": 1
},
{
"id": "a1000000-0000-4000-8000-000000023108",
"number": "T-0231-08",
"waveNumber": "W-0231",
"orderNumber": "CV-1044",
"sku": "DT-0412",
"lot": null,
"locationCode": "A-03-02",
"quantity": "6",
"picked": "0",
"tote": "TOTE-016",
"picker": "dan-ilie",
"status": "assigned",
"shortReason": null,
"revision": 1
}
],
"nextCursor": null
} Scan the location, then the item
A pick starts when the location of the task is scanned. A scan of the wrong location is refused with wrong_location and changes nothing.
curl
curl -X POST "$RDC_BASE_URL/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023107/scan-location" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "cd67a0ac-e9e4-4d7e-8f8c-74d48829255e",
"expectedRevision": 1,
"code": "A-03-02"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023107/scan-location`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "cd67a0ac-e9e4-4d7e-8f8c-74d48829255e",
"expectedRevision": 1,
"code": "A-03-02"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023107/scan-location',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'cd67a0ac-e9e4-4d7e-8f8c-74d48829255e',
'expectedRevision': 1,
'code': 'A-03-02',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "cd67a0ac-e9e4-4d7e-8f8c-74d48829255e",
"expectedRevision": 1,
"code": "A-03-02"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023107/scan-location');
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#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023107/scan-location");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "cd67a0ac-e9e4-4d7e-8f8c-74d48829255e",
"expectedRevision": 1,
"code": "A-03-02"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "cd67a0ac-e9e4-4d7e-8f8c-74d48829255e",
"status": "accepted",
"aggregateRevision": 2
} The answer holds the new revision. Scan the item with it. The scan adds units to the task and counts only when the barcode is the item of the task and the units do not exceed what the task asks for.
curl
curl -X POST "$RDC_BASE_URL/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/scan-item" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
"expectedRevision": 3,
"code": "2900000002012",
"quantity": "6",
"scannedAt": "2026-11-23T07:20:00Z"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/scan-item`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
"expectedRevision": 3,
"code": "2900000002012",
"quantity": "6",
"scannedAt": "2026-11-23T07:20:00Z"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/scan-item',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '6b2ce7ec-d95a-4670-8a70-15946efd9d70',
'expectedRevision': 3,
'code': '2900000002012',
'quantity': '6',
'scannedAt': '2026-11-23T07:20:00Z',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
"expectedRevision": 3,
"code": "2900000002012",
"quantity": "6",
"scannedAt": "2026-11-23T07:20:00Z"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/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#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/scan-item");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
"expectedRevision": 3,
"code": "2900000002012",
"quantity": "6",
"scannedAt": "2026-11-23T07:20:00Z"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
"status": "accepted",
"aggregateRevision": 4
} Confirm the pick
When every unit is scanned, confirm the task. The units leave the shelf for the tote of the order, and the confirmation sends com.rdcopilot.warehouse.pick_task.confirmed.v1.
curl
curl -X POST "$RDC_BASE_URL/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/confirm" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "b653bc5c-d8f9-428a-8423-cf24688c5b2a",
"expectedRevision": 4
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/confirm`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "b653bc5c-d8f9-428a-8423-cf24688c5b2a",
"expectedRevision": 4
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/confirm',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'b653bc5c-d8f9-428a-8423-cf24688c5b2a',
'expectedRevision': 4,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "b653bc5c-d8f9-428a-8423-cf24688c5b2a",
"expectedRevision": 4
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/confirm');
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#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/confirm");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "b653bc5c-d8f9-428a-8423-cf24688c5b2a",
"expectedRevision": 4
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "b653bc5c-d8f9-428a-8423-cf24688c5b2a",
"status": "accepted",
"aggregateRevision": 5
} Next
- Receive the delivery you announced: Receive a delivery.
- Pack what you picked: Pack and ship.
- Receive a message for every pick: Subscriptions.