API Reference
Notifications
Configure notification channels (email, SMS, webhook), subscribe to POS events, review delivery logs, and send test messages. Keep your team informed about new orders, low stock, shift changes, and more.
Admin Only
Get Notification Settings
Retrieve all configured notification rules for the restaurant.
/api/notifications/settingsAdmin OnlyReturns an array of all notification subscription rules.
curl https://api.possfer.com/api/notifications/settings \
-H "Authorization: Bearer <token>"{
__PH1__: [
{
__PH2__: "ns-a1b2c3d4-5678-90ab-cdef-777777777777",
__PH4__: "email",
__PH6__: "new_order",
__PH8__: true,
__PH9__: "kitchen@restaurant.de",
__PH11__: "2026-01-10T09:00:00Z",
__PH13__: "2026-01-10T09:00:00Z"
},
{
__PH15__: "ns-b2c3d4e5-6789-01ab-cdef-888888888888",
__PH17__: "webhook",
__PH19__: "payment_received",
__PH21__: true,
__PH22__: "https:__PH0__
"created_at": "2026-02-01T12:__PH28__:00Z",
"updated_at": "2026-02-01T12:__PH30__:00Z"
}
]
}Create Notification Setting
Subscribe a channel to a specific POS event type.
/api/notifications/settingsAdmin OnlyCreates a new notification subscription rule.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
channel | "email" | "sms" | "webhook" | Required | Delivery channel for the notification. |
event_type | string | Required | POS event to subscribe to. Examples: "new_order", "payment_received", "low_stock", "shift_change", "daily_report". |
is_enabled | boolean | Required | Whether this rule is active. Set to false to create it in a disabled state. |
destination | string | Required | Target address: email address, phone number (E.164 format), or webhook URL. |
curl -X POST https://api.possfer.com/api/notifications/settings \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"channel": "email",
"event_type": "daily_report",
"is_enabled": true,
"destination": "owner@restaurant.de"
}'{
__PH0__: {
__PH1__: "ns-c3d4e5f6-7890-12ab-cdef-999999999999",
__PH3__: "email",
__PH5__: "daily_report",
__PH7__: true,
__PH8__: "owner@restaurant.de",
__PH10__: "2026-03-20T10:00:00Z",
__PH12__: "2026-03-20T10:00:00Z"
}
}Supported event types
new_order, order_cancelled, payment_received, low_stock, shift_change, daily_report, and tse_error. Contact support for a complete list of available events.Delete Notification Setting
Remove a notification subscription. The rule is permanently deleted.
/api/notifications/settings/:idAdmin OnlyDeletes the notification rule and returns 204 No Content on success.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (UUID) | Required | Unique identifier of the notification setting. |
curl -X DELETE https://api.possfer.com/api/notifications/settings/ns-a1b2c3d4-5678-90ab-cdef-777777777777 \
-H "Authorization: Bearer <token>"Tip
is_enabled: false instead of deleting it.Notification Logs
View the delivery log for recent notifications. Useful for debugging delivery issues or confirming that notifications are being sent.
/api/notifications/logsAdmin OnlyReturns recent notification delivery logs, ordered by most recent first.
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | Optional | Maximum number of log entries to return. Defaults to 50, max 200. |
curl __PH1__Authorization: Bearer <token>"{
__PH2__: [
{
__PH3__: "nl-11223344-5566-7788-99aa-bbccddeeff00",
__PH5__: "ns-a1b2c3d4-5678-90ab-cdef-777777777777",
__PH7__: "email",
__PH9__: "new_order",
__PH11__: "kitchen@restaurant.de",
__PH13__: "delivered",
__PH15__: null,
__PH16__: "New order __PH0__
"sent_at": "2026-03-20T12:__PH37__:00Z"
},
{
"id": "nl-22334455-6677-8899-aabb-ccddeeff0011",
"setting_id": "ns-b2c3d4e5-6789-01ab-cdef-888888888888__PH23__channel__PH24__webhook__PH25__event_type__PH26__payment_received__PH27__destination__PH28__https://hooks.example.com/possfer",
__PH29__: "failed",
__PH31__: "HTTP 503 - Service Unavailable",
__PH33__: null,
__PH34__: "2026-03-20T11:45:00Z"
}
]
}Failed deliveries
failed with the error details. Email and SMS failures are not retried automatically.Send Test Notification
Send a test message to a specific channel and destination. Use this to verify that your email, SMS, or webhook configuration is working correctly before enabling it for production events.
/api/notifications/testAdmin OnlySends a test notification and returns the delivery result.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
channel | "email" | "sms" | "webhook" | Required | Delivery channel to test. |
destination | string | Required | Target address: email, phone number (E.164), or webhook URL. |
curl -X POST https://api.possfer.com/api/notifications/test \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"channel": "webhook",
"destination": "https:__PH1__
}'{
__PH1__: true,
__PH2__: "webhook",
__PH4__: "https:__PH0__
"message": "Test notification delivered successfully.",
"sent_at": "2026-03-20T14:__PH10__:00Z"
}