Notifications in Accounting as a Service are real-time or scheduled alerts triggered by specific events occurring within the system. The purpose of these notifications is to inform you about important actions, such as updates to customer accounts, errors during data processing, payments, or document creation. These notifications are sent via HTTP POST requests to a URL provided by you during the subscription process.
Notifications help ensure you are always up-to-date with key activities, such as receiving feedback on order processing, balance changes, or completed refunds. You can use these notifications to update other internal systems, such as CRM systems, or trigger automated processes, like pausing or reactivating subscriptions.
You have to subscribe to a notification to receive updates via a webhook. The subscription process involves setting up an endpoint on your side that can receive HTTP POST requests. Follow these steps:
Steps to Subscribe to a Webhook:
Make a POST request to /administration/v1/notification-callbacks
to register your endpoint and the notification types you want to receive.
POST /administration/v1/notification-callbacks HTTP/1.1
Host: api-uat.accounting.riverty.io
X-Subscription-Key: XXXX //Your API Subscription Token
Content-Type: application/json
{
"callbackUrl": "https://your-endpoint.com/notifications", // URL to send notifications
"notificationTypes": ["accounting/refundCompleted"]
}
IMPORTANT In case your callback URL is not freely accessible from the internet, please make sure to have a suitable firewall opening in place.
Possible Accounting Notification Types for your business:
Additional Subscription Notification Types:
Once subscribed successfully, you will receive a 200 (OK) response:
{
"callbackUrl": "https://your-endpoint.com/notifications",
"description": "Webhook for receiving refund completed notifications",
"id": "5b2efc5d-eb64-43eb-99fb-69728c3d2ce0",
"notificationTypes": ["accounting/refundCompleted"]
}
Inform the team to activate the specific notification in the system (except for EDIErrorSent, which is always active).
Test the notification setup in the UAT environment to ensure everything is working properly.
After testing, you can move to production to start receiving notifications.
Please note: This notification is a must-have for every client. A Go-Live without this notification is not possible.
To get an overview of all registered notification callbacks, make a GET /administration/v1/notification-callbacks
.
For more information, please refer to the related endpoint description within the API Explorer.
GET /administration/v1/notification-callbacks HTTP/1.1
Host: api-uat.accounting.riverty.io
X-Subscription-Key: YOUR_API_SUBSCRIPTION_TOKEN
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": "351b4bb4-8b0f-470e-83dd-a765d62eba73",
"callbackUrl": "https://webhook.site/405fb4cfc-4d65-4c23-ac37-e176318baa20",
"notificationTypes": [
"accounting/refundCompleted",
"accounting/documentCreated"
],
"description": "My Test Subscription"
}
]
To unsubscribe or modify your notification subscriptions, follow these steps:
Notify the team to deactivate the specific notification subscription in the system.
Use the callbackId
(received during subscription) to remove the subscription.
DEL /administration/v1/notification-callbacks/{callbackId}