Deliveries
Take the reserved units of an order out of stock.
On this page
List deliveries
GET /erp/v1/deliveries
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
salesOrderId | query | string (uuid) | Nooptional | Only the deliveries of this sales order. |
limit | query | integer | Nooptional | Records per page, from 1 to 500. Default 100 Range 1 – 500 |
cursor | query | string | Nooptional | The nextCursor of the previous page. |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | A page of deliveries. | DeliveryPage |
401 | The token is missing, has expired or is not ours. | Error |
403 | The token does not give access to this company or operation. | Error |
429 | There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. | Error |
503 | The service cannot answer now. | Error |
Request
curl
curl "$RDC_BASE_URL/erp/v1/deliveries?limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/erp/v1/deliveries?limit=20`, {
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"]}/erp/v1/deliveries?limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/erp/v1/deliveries?limit=20');
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")}/erp/v1/deliveries?limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 200
{
"items": [
{
"id": "4b4f7d45-72e6-4857-984d-631b820dc6ef",
"number": "LIV-2026-01843",
"salesOrderId": "5fbf41f5-7d97-47d1-9f34-848ce7d794ab",
"salesOrderNumber": "CV-1043",
"customerId": "59ebc921-4507-4c03-b6ee-9801f14e7b09",
"date": "2026-11-20",
"warehouseId": "418d35c2-d9c8-4021-917a-04c8ebe593a7",
"lines": [
{
"code": "ZA-0201",
"quantity": "40"
},
{
"code": "FA-0010",
"quantity": "10"
},
{
"code": "LA-0307",
"quantity": "6"
}
]
},
{
"id": "4a4f7bb2-5be2-49f4-90a9-8c63c9f310f7",
"number": "LIV-2026-01842",
"salesOrderId": "5ebf4062-8294-45ba-b582-ae4b932bb9de",
"salesOrderNumber": "CV-1042",
"customerId": "88e177c6-55ac-4cd5-90af-70c333498d2b",
"date": "2026-11-19",
"warehouseId": "418d35c2-d9c8-4021-917a-04c8ebe593a7",
"lines": [
{
"code": "FA-0010",
"quantity": "24"
},
{
"code": "UL-0101",
"quantity": "60"
},
{
"code": "ZA-0201",
"quantity": "80"
},
{
"code": "LA-0307",
"quantity": "36"
},
{
"code": "DT-0412",
"quantity": "12"
},
{
"code": "AM-0518",
"quantity": "9"
}
]
}
],
"nextCursor": null
} Create a delivery
POST /erp/v1/deliveries
Delivers a reserved order: the reserved units leave the warehouse and the order becomes delivered. The delivery takes the next delivery number.
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
salesOrderId | string (uuid) | Yesrequired | The order to deliver. |
expectedRevision | integer | Yesrequired | The revision of the order you read. |
warehouseId | string (uuid) | Nooptional | The warehouse to take the units from. Leave it out when the company has one warehouse. |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | The change was accepted. The body is the operation result: aggregateId is the record that was created or changed. | OperationResult |
401 | The token is missing, has expired or is not ours. | Error |
403 | The token does not give access to this company or operation. | Error |
404 | sales_order_not_found: The sales order does not exist. warehouse_not_found: The warehouse does not exist. | Error |
409 | operation_reused: The operationId was used before with a different request. revision_conflict: The record has changed since the revision you sent as expectedRevision. wrong_status: The record is not in a status that allows this change. | Error |
429 | There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. | Error |
503 | The service cannot answer now. | Error |
Request
curl
curl -X POST "$RDC_BASE_URL/erp/v1/deliveries" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "a2c43bc6-4592-49bb-a0d4-ea72f62d73e7",
"salesOrderId": "74bf6304-7842-41e8-9928-f4420004d89c",
"expectedRevision": 3,
"warehouseId": "418d35c2-d9c8-4021-917a-04c8ebe593a7"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/erp/v1/deliveries`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "a2c43bc6-4592-49bb-a0d4-ea72f62d73e7",
"salesOrderId": "74bf6304-7842-41e8-9928-f4420004d89c",
"expectedRevision": 3,
"warehouseId": "418d35c2-d9c8-4021-917a-04c8ebe593a7"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/erp/v1/deliveries',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'a2c43bc6-4592-49bb-a0d4-ea72f62d73e7',
'salesOrderId': '74bf6304-7842-41e8-9928-f4420004d89c',
'expectedRevision': 3,
'warehouseId': '418d35c2-d9c8-4021-917a-04c8ebe593a7',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "a2c43bc6-4592-49bb-a0d4-ea72f62d73e7",
"salesOrderId": "74bf6304-7842-41e8-9928-f4420004d89c",
"expectedRevision": 3,
"warehouseId": "418d35c2-d9c8-4021-917a-04c8ebe593a7"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/erp/v1/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")}/erp/v1/deliveries");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "a2c43bc6-4592-49bb-a0d4-ea72f62d73e7",
"salesOrderId": "74bf6304-7842-41e8-9928-f4420004d89c",
"expectedRevision": 3,
"warehouseId": "418d35c2-d9c8-4021-917a-04c8ebe593a7"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "a2c43bc6-4592-49bb-a0d4-ea72f62d73e7",
"status": "accepted",
"aggregateId": "484f788c-71dc-48c2-864a-187d82d44488",
"aggregateRevision": 1
} Get a delivery
GET /erp/v1/deliveries/{deliveryId}
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
deliveryId | path | string (uuid) | Yesrequired | The delivery. |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | The delivery. | Delivery |
401 | The token is missing, has expired or is not ours. | Error |
403 | The token does not give access to this company or operation. | Error |
404 | The delivery does not exist. | Error |
429 | There were too many requests. Nothing was processed. The header Retry-After gives the seconds to wait. | Error |
503 | The service cannot answer now. | Error |
Request
curl
curl "$RDC_BASE_URL/erp/v1/deliveries/4a4f7bb2-5be2-49f4-90a9-8c63c9f310f7" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/erp/v1/deliveries/4a4f7bb2-5be2-49f4-90a9-8c63c9f310f7`, {
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"]}/erp/v1/deliveries/4a4f7bb2-5be2-49f4-90a9-8c63c9f310f7',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/erp/v1/deliveries/4a4f7bb2-5be2-49f4-90a9-8c63c9f310f7');
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")}/erp/v1/deliveries/4a4f7bb2-5be2-49f4-90a9-8c63c9f310f7");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 200
{
"id": "4a4f7bb2-5be2-49f4-90a9-8c63c9f310f7",
"number": "LIV-2026-01842",
"salesOrderId": "5ebf4062-8294-45ba-b582-ae4b932bb9de",
"salesOrderNumber": "CV-1042",
"customerId": "88e177c6-55ac-4cd5-90af-70c333498d2b",
"date": "2026-11-19",
"warehouseId": "418d35c2-d9c8-4021-917a-04c8ebe593a7",
"lines": [
{
"code": "FA-0010",
"quantity": "24"
},
{
"code": "UL-0101",
"quantity": "60"
},
{
"code": "ZA-0201",
"quantity": "80"
},
{
"code": "LA-0307",
"quantity": "36"
},
{
"code": "DT-0412",
"quantity": "12"
},
{
"code": "AM-0518",
"quantity": "9"
}
]
}