Quickstart
Send the item of a finished delivery to the backend by hand and read the answer.
On this page
The backend of an app answers one request for each finished delivery, and you can send that request by hand to see what the phone sees.
Before you start
The address of the backend and a token for it are given to you when the work starts. If you do not have them yet, write to us.
Send the delivery
This is the request of the delivery in the phone on this site: the same operationId, the three checks and the name of the person who received the goods.
Complete a delivery
curl
curl -X POST "$RDC_BASE_URL/delivery/v1/completions" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "8b3f0c52-7d4e-4a19-9e6a-2c1d5f7a9b30",
"delivery": "LIV-2026-01842",
"receivedBy": "Carmen Diaconu",
"checks": [
"counted",
"packaging",
"invoice-copy"
],
"finishedAt": "2026-11-23T07:12:00Z"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/delivery/v1/completions`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "8b3f0c52-7d4e-4a19-9e6a-2c1d5f7a9b30",
"delivery": "LIV-2026-01842",
"receivedBy": "Carmen Diaconu",
"checks": [
"counted",
"packaging",
"invoice-copy"
],
"finishedAt": "2026-11-23T07:12:00Z"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/delivery/v1/completions',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '8b3f0c52-7d4e-4a19-9e6a-2c1d5f7a9b30',
'delivery': 'LIV-2026-01842',
'receivedBy': 'Carmen Diaconu',
'checks': [
'counted',
'packaging',
'invoice-copy',
],
'finishedAt': '2026-11-23T07:12:00Z',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "8b3f0c52-7d4e-4a19-9e6a-2c1d5f7a9b30",
"delivery": "LIV-2026-01842",
"receivedBy": "Carmen Diaconu",
"checks": [
"counted",
"packaging",
"invoice-copy"
],
"finishedAt": "2026-11-23T07:12:00Z"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/delivery/v1/completions');
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")}/delivery/v1/completions");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "8b3f0c52-7d4e-4a19-9e6a-2c1d5f7a9b30",
"delivery": "LIV-2026-01842",
"receivedBy": "Carmen Diaconu",
"checks": [
"counted",
"packaging",
"invoice-copy"
],
"finishedAt": "2026-11-23T07:12:00Z"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "8b3f0c52-7d4e-4a19-9e6a-2c1d5f7a9b30",
"status": "accepted",
"aggregateRevision": 1
} Send it again
Send the same request a second time. The answer is the same, and nothing is applied twice: that is what the operationId is for. The other answers are in Backend and sync conventions.