Subscriptions
Register the HTTPS endpoint that receives events, and read and replay the deliveries.
On this page
List subscriptions
GET /pos/v1/subscriptions
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
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 subscriptions. | SubscriptionPage |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
429 | Too many requests. The request was not processed. Retry-After gives the seconds to wait. | Error |
503 | The service cannot answer now. | Error |
Request
curl
curl "$RDC_BASE_URL/pos/v1/subscriptions?limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/subscriptions?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"]}/pos/v1/subscriptions?limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/subscriptions?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")}/pos/v1/subscriptions?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": "47560dfc-c270-4991-9a05-c95f30161246",
"companyId": "bfe8a6fd-b5ed-4dea-bcd3-6bdcc0155a09",
"url": "https://erp.brumar.example/hooks/pos",
"eventTypes": [
"com.rdcopilot.pos.order.paid.v1",
"com.rdcopilot.pos.order.refunded.v1",
"com.rdcopilot.pos.order.voided.v1",
"com.rdcopilot.pos.payment.declined.v1",
"com.rdcopilot.pos.businessday.opened.v1",
"com.rdcopilot.pos.businessday.closed.v1"
],
"status": "active",
"createdAt": "2026-11-02T08:30:00Z",
"revision": 1
}
],
"nextCursor": null
} Create a subscription
POST /pos/v1/subscriptions
Registers the HTTPS endpoint that receives the events of your account. Every delivery is signed with the secret of the subscription; the answer carries the secret once.
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
url | string | Yesrequired | The HTTPS address that receives the events. |
eventTypes | string[] | Yesrequired | The event types to receive. |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | The change was accepted. The body is the operation result and secret, the signing secret of the subscription. It is returned in this answer only. | SecretOperationResult |
400 | The request is not valid JSON or a field is missing or has the wrong type. | Error |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
409 | The operationId was already used with a different request. | Error |
429 | Too many requests. The request was not processed. Retry-After gives the seconds to wait. | Error |
503 | The service cannot answer now. | Error |
Request
curl
curl -X POST "$RDC_BASE_URL/pos/v1/subscriptions" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "9d34c981-fee8-42c4-805d-e0ff8c7f2b3f",
"url": "https://erp.brumar.example/hooks/pos",
"eventTypes": [
"com.rdcopilot.pos.order.paid.v1",
"com.rdcopilot.pos.order.refunded.v1",
"com.rdcopilot.pos.order.voided.v1",
"com.rdcopilot.pos.payment.declined.v1",
"com.rdcopilot.pos.businessday.opened.v1",
"com.rdcopilot.pos.businessday.closed.v1"
]
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/subscriptions`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "9d34c981-fee8-42c4-805d-e0ff8c7f2b3f",
"url": "https://erp.brumar.example/hooks/pos",
"eventTypes": [
"com.rdcopilot.pos.order.paid.v1",
"com.rdcopilot.pos.order.refunded.v1",
"com.rdcopilot.pos.order.voided.v1",
"com.rdcopilot.pos.payment.declined.v1",
"com.rdcopilot.pos.businessday.opened.v1",
"com.rdcopilot.pos.businessday.closed.v1"
]
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/pos/v1/subscriptions',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '9d34c981-fee8-42c4-805d-e0ff8c7f2b3f',
'url': 'https://erp.brumar.example/hooks/pos',
'eventTypes': [
'com.rdcopilot.pos.order.paid.v1',
'com.rdcopilot.pos.order.refunded.v1',
'com.rdcopilot.pos.order.voided.v1',
'com.rdcopilot.pos.payment.declined.v1',
'com.rdcopilot.pos.businessday.opened.v1',
'com.rdcopilot.pos.businessday.closed.v1',
],
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "9d34c981-fee8-42c4-805d-e0ff8c7f2b3f",
"url": "https://erp.brumar.example/hooks/pos",
"eventTypes": [
"com.rdcopilot.pos.order.paid.v1",
"com.rdcopilot.pos.order.refunded.v1",
"com.rdcopilot.pos.order.voided.v1",
"com.rdcopilot.pos.payment.declined.v1",
"com.rdcopilot.pos.businessday.opened.v1",
"com.rdcopilot.pos.businessday.closed.v1"
]
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/subscriptions');
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")}/pos/v1/subscriptions");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "9d34c981-fee8-42c4-805d-e0ff8c7f2b3f",
"url": "https://erp.brumar.example/hooks/pos",
"eventTypes": [
"com.rdcopilot.pos.order.paid.v1",
"com.rdcopilot.pos.order.refunded.v1",
"com.rdcopilot.pos.order.voided.v1",
"com.rdcopilot.pos.payment.declined.v1",
"com.rdcopilot.pos.businessday.opened.v1",
"com.rdcopilot.pos.businessday.closed.v1"
]
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "9d34c981-fee8-42c4-805d-e0ff8c7f2b3f",
"status": "accepted",
"aggregateId": "47560dfc-c270-4991-9a05-c95f30161246",
"aggregateRevision": 1,
"secret": "whsec_XzqUQsvy8YdbmCI7sU1wJ518NC+J/8aC"
} Rotate the secret of a subscription
POST /pos/v1/subscriptions/{subscriptionId}/secret
Issues a new signing secret and returns it once. For 24 hours every delivery carries two signatures, one for each secret; after that only the new one.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
subscriptionId | path | string (uuid) | Yesrequired | The subscription. |
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
Responses
| Status | Meaning | Body |
|---|---|---|
202 | The change was accepted. The body is the operation result and secret, the signing secret of the subscription. It is returned in this answer only. | SecretOperationResult |
401 | The token is missing, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
404 | The subscription does not exist in your account. | Error |
409 | The operationId was already used with a different request. | Error |
429 | Too many requests. The request was not processed. Retry-After gives the seconds to wait. | Error |
503 | The service cannot answer now. | Error |
Request
curl
curl -X POST "$RDC_BASE_URL/pos/v1/subscriptions/47560dfc-c270-4991-9a05-c95f30161246/secret" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "53bf6a16-3997-4493-bfaa-e8da6ba62a3f"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/subscriptions/47560dfc-c270-4991-9a05-c95f30161246/secret`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "53bf6a16-3997-4493-bfaa-e8da6ba62a3f"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/pos/v1/subscriptions/47560dfc-c270-4991-9a05-c95f30161246/secret',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '53bf6a16-3997-4493-bfaa-e8da6ba62a3f',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "53bf6a16-3997-4493-bfaa-e8da6ba62a3f"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/subscriptions/47560dfc-c270-4991-9a05-c95f30161246/secret');
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")}/pos/v1/subscriptions/47560dfc-c270-4991-9a05-c95f30161246/secret");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "53bf6a16-3997-4493-bfaa-e8da6ba62a3f"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "53bf6a16-3997-4493-bfaa-e8da6ba62a3f",
"status": "accepted",
"aggregateId": "47560dfc-c270-4991-9a05-c95f30161246",
"aggregateRevision": 2,
"secret": "whsec_k3Tn0Gm2VdWm9bQp1xYhF7sJ4LrZcA6e"
} List deliveries
GET /pos/v1/deliveries
Returns the deliveries of events with their attempts, newest first. state keeps only the deliveries in one state, for example the parked ones.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
state | query | string | Nooptional | Only deliveries in this state. One of delivered, retrying, parked, replayed |
aggregateId | query | string (uuid) | Nooptional | Only the deliveries about this record. |
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, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
429 | Too many requests. The request was not processed. Retry-After gives the seconds to wait. | Error |
503 | The service cannot answer now. | Error |
Request
curl
curl "$RDC_BASE_URL/pos/v1/deliveries?limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/pos/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"]}/pos/v1/deliveries?limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/pos/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")}/pos/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": "0f9f66ca-985f-4cc3-9c67-6ed773e522ec",
"subscriptionId": "47560dfc-c270-4991-9a05-c95f30161246",
"eventId": "5bd58ef2-d562-4d58-b968-0ec7a82f48df",
"eventType": "com.rdcopilot.pos.order.paid.v1",
"aggregateId": "9d8c072d-afa0-4272-97ab-4443d54d5b62",
"state": "delivered",
"attempts": [
{
"n": 1,
"http": 200,
"at": "2026-11-23T07:14:29Z"
}
]
},
{
"id": "2286b6eb-e420-425e-b7d3-aabb6c4bfc56",
"subscriptionId": "47560dfc-c270-4991-9a05-c95f30161246",
"eventId": "a2931a0b-0bb3-4592-b962-a86375100dff",
"eventType": "com.rdcopilot.pos.order.refunded.v1",
"aggregateId": "3178a6cd-5034-4dd9-8bc9-7e1c238068bd",
"state": "parked",
"attempts": [
{
"n": 1,
"http": 503,
"at": "2026-11-23T06:58:00Z"
},
{
"n": 2,
"http": 503,
"at": "2026-11-23T06:59:00Z"
},
{
"n": 3,
"http": 503,
"at": "2026-11-23T07:04:00Z"
},
{
"n": 4,
"http": 503,
"at": "2026-11-23T07:34:00Z"
},
{
"n": 5,
"http": 503,
"at": "2026-11-23T09:34:00Z"
},
{
"n": 6,
"http": 503,
"at": "2026-11-23T21:34:00Z"
}
]
}
],
"nextCursor": null
} Replay an event
POST /pos/v1/deliveries/{deliveryId}/replay
Sends a parked event again to your endpoint. It is refused when the delivery is not parked.
Parameters
| Name | In | Type | Required | Meaning |
|---|---|---|---|---|
deliveryId | path | string (uuid) | Yesrequired | The delivery of the parked event. |
Request body
| Field | Type | Required | Meaning |
|---|---|---|---|
operationId | string (uuid) | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
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, not valid or has ended. | Error |
403 | The token does not give access to this data. | Error |
404 | The delivery does not exist in your account. | Error |
409 | The operationId was already used with a different request. | Error |
429 | Too many requests. The request was not processed. Retry-After gives the seconds to wait. | Error |
503 | The service cannot answer now. | Error |
Request
curl
curl -X POST "$RDC_BASE_URL/pos/v1/deliveries/2286b6eb-e420-425e-b7d3-aabb6c4bfc56/replay" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "bd75f154-3867-48cb-a4fe-bc314b25e1a8"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/pos/v1/deliveries/2286b6eb-e420-425e-b7d3-aabb6c4bfc56/replay`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "bd75f154-3867-48cb-a4fe-bc314b25e1a8"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/pos/v1/deliveries/2286b6eb-e420-425e-b7d3-aabb6c4bfc56/replay',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'bd75f154-3867-48cb-a4fe-bc314b25e1a8',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "bd75f154-3867-48cb-a4fe-bc314b25e1a8"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/pos/v1/deliveries/2286b6eb-e420-425e-b7d3-aabb6c4bfc56/replay');
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")}/pos/v1/deliveries/2286b6eb-e420-425e-b7d3-aabb6c4bfc56/replay");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "bd75f154-3867-48cb-a4fe-bc314b25e1a8"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); Response 202
{
"operationId": "bd75f154-3867-48cb-a4fe-bc314b25e1a8",
"status": "accepted",
"aggregateId": "2286b6eb-e420-425e-b7d3-aabb6c4bfc56",
"aggregateRevision": 5
}